5s autopkgtest [23:56:12]: starting date and time: 2026-02-05 23:56:12+0000 14s autopkgtest [23:56:21]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 14s autopkgtest [23:56:21]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.v7a6nnws/out --timeout-copy=6000 --needs-internet=try --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3.14 --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3.14/3.14.3-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-arm64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-arm64-38.secgroup --name adt-resolute-arm64-glib2.0-20260205-235607-juju-7f2275-prod-proposed-migration-environment-2-67c938fa-4be4-45cc-a7ca-dcdd5bed6699 --image adt/ubuntu-resolute-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-arm64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 40s Creating nova instance adt-resolute-arm64-glib2.0-20260205-235607-juju-7f2275-prod-proposed-migration-environment-2-67c938fa-4be4-45cc-a7ca-dcdd5bed6699 from image adt/ubuntu-resolute-arm64-server-20260205.img (UUID 88169191-3954-4b52-b471-25031b32a3a0)... 211s autopkgtest [23:59:38]: testbed dpkg architecture: arm64 211s autopkgtest [23:59:38]: testbed apt version: 3.1.14 221s autopkgtest [23:59:48]: @@@@@@@@@@@@@@@@@@@@ test bed setup 221s autopkgtest [23:59:48]: testbed release detected to be: None 235s autopkgtest [00:00:02]: updating testbed package index (apt update) 236s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 236s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 236s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 236s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 236s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 236s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [32.2 kB] 236s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [223 kB] 236s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1689 kB] 236s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [272 kB] 236s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [7372 B] 236s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [52.9 kB] 237s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [328 B] 237s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [1451 kB] 237s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [41.6 kB] 237s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [23.7 kB] 237s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [800 B] 253s Fetched 3924 kB in 1s (3074 kB/s) 272s Reading package lists... 272s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 272s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 272s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 272s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 272s Reading package lists... 272s Reading package lists... 272s Building dependency tree... 272s Reading state information... 272s Calculating upgrade... 273s The following packages will be upgraded: 273s libdrm-amdgpu1 libdrm-common libdrm2 mawk python3.14-gdbm 273s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 273s Need to get 237 kB of archives. 273s After this operation, 0 B of additional disk space will be used. 273s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 mawk arm64 1.3.4.20260129-1 [128 kB] 273s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-common all 2.4.131-1 [9774 B] 273s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm2 arm64 2.4.131-1 [42.6 kB] 273s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3.14-gdbm arm64 3.14.3-1 [33.9 kB] 273s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-amdgpu1 arm64 2.4.131-1 [22.6 kB] 273s dpkg-preconfigure: unable to re-open stdin: No such file or directory 273s Fetched 237 kB in 0s (1379 kB/s) 273s (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 ... 89360 files and directories currently installed.) 273s Preparing to unpack .../mawk_1.3.4.20260129-1_arm64.deb ... 273s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 273s Preparing to unpack .../libdrm-common_2.4.131-1_all.deb ... 273s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 274s Preparing to unpack .../libdrm2_2.4.131-1_arm64.deb ... 274s Unpacking libdrm2:arm64 (2.4.131-1) over (2.4.129-1) ... 274s Preparing to unpack .../python3.14-gdbm_3.14.3-1_arm64.deb ... 274s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 274s Preparing to unpack .../libdrm-amdgpu1_2.4.131-1_arm64.deb ... 274s Unpacking libdrm-amdgpu1:arm64 (2.4.131-1) over (2.4.129-1) ... 274s Setting up python3.14-gdbm (3.14.3-1) ... 274s Setting up mawk (1.3.4.20260129-1) ... 274s Setting up libdrm-common (2.4.131-1) ... 274s Setting up libdrm2:arm64 (2.4.131-1) ... 274s Setting up libdrm-amdgpu1:arm64 (2.4.131-1) ... 274s Processing triggers for man-db (2.13.1-1) ... 275s Processing triggers for libc-bin (2.42-2ubuntu4) ... 275s autopkgtest [00:00:42]: upgrading testbed (apt dist-upgrade and autopurge) 301s Reading package lists... 301s Building dependency tree... 301s Reading state information... 302s Calculating upgrade... 302s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 311s Reading package lists... 311s Building dependency tree... 311s Reading state information... 311s Solving dependencies... 312s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 391s autopkgtest [00:02:38]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:41:39 UTC 2026 391s autopkgtest [00:02:38]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 837s Get:1 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (dsc) [4685 B] 837s Get:2 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (tar) [661 kB] 837s Get:3 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (tar) [5675 kB] 837s Get:4 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (diff) [141 kB] 837s gpgv: Signature made Thu Jan 1 13:00:10 2026 UTC 837s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 837s gpgv: Can't check signature: No public key 837s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.86.3-4.dsc: no acceptable signature found 838s autopkgtest [00:10:05]: testing package glib2.0 version 2.86.3-4 1099s autopkgtest [00:14:26]: build not needed 2391s autopkgtest [00:35:52]: test build: preparing testbed 2427s Reading package lists... 2428s Building dependency tree... 2428s Reading state information... 2428s Solving dependencies... 2428s The following NEW packages will be installed: 2428s build-essential cpp cpp-15 cpp-15-aarch64-linux-gnu cpp-aarch64-linux-gnu 2428s g++ g++-15 g++-15-aarch64-linux-gnu g++-aarch64-linux-gnu gcc gcc-15 2428s gcc-15-aarch64-linux-gnu gcc-aarch64-linux-gnu libasan8 libblkid-dev 2428s libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libffi-dev libgcc-15-dev 2428s libgio-2.0-dev libgomp1 libhwasan0 libisl23 libitm1 liblsan0 libmount-dev 2428s libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpkgconf3 2428s libselinux-dev libsepol-dev libstdc++-15-dev libsysprof-capture-4-dev 2428s libtsan2 libubsan1 linux-libc-dev pkgconf pkgconf-bin rpcsvc-proto uuid-dev 2428s zlib1g-dev 2428s 0 upgraded, 46 newly installed, 0 to remove and 0 not upgraded. 2428s Need to get 73.5 MB of archives. 2428s After this operation, 266 MB of additional disk space will be used. 2428s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libc-dev-bin arm64 2.42-2ubuntu4 [22.5 kB] 2428s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 linux-libc-dev arm64 6.18.0-9.9 [1834 kB] 2428s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libcrypt-dev arm64 1:4.5.1-1 [123 kB] 2428s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 rpcsvc-proto arm64 1.4.3-1build1 [65.6 kB] 2428s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 libc6-dev arm64 2.42-2ubuntu4 [1765 kB] 2429s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libisl23 arm64 0.27-1build1 [676 kB] 2429s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 libmpc3 arm64 1.3.1-2 [55.6 kB] 2429s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-15-aarch64-linux-gnu arm64 15.2.0-12ubuntu1 [11.7 MB] 2429s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-15 arm64 15.2.0-12ubuntu1 [1030 B] 2429s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [5736 B] 2429s Get:11 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp arm64 4:15.2.0-4ubuntu1 [22.4 kB] 2429s Get:12 http://ftpmaster.internal/ubuntu resolute/main arm64 libcc1-0 arm64 15.2.0-12ubuntu1 [49.0 kB] 2429s Get:13 http://ftpmaster.internal/ubuntu resolute/main arm64 libgomp1 arm64 15.2.0-12ubuntu1 [147 kB] 2429s Get:14 http://ftpmaster.internal/ubuntu resolute/main arm64 libitm1 arm64 15.2.0-12ubuntu1 [27.8 kB] 2429s Get:15 http://ftpmaster.internal/ubuntu resolute/main arm64 libasan8 arm64 15.2.0-12ubuntu1 [2920 kB] 2429s Get:16 http://ftpmaster.internal/ubuntu resolute/main arm64 liblsan0 arm64 15.2.0-12ubuntu1 [1316 kB] 2429s Get:17 http://ftpmaster.internal/ubuntu resolute/main arm64 libtsan2 arm64 15.2.0-12ubuntu1 [2688 kB] 2430s Get:18 http://ftpmaster.internal/ubuntu resolute/main arm64 libubsan1 arm64 15.2.0-12ubuntu1 [1175 kB] 2430s Get:19 http://ftpmaster.internal/ubuntu resolute/main arm64 libhwasan0 arm64 15.2.0-12ubuntu1 [1638 kB] 2430s Get:20 http://ftpmaster.internal/ubuntu resolute/main arm64 libgcc-15-dev arm64 15.2.0-12ubuntu1 [2600 kB] 2430s Get:21 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-15-aarch64-linux-gnu arm64 15.2.0-12ubuntu1 [23.1 MB] 2431s Get:22 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-15 arm64 15.2.0-12ubuntu1 [519 kB] 2431s Get:23 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [1206 B] 2431s Get:24 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc arm64 4:15.2.0-4ubuntu1 [5016 B] 2431s Get:25 http://ftpmaster.internal/ubuntu resolute/main arm64 libstdc++-15-dev arm64 15.2.0-12ubuntu1 [2549 kB] 2432s Get:26 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-15-aarch64-linux-gnu arm64 15.2.0-12ubuntu1 [13.2 MB] 2432s Get:27 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-15 arm64 15.2.0-12ubuntu1 [25.3 kB] 2432s Get:28 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [956 B] 2432s Get:29 http://ftpmaster.internal/ubuntu resolute/main arm64 g++ arm64 4:15.2.0-4ubuntu1 [1080 B] 2432s Get:30 http://ftpmaster.internal/ubuntu resolute/main arm64 build-essential arm64 12.12ubuntu2 [5254 B] 2432s Get:31 http://ftpmaster.internal/ubuntu resolute/main arm64 libffi-dev arm64 3.5.2-3 [63.0 kB] 2432s Get:32 http://ftpmaster.internal/ubuntu resolute/main arm64 uuid-dev arm64 2.41.2-4ubuntu2 [57.4 kB] 2432s Get:33 http://ftpmaster.internal/ubuntu resolute/main arm64 libblkid-dev arm64 2.41.2-4ubuntu2 [246 kB] 2432s Get:34 http://ftpmaster.internal/ubuntu resolute/main arm64 libsepol-dev arm64 3.9-2 [413 kB] 2432s Get:35 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-16-0 arm64 10.46-1 [225 kB] 2432s Get:36 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-32-0 arm64 10.46-1 [213 kB] 2432s Get:37 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-posix3 arm64 10.46-1 [7300 B] 2432s Get:38 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-dev arm64 10.46-1 [772 kB] 2432s Get:39 http://ftpmaster.internal/ubuntu resolute/main arm64 libselinux-dev arm64 3.9-4 [184 kB] 2432s Get:40 http://ftpmaster.internal/ubuntu resolute/main arm64 libmount-dev arm64 2.41.2-4ubuntu2 [37.6 kB] 2432s Get:41 http://ftpmaster.internal/ubuntu resolute/main arm64 libsysprof-capture-4-dev arm64 49.0-5 [54.4 kB] 2432s Get:42 http://ftpmaster.internal/ubuntu resolute/main arm64 libpkgconf3 arm64 1.8.1-4build1 [33.7 kB] 2432s Get:43 http://ftpmaster.internal/ubuntu resolute/main arm64 pkgconf-bin arm64 1.8.1-4build1 [21.7 kB] 2432s Get:44 http://ftpmaster.internal/ubuntu resolute/main arm64 pkgconf arm64 1.8.1-4build1 [16.8 kB] 2432s Get:45 http://ftpmaster.internal/ubuntu resolute/main arm64 zlib1g-dev arm64 1:1.3.dfsg+really1.3.1-1ubuntu2 [899 kB] 2433s Get:46 http://ftpmaster.internal/ubuntu resolute/main arm64 libgio-2.0-dev arm64 2.86.3-4 [1912 kB] 2433s Fetched 73.5 MB in 5s (15.9 MB/s) 2433s Selecting previously unselected package libc-dev-bin. 2433s (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 ... 89360 files and directories currently installed.) 2433s Preparing to unpack .../00-libc-dev-bin_2.42-2ubuntu4_arm64.deb ... 2433s Unpacking libc-dev-bin (2.42-2ubuntu4) ... 2433s Selecting previously unselected package linux-libc-dev:arm64. 2433s Preparing to unpack .../01-linux-libc-dev_6.18.0-9.9_arm64.deb ... 2433s Unpacking linux-libc-dev:arm64 (6.18.0-9.9) ... 2433s Selecting previously unselected package libcrypt-dev:arm64. 2433s Preparing to unpack .../02-libcrypt-dev_1%3a4.5.1-1_arm64.deb ... 2433s Unpacking libcrypt-dev:arm64 (1:4.5.1-1) ... 2433s Selecting previously unselected package rpcsvc-proto. 2433s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1build1_arm64.deb ... 2433s Unpacking rpcsvc-proto (1.4.3-1build1) ... 2433s Selecting previously unselected package libc6-dev:arm64. 2433s Preparing to unpack .../04-libc6-dev_2.42-2ubuntu4_arm64.deb ... 2433s Unpacking libc6-dev:arm64 (2.42-2ubuntu4) ... 2433s Selecting previously unselected package libisl23:arm64. 2433s Preparing to unpack .../05-libisl23_0.27-1build1_arm64.deb ... 2433s Unpacking libisl23:arm64 (0.27-1build1) ... 2433s Selecting previously unselected package libmpc3:arm64. 2433s Preparing to unpack .../06-libmpc3_1.3.1-2_arm64.deb ... 2433s Unpacking libmpc3:arm64 (1.3.1-2) ... 2433s Selecting previously unselected package cpp-15-aarch64-linux-gnu. 2433s Preparing to unpack .../07-cpp-15-aarch64-linux-gnu_15.2.0-12ubuntu1_arm64.deb ... 2433s Unpacking cpp-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package cpp-15. 2434s Preparing to unpack .../08-cpp-15_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package cpp-aarch64-linux-gnu. 2434s Preparing to unpack .../09-cpp-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 2434s Unpacking cpp-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 2434s Selecting previously unselected package cpp. 2434s Preparing to unpack .../10-cpp_4%3a15.2.0-4ubuntu1_arm64.deb ... 2434s Unpacking cpp (4:15.2.0-4ubuntu1) ... 2434s Selecting previously unselected package libcc1-0:arm64. 2434s Preparing to unpack .../11-libcc1-0_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking libcc1-0:arm64 (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package libgomp1:arm64. 2434s Preparing to unpack .../12-libgomp1_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking libgomp1:arm64 (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package libitm1:arm64. 2434s Preparing to unpack .../13-libitm1_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking libitm1:arm64 (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package libasan8:arm64. 2434s Preparing to unpack .../14-libasan8_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking libasan8:arm64 (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package liblsan0:arm64. 2434s Preparing to unpack .../15-liblsan0_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking liblsan0:arm64 (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package libtsan2:arm64. 2434s Preparing to unpack .../16-libtsan2_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking libtsan2:arm64 (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package libubsan1:arm64. 2434s Preparing to unpack .../17-libubsan1_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking libubsan1:arm64 (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package libhwasan0:arm64. 2434s Preparing to unpack .../18-libhwasan0_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking libhwasan0:arm64 (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package libgcc-15-dev:arm64. 2434s Preparing to unpack .../19-libgcc-15-dev_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking libgcc-15-dev:arm64 (15.2.0-12ubuntu1) ... 2434s Selecting previously unselected package gcc-15-aarch64-linux-gnu. 2434s Preparing to unpack .../20-gcc-15-aarch64-linux-gnu_15.2.0-12ubuntu1_arm64.deb ... 2434s Unpacking gcc-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 2435s Selecting previously unselected package gcc-15. 2435s Preparing to unpack .../21-gcc-15_15.2.0-12ubuntu1_arm64.deb ... 2435s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 2435s Selecting previously unselected package gcc-aarch64-linux-gnu. 2435s Preparing to unpack .../22-gcc-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 2435s Unpacking gcc-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 2435s Selecting previously unselected package gcc. 2435s Preparing to unpack .../23-gcc_4%3a15.2.0-4ubuntu1_arm64.deb ... 2435s Unpacking gcc (4:15.2.0-4ubuntu1) ... 2435s Selecting previously unselected package libstdc++-15-dev:arm64. 2435s Preparing to unpack .../24-libstdc++-15-dev_15.2.0-12ubuntu1_arm64.deb ... 2435s Unpacking libstdc++-15-dev:arm64 (15.2.0-12ubuntu1) ... 2435s Selecting previously unselected package g++-15-aarch64-linux-gnu. 2435s Preparing to unpack .../25-g++-15-aarch64-linux-gnu_15.2.0-12ubuntu1_arm64.deb ... 2435s Unpacking g++-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 2435s Selecting previously unselected package g++-15. 2435s Preparing to unpack .../26-g++-15_15.2.0-12ubuntu1_arm64.deb ... 2435s Unpacking g++-15 (15.2.0-12ubuntu1) ... 2435s Selecting previously unselected package g++-aarch64-linux-gnu. 2435s Preparing to unpack .../27-g++-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 2435s Unpacking g++-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 2435s Selecting previously unselected package g++. 2435s Preparing to unpack .../28-g++_4%3a15.2.0-4ubuntu1_arm64.deb ... 2435s Unpacking g++ (4:15.2.0-4ubuntu1) ... 2435s Selecting previously unselected package build-essential. 2435s Preparing to unpack .../29-build-essential_12.12ubuntu2_arm64.deb ... 2435s Unpacking build-essential (12.12ubuntu2) ... 2435s Selecting previously unselected package libffi-dev:arm64. 2435s Preparing to unpack .../30-libffi-dev_3.5.2-3_arm64.deb ... 2435s Unpacking libffi-dev:arm64 (3.5.2-3) ... 2435s Selecting previously unselected package uuid-dev:arm64. 2435s Preparing to unpack .../31-uuid-dev_2.41.2-4ubuntu2_arm64.deb ... 2435s Unpacking uuid-dev:arm64 (2.41.2-4ubuntu2) ... 2435s Selecting previously unselected package libblkid-dev:arm64. 2435s Preparing to unpack .../32-libblkid-dev_2.41.2-4ubuntu2_arm64.deb ... 2435s Unpacking libblkid-dev:arm64 (2.41.2-4ubuntu2) ... 2435s Selecting previously unselected package libsepol-dev:arm64. 2435s Preparing to unpack .../33-libsepol-dev_3.9-2_arm64.deb ... 2435s Unpacking libsepol-dev:arm64 (3.9-2) ... 2435s Selecting previously unselected package libpcre2-16-0:arm64. 2435s Preparing to unpack .../34-libpcre2-16-0_10.46-1_arm64.deb ... 2435s Unpacking libpcre2-16-0:arm64 (10.46-1) ... 2435s Selecting previously unselected package libpcre2-32-0:arm64. 2435s Preparing to unpack .../35-libpcre2-32-0_10.46-1_arm64.deb ... 2435s Unpacking libpcre2-32-0:arm64 (10.46-1) ... 2436s Selecting previously unselected package libpcre2-posix3:arm64. 2436s Preparing to unpack .../36-libpcre2-posix3_10.46-1_arm64.deb ... 2436s Unpacking libpcre2-posix3:arm64 (10.46-1) ... 2436s Selecting previously unselected package libpcre2-dev:arm64. 2436s Preparing to unpack .../37-libpcre2-dev_10.46-1_arm64.deb ... 2436s Unpacking libpcre2-dev:arm64 (10.46-1) ... 2436s Selecting previously unselected package libselinux-dev:arm64. 2436s Preparing to unpack .../38-libselinux-dev_3.9-4_arm64.deb ... 2436s Unpacking libselinux-dev:arm64 (3.9-4) ... 2436s Selecting previously unselected package libmount-dev:arm64. 2436s Preparing to unpack .../39-libmount-dev_2.41.2-4ubuntu2_arm64.deb ... 2436s Unpacking libmount-dev:arm64 (2.41.2-4ubuntu2) ... 2436s Selecting previously unselected package libsysprof-capture-4-dev:arm64. 2436s Preparing to unpack .../40-libsysprof-capture-4-dev_49.0-5_arm64.deb ... 2436s Unpacking libsysprof-capture-4-dev:arm64 (49.0-5) ... 2436s Selecting previously unselected package libpkgconf3:arm64. 2436s Preparing to unpack .../41-libpkgconf3_1.8.1-4build1_arm64.deb ... 2436s Unpacking libpkgconf3:arm64 (1.8.1-4build1) ... 2436s Selecting previously unselected package pkgconf-bin. 2436s Preparing to unpack .../42-pkgconf-bin_1.8.1-4build1_arm64.deb ... 2436s Unpacking pkgconf-bin (1.8.1-4build1) ... 2436s Selecting previously unselected package pkgconf:arm64. 2436s Preparing to unpack .../43-pkgconf_1.8.1-4build1_arm64.deb ... 2436s Unpacking pkgconf:arm64 (1.8.1-4build1) ... 2436s Selecting previously unselected package zlib1g-dev:arm64. 2436s Preparing to unpack .../44-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_arm64.deb ... 2436s Unpacking zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 2436s Selecting previously unselected package libgio-2.0-dev:arm64. 2436s Preparing to unpack .../45-libgio-2.0-dev_2.86.3-4_arm64.deb ... 2436s Unpacking libgio-2.0-dev:arm64 (2.86.3-4) ... 2436s Setting up linux-libc-dev:arm64 (6.18.0-9.9) ... 2436s Setting up libgomp1:arm64 (15.2.0-12ubuntu1) ... 2436s Setting up libffi-dev:arm64 (3.5.2-3) ... 2436s Setting up libpcre2-16-0:arm64 (10.46-1) ... 2436s Setting up libsysprof-capture-4-dev:arm64 (49.0-5) ... 2436s Setting up libpcre2-32-0:arm64 (10.46-1) ... 2436s Setting up libpkgconf3:arm64 (1.8.1-4build1) ... 2436s Setting up rpcsvc-proto (1.4.3-1build1) ... 2436s Setting up libmpc3:arm64 (1.3.1-2) ... 2436s Setting up libsepol-dev:arm64 (3.9-2) ... 2436s Setting up pkgconf-bin (1.8.1-4build1) ... 2436s Setting up libubsan1:arm64 (15.2.0-12ubuntu1) ... 2436s Setting up libpcre2-posix3:arm64 (10.46-1) ... 2436s Setting up libhwasan0:arm64 (15.2.0-12ubuntu1) ... 2436s Setting up libcrypt-dev:arm64 (1:4.5.1-1) ... 2436s Setting up libasan8:arm64 (15.2.0-12ubuntu1) ... 2436s Setting up libtsan2:arm64 (15.2.0-12ubuntu1) ... 2436s Setting up libisl23:arm64 (0.27-1build1) ... 2436s Setting up libc-dev-bin (2.42-2ubuntu4) ... 2436s Setting up libcc1-0:arm64 (15.2.0-12ubuntu1) ... 2436s Setting up liblsan0:arm64 (15.2.0-12ubuntu1) ... 2436s Setting up libitm1:arm64 (15.2.0-12ubuntu1) ... 2436s Setting up cpp-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 2436s Setting up libgcc-15-dev:arm64 (15.2.0-12ubuntu1) ... 2436s Setting up pkgconf:arm64 (1.8.1-4build1) ... 2436s Setting up cpp-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 2436s Setting up cpp-15 (15.2.0-12ubuntu1) ... 2436s Setting up cpp (4:15.2.0-4ubuntu1) ... 2436s Setting up libc6-dev:arm64 (2.42-2ubuntu4) ... 2436s Setting up gcc-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 2436s Setting up libpcre2-dev:arm64 (10.46-1) ... 2436s Setting up gcc-15 (15.2.0-12ubuntu1) ... 2436s Setting up libstdc++-15-dev:arm64 (15.2.0-12ubuntu1) ... 2436s Setting up g++-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 2436s Setting up uuid-dev:arm64 (2.41.2-4ubuntu2) ... 2436s Setting up zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 2436s Setting up libselinux-dev:arm64 (3.9-4) ... 2436s Setting up g++-15 (15.2.0-12ubuntu1) ... 2436s Setting up gcc-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 2436s Setting up libblkid-dev:arm64 (2.41.2-4ubuntu2) ... 2436s Setting up gcc (4:15.2.0-4ubuntu1) ... 2436s Setting up g++-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 2436s Setting up libmount-dev:arm64 (2.41.2-4ubuntu2) ... 2436s Setting up libgio-2.0-dev:arm64 (2.86.3-4) ... 2436s Setting up g++ (4:15.2.0-4ubuntu1) ... 2436s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 2436s Setting up build-essential (12.12ubuntu2) ... 2436s Processing triggers for libc-bin (2.42-2ubuntu4) ... 2436s Processing triggers for man-db (2.13.1-1) ... 2437s Processing triggers for libglib2.0-0t64:arm64 (2.86.3-4) ... 2437s No schema files found: doing nothing. 2437s Processing triggers for install-info (7.2-5) ... 2438s autopkgtest [00:36:45]: test build: [----------------------- 2438s + mode=dynamic 2438s + getopt -o --long static -n debian/tests/build -- 2438s + getopt_temp= -- 2438s + eval set -- -- 2438s + set -- -- 2438s + true 2438s + shift 2438s + break 2438s + mktemp -d 2438s + WORKDIR=/tmp/tmp.ED8towgPZ2 2438s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 2438s + cd /tmp/tmp.ED8towgPZ2 2438s + [ -n ] 2438s + CROSS_COMPILE= 2438s + cat 2438s + cat 2438s + cat 2438s + cat 2438s + cat 2438s + cat 2438s + cflags= 2438s + pcflags= 2438s + packages=glib-2.0 2438s + pkg-config --cflags --libs glib-2.0 2438s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 2438s build (glib, dynamic): OK 2438s run (glib, dynamic): OK 2438s + echo build (glib, dynamic): OK 2438s + [ -x glib-dynamic ] 2438s + foo=bar ./glib-dynamic 2438s + echo run (glib, dynamic): OK 2438s + cflags= 2438s + pcflags= 2438s + packages=gobject-2.0 2438s + pkg-config --cflags --libs gobject-2.0 2438s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 2438s + echo build (gobject, dynamic): OK 2438s + [ -x gobject-dynamic ] 2438s + foo=bar ./gobject-dynamic 2438s + echo run (gobject, dynamic): OK 2438s + cflags= 2438s + pcflags= 2438s + packages=gio-2.0 2438s + pkg-config --cflags --libs gio-2.0 2438s build (gobject, dynamic): OK 2438s run (gobject, dynamic): OK 2438s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 2438s + echo build (gio, dynamic): OK 2438s + [ -x gio-dynamic ] 2438s + foo=bar ./gio-dynamic 2438s build (gio, dynamic): OK 2438s + echo run (gio, dynamic): OK 2438s + cflags= 2438s + pcflags= 2438s + packages=gio-unix-2.0 2438s + pkg-config --cflags --libs gio-unix-2.0 2438s run (gio, dynamic): OK 2438s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 2438s + echo build (gio-unix, dynamic): OK 2438s + [ -x gio-unix-dynamic ] 2438s + foo=bar ./gio-unix-dynamic 2438s build (gio-unix, dynamic): OK 2438s + echo run (gio-unix, dynamic): OK 2438s + cflags= 2438s + pcflags= 2438s + packages=gmodule-2.0 2438s + pkg-config --cflags --libs gmodule-2.0 2438s + gcc -o gmodule-dynamicrun (gio-unix, dynamic): OK 2438s gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 2439s + echo build (gmodule, dynamic): OKbuild (gmodule, dynamic): OK 2439s 2439s + [ -x gmodule-dynamic ] 2439s + foo=bar ./gmodule-dynamic 2439s + echo run (gmodule, dynamic): OK 2439s + cflags= 2439s + pcflags= 2439s + packages=gthread-2.0 2439s run (gmodule, dynamic): OK 2439s + pkg-config --cflags --libs gthread-2.0 2439s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 2439s + echo build (gthread, dynamic): OKbuild (gthread, dynamic): OK 2439s 2439s + [ -x gthread-dynamic ] 2439s + foo=bar ./gthread-dynamic 2439s + echo run (gthread, dynamic): OK 2439s + rm -rfrun (gthread, dynamic): OK 2439s /tmp/tmp.ED8towgPZ2 2443s autopkgtest [00:36:50]: test build: -----------------------] 2552s autopkgtest [00:38:28]: test build: - - - - - - - - - - results - - - - - - - - - - 2552s build PASS (superficial) 2557s autopkgtest [00:38:44]: test build-static: preparing testbed 2557s Reading package lists... 2558s Building dependency tree... 2558s Reading state information... 2558s Solving dependencies... 2558s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2559s autopkgtest [00:38:46]: test build-static: [----------------------- 2559s + mode=dynamic 2559s + getopt -o --long static -n debian/tests/build -- --static 2559s + getopt_temp= --static -- 2559s + eval set -- --static -- 2559s + set -- --static -- 2559s + true 2559s + mode=static 2559s + shift 2559s + continue 2559s + true 2559s + shift 2559s + break 2559s + mktemp -d 2559s + WORKDIR=/tmp/tmp.dwCKjCN9y8 2559s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 2559s + cd /tmp/tmp.dwCKjCN9y8 2559s + [ -n ] 2559s + CROSS_COMPILE= 2559s + cat 2559s + cat 2559s + cat 2559s + cat 2559s + cat 2559s + cat 2559s + cflags= 2559s + pcflags= 2559s + packages=glib-2.0 2559s + cflags=-static 2559s + pcflags=--static 2559s + pkg-config --static --cflags --libs glib-2.0 2559s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 2559s /usr/bin/aarch64-linux-gnu-ld.bfd: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 2559s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2559s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2559s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2559s + echo build (glib, static): OK 2559s + [ -x glib-static ] 2559s + foo=bar ./glib-static 2559s build (glib, static): OK 2559s + echo run (glib, static): OK 2559s + cflags= 2559s + pcflags= 2559s + packages=gobject-2.0 2559s + cflags=-static 2559s + pcflags=--static 2559s run (glib, static): OK 2559s + pkg-config --static --cflags --libs gobject-2.0 2559s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lffi 2559s /usr/bin/aarch64-linux-gnu-ld.bfd: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 2559s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2559s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2559s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2560s + echo build (gobject, static): OK 2560s + [ -x gobject-static ] 2560s + foo=bar ./gobject-static 2560s build (gobject, static): OK 2560s + echo run (gobject, static): OK 2560s + cflags= 2560s + pcflags= 2560s + packages=gio-2.0 2560s + cflags=-static 2560s + pcflags=--static 2560s + continue 2560s + cflags= 2560s + pcflags= 2560s + packages=gio-unix-2.0 2560s + cflags=-static 2560s + pcflags=--static 2560s + continue 2560s + cflags= 2560s + pcflags= 2560s + packages=gmodule-2.0 2560s + cflags=-static 2560s + pcflags=--static 2560s + pkg-config --static --cflags --libs gmodule-2.0 2560s run (gobject, static): OK 2560s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 2560s /usr/bin/aarch64-linux-gnu-ld.bfd: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 2560s (.text+0x5c8): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2560s /usr/bin/aarch64-linux-gnu-ld.bfd: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 2560s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2560s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2560s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2560s + echo build (gmodule, static): OK 2560s + [ -x gmodule-static ] 2560s + foo=bar ./gmodule-static 2560s build (gmodule, static): OK 2560s + echo run (gmodule, static): OK 2560s + cflags= 2560s + pcflags= 2560s + packages=gthread-2.0 2560s + cflags=-static 2560s + pcflags=--static 2560s + pkg-config --static --cflags --libs gthread-2.0 2560s run (gmodule, static): OK 2560s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 2560s /usr/bin/aarch64-linux-gnu-ld.bfd: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 2560s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2560s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2560s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 2560s build (gthread, static): OK 2560s + echo build (gthread, static): OK 2560s + [ -x gthread-static ] 2560s + foo=bar ./gthread-static 2560s run (gthread, static): OK 2560s + echo run (gthread, static): OK 2560s + rm -rf /tmp/tmp.dwCKjCN9y8 2560s autopkgtest [00:38:47]: test build-static: -----------------------] 2620s build-static PASS (superficial) 2620s autopkgtest [00:39:47]: test build-static: - - - - - - - - - - results - - - - - - - - - - 2637s autopkgtest [00:39:52]: test girepository-tools: preparing testbed 2773s Creating nova instance adt-resolute-arm64-glib2.0-20260205-235607-juju-7f2275-prod-proposed-migration-environment-2-67c938fa-4be4-45cc-a7ca-dcdd5bed6699 from image adt/ubuntu-resolute-arm64-server-20260205.img (UUID 88169191-3954-4b52-b471-25031b32a3a0)... 3056s autopkgtest [00:47:03]: testbed dpkg architecture: arm64 3057s autopkgtest [00:47:04]: testbed apt version: 3.1.14 3057s autopkgtest [00:47:04]: @@@@@@@@@@@@@@@@@@@@ test bed setup 3094s autopkgtest [00:47:41]: testbed release detected to be: resolute 3156s autopkgtest [00:48:43]: updating testbed package index (apt update) 3160s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 3160s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 3160s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 3160s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 3160s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 3160s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 3160s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 3160s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 3160s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [269 kB] 3160s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [7344 B] 3160s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [52.9 kB] 3160s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [328 B] 3160s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [1462 kB] 3161s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [42.1 kB] 3161s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [23.6 kB] 3161s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [776 B] 3164s Fetched 3872 kB in 1s (4129 kB/s) 3167s Reading package lists... 3254s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 3254s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 3254s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 3254s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 3255s Reading package lists... 3255s Reading package lists... 3255s Building dependency tree... 3255s Reading state information... 3256s Calculating upgrade... 3256s The following packages will be upgraded: 3256s libdrm-amdgpu1 libdrm-common libdrm2 mawk python3.14-gdbm 3256s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3256s Need to get 237 kB of archives. 3256s After this operation, 0 B of additional disk space will be used. 3256s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 mawk arm64 1.3.4.20260129-1 [128 kB] 3256s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-common all 2.4.131-1 [9774 B] 3256s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm2 arm64 2.4.131-1 [42.6 kB] 3256s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3.14-gdbm arm64 3.14.3-1 [33.9 kB] 3256s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-amdgpu1 arm64 2.4.131-1 [22.6 kB] 3256s dpkg-preconfigure: unable to re-open stdin: No such file or directory 3256s Fetched 237 kB in 0s (5942 kB/s) 3269s (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 ... 89360 files and directories currently installed.) 3269s Preparing to unpack .../mawk_1.3.4.20260129-1_arm64.deb ... 3269s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 3269s Preparing to unpack .../libdrm-common_2.4.131-1_all.deb ... 3269s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 3269s Preparing to unpack .../libdrm2_2.4.131-1_arm64.deb ... 3269s Unpacking libdrm2:arm64 (2.4.131-1) over (2.4.129-1) ... 3269s Preparing to unpack .../python3.14-gdbm_3.14.3-1_arm64.deb ... 3269s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 3269s Preparing to unpack .../libdrm-amdgpu1_2.4.131-1_arm64.deb ... 3269s Unpacking libdrm-amdgpu1:arm64 (2.4.131-1) over (2.4.129-1) ... 3269s Setting up python3.14-gdbm (3.14.3-1) ... 3269s Setting up mawk (1.3.4.20260129-1) ... 3269s Setting up libdrm-common (2.4.131-1) ... 3269s Setting up libdrm2:arm64 (2.4.131-1) ... 3269s Setting up libdrm-amdgpu1:arm64 (2.4.131-1) ... 3269s Processing triggers for man-db (2.13.1-1) ... 3269s Processing triggers for libc-bin (2.42-2ubuntu4) ... 3269s autopkgtest [00:50:25]: upgrading testbed (apt dist-upgrade and autopurge) 3274s Reading package lists... 3274s Building dependency tree... 3274s Reading state information... 3274s Calculating upgrade... 3275s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3288s Reading package lists... 3288s Building dependency tree... 3288s Reading state information... 3288s Solving dependencies... 3288s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3309s Reading package lists... 3309s Building dependency tree... 3309s Reading state information... 3309s Solving dependencies... 3309s The following NEW packages will be installed: 3309s gir1.2-glib-2.0-dev girepository-tools native-architecture 3310s 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. 3310s Need to get 972 kB of archives. 3310s After this operation, 12.4 MB of additional disk space will be used. 3310s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-glib-2.0-dev arm64 2.86.3-4 [865 kB] 3310s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 native-architecture all 0.2.6build1 [2256 B] 3310s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 girepository-tools arm64 2.86.3-4 [104 kB] 3310s Fetched 972 kB in 0s (2569 kB/s) 3310s Selecting previously unselected package gir1.2-glib-2.0-dev:arm64. 3310s (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 ... 89360 files and directories currently installed.) 3310s Preparing to unpack .../gir1.2-glib-2.0-dev_2.86.3-4_arm64.deb ... 3310s Unpacking gir1.2-glib-2.0-dev:arm64 (2.86.3-4) ... 3310s Selecting previously unselected package native-architecture. 3310s Preparing to unpack .../native-architecture_0.2.6build1_all.deb ... 3310s Unpacking native-architecture (0.2.6build1) ... 3310s Selecting previously unselected package girepository-tools:arm64. 3310s Preparing to unpack .../girepository-tools_2.86.3-4_arm64.deb ... 3310s Unpacking girepository-tools:arm64 (2.86.3-4) ... 3310s Setting up native-architecture (0.2.6build1) ... 3310s Setting up gir1.2-glib-2.0-dev:arm64 (2.86.3-4) ... 3310s Setting up girepository-tools:arm64 (2.86.3-4) ... 3310s Processing triggers for man-db (2.13.1-1) ... 3352s autopkgtest [00:51:59]: test girepository-tools: [----------------------- 3354s + cd /tmp/autopkgtest.GHBBXJ/autopkgtest_tmp 3354s + dpkg-architecture -qDEB_HOST_GNU_TYPE 3354s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 3354s + DEB_HOST_GNU_TYPE=aarch64-linux-gnu 3354s + dpkg-architecture -qDEB_HOST_MULTIARCH 3354s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 3354s + DEB_HOST_MULTIARCH=aarch64-linux-gnu 3354s + aarch64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 3354s + aarch64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir 3354s typelib: GLib-2.0 3354s + aarch64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 3355s autopkgtest [00:52:02]: test girepository-tools: -----------------------] 3358s girepository-tools PASS (superficial) 3358s autopkgtest [00:52:05]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 3358s autopkgtest [00:52:05]: test libgio-2.0-dev-bin: preparing testbed 3379s Creating nova instance adt-resolute-arm64-glib2.0-20260205-235607-juju-7f2275-prod-proposed-migration-environment-2-67c938fa-4be4-45cc-a7ca-dcdd5bed6699 from image adt/ubuntu-resolute-arm64-server-20260205.img (UUID 88169191-3954-4b52-b471-25031b32a3a0)... 3553s autopkgtest [00:55:20]: testbed dpkg architecture: arm64 3553s autopkgtest [00:55:20]: testbed apt version: 3.1.14 3554s autopkgtest [00:55:21]: @@@@@@@@@@@@@@@@@@@@ test bed setup 3554s autopkgtest [00:55:21]: testbed release detected to be: resolute 3556s autopkgtest [00:55:23]: updating testbed package index (apt update) 3556s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 3556s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 3556s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 3556s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 3556s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 3556s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 3556s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 3556s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 3556s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [269 kB] 3556s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [7344 B] 3556s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [52.9 kB] 3556s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [328 B] 3556s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [1462 kB] 3557s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [42.1 kB] 3557s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [23.6 kB] 3557s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [776 B] 3560s Fetched 3872 kB in 1s (4416 kB/s) 3561s Reading package lists... 3562s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 3562s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 3562s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 3562s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 3563s Reading package lists... 3563s Reading package lists... 3563s Building dependency tree... 3563s Reading state information... 3564s Calculating upgrade... 3564s The following packages will be upgraded: 3564s libdrm-amdgpu1 libdrm-common libdrm2 mawk python3.14-gdbm 3564s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3564s Need to get 237 kB of archives. 3564s After this operation, 0 B of additional disk space will be used. 3564s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 mawk arm64 1.3.4.20260129-1 [128 kB] 3564s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-common all 2.4.131-1 [9774 B] 3564s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm2 arm64 2.4.131-1 [42.6 kB] 3564s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3.14-gdbm arm64 3.14.3-1 [33.9 kB] 3564s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-amdgpu1 arm64 2.4.131-1 [22.6 kB] 3564s dpkg-preconfigure: unable to re-open stdin: No such file or directory 3565s Fetched 237 kB in 0s (16.2 MB/s) 3565s (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 ... 89360 files and directories currently installed.) 3565s Preparing to unpack .../mawk_1.3.4.20260129-1_arm64.deb ... 3565s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 3565s Preparing to unpack .../libdrm-common_2.4.131-1_all.deb ... 3565s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 3565s Preparing to unpack .../libdrm2_2.4.131-1_arm64.deb ... 3565s Unpacking libdrm2:arm64 (2.4.131-1) over (2.4.129-1) ... 3565s Preparing to unpack .../python3.14-gdbm_3.14.3-1_arm64.deb ... 3565s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 3565s Preparing to unpack .../libdrm-amdgpu1_2.4.131-1_arm64.deb ... 3565s Unpacking libdrm-amdgpu1:arm64 (2.4.131-1) over (2.4.129-1) ... 3565s Setting up python3.14-gdbm (3.14.3-1) ... 3565s Setting up mawk (1.3.4.20260129-1) ... 3565s Setting up libdrm-common (2.4.131-1) ... 3565s Setting up libdrm2:arm64 (2.4.131-1) ... 3565s Setting up libdrm-amdgpu1:arm64 (2.4.131-1) ... 3565s Processing triggers for man-db (2.13.1-1) ... 3566s Processing triggers for libc-bin (2.42-2ubuntu4) ... 3566s autopkgtest [00:55:33]: upgrading testbed (apt dist-upgrade and autopurge) 3567s Reading package lists... 3567s Building dependency tree... 3567s Reading state information... 3567s Calculating upgrade... 3568s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3568s Reading package lists... 3568s Building dependency tree... 3568s Reading state information... 3568s Solving dependencies... 3569s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3573s Reading package lists... 3574s Building dependency tree... 3574s Reading state information... 3574s Solving dependencies... 3574s The following NEW packages will be installed: 3574s libgio-2.0-dev-bin 3574s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 3574s Need to get 128 kB of archives. 3574s After this operation, 822 kB of additional disk space will be used. 3574s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libgio-2.0-dev-bin arm64 2.86.3-4 [128 kB] 3575s Fetched 128 kB in 0s (698 kB/s) 3575s Selecting previously unselected package libgio-2.0-dev-bin. 3575s (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 ... 89360 files and directories currently installed.) 3575s Preparing to unpack .../libgio-2.0-dev-bin_2.86.3-4_arm64.deb ... 3575s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 3575s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 3575s Processing triggers for man-db (2.13.1-1) ... 3600s autopkgtest [00:56:07]: test libgio-2.0-dev-bin: [----------------------- 3618s + gdbus-codegen --help 3618s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 3618s [--c-namespace NAMESPACE] [--c-generate-object-manager] 3618s [--c-generate-autocleanup {none,objects,all}] 3618s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 3618s [--generate-rst OUTFILES] [--pragma-once] 3618s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 3618s [--glib-min-required VERSION] 3618s [--glib-max-allowed VERSION] 3618s [--symbol-decorator SYMBOL_DECORATOR] 3618s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 3618s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 3618s [--generate-c-code OUTFILES | --header | --body | 3618s --interface-info-header | --interface-info-body] 3618s [--output FILE | --output-directory OUTDIR] 3618s FILE [FILE ...] 3618s 3618s D-Bus code and documentation generator 3618s 3618s positional arguments: 3618s FILE D-Bus introspection XML file 3618s 3618s options: 3618s -h, --help show this help message and exit 3618s --interface-prefix PREFIX 3618s String to strip from D-Bus interface names for code 3618s and docs 3618s --c-namespace NAMESPACE 3618s The namespace to use for generated C code 3618s --c-generate-object-manager 3618s Generate a GDBusObjectManagerClient subclass when 3618s generating C code 3618s --c-generate-autocleanup {none,objects,all} 3618s Generate autocleanup support 3618s --generate-docbook OUTFILES 3618s Generate Docbook in OUTFILES-org.Project.IFace.xml 3618s --generate-md OUTFILES 3618s Generate Markdown in OUTFILES-org.Project.IFace.md 3618s --generate-rst OUTFILES 3618s Generate reStructuredText in OUTFILES- 3618s org.Project.IFace.rst 3618s --pragma-once Use "pragma once" as the inclusion guard 3618s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 3618s Add annotation (may be used several times) 3618s --glib-min-required VERSION 3618s Minimum version of GLib to be supported by the 3618s outputted code (default: 2.30) 3618s --glib-max-allowed VERSION 3618s Maximum version of GLib to be used by the outputted 3618s code (default: current GLib version) 3618s --symbol-decorator SYMBOL_DECORATOR 3618s Macro used to decorate a symbol in the outputted 3618s header, possibly to export symbols 3618s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 3618s Additional header required for decorator specified by 3618s --symbol-decorator 3618s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 3618s Additional define required for decorator specified by 3618s --symbol-decorator 3618s --generate-c-code OUTFILES 3618s Generate C code in OUTFILES.[ch] 3618s --header Generate C headers 3618s --body Generate C code 3618s --interface-info-header 3618s Generate GDBusInterfaceInfo C header 3618s --interface-info-body 3618s Generate GDBusInterfaceInfo C code 3618s --output FILE Write output into the specified file 3618s --output-directory OUTDIR 3618s Location to output generated files 3618s + glib-compile-resources --version 3618s 2.86.3 3618s + glib-genmarshal --version 3618s glib-genmarshal version 2.86.3 3618s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 3618s You may redistribute copies of glib-genmarshal under the terms of 3618s the GNU General Public License which can be found in the 3618s GLib source package. Sources, examples and contact 3618s information are available at http://www.gtk.org 3618s + glib-gettextize --version 3618s /usr/bin/glib-gettextize (GNU glib) 2.86.3 3618s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 3618s This is free software; see the source for copying conditions. There is NO 3618s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 3618s Written by Ulrich Drepper 3618s + glib-mkenums --version 3618s glib-mkenums version 2.86.3 3618s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 3618s You may redistribute copies of glib-mkenums under the terms of 3618s the GNU General Public License which can be found in the 3618s GLib source package. Sources, examples and contact 3618s information are available at http://www.gtk.org 3618s + gobject-query tree 3618s + gtester --version 3618s + gtester-report --version 3618s GObject 3618s gtester version 2.86.3 3618s gtester-report (GLib utils) version 2.86.3. 3618s autopkgtest [00:56:25]: test libgio-2.0-dev-bin: -----------------------] 3619s libgio-2.0-dev-bin PASS (superficial) 3619s autopkgtest [00:56:26]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 3620s autopkgtest [00:56:27]: test libglib2.0-dev: preparing testbed 3665s Creating nova instance adt-resolute-arm64-glib2.0-20260205-235607-juju-7f2275-prod-proposed-migration-environment-2-67c938fa-4be4-45cc-a7ca-dcdd5bed6699 from image adt/ubuntu-resolute-arm64-server-20260205.img (UUID 88169191-3954-4b52-b471-25031b32a3a0)... 3744s autopkgtest [00:58:31]: testbed dpkg architecture: arm64 3744s autopkgtest [00:58:31]: testbed apt version: 3.1.14 3744s autopkgtest [00:58:31]: @@@@@@@@@@@@@@@@@@@@ test bed setup 3745s autopkgtest [00:58:32]: testbed release detected to be: resolute 3746s autopkgtest [00:58:33]: updating testbed package index (apt update) 3746s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 3746s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 3746s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 3746s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 3746s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 3747s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 3747s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 3747s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 3747s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [269 kB] 3747s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [7344 B] 3747s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [52.9 kB] 3747s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [328 B] 3747s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [1462 kB] 3747s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [42.1 kB] 3747s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [23.6 kB] 3747s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [776 B] 3751s Fetched 3872 kB in 1s (2886 kB/s) 3751s Reading package lists... 3752s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 3752s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 3752s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 3752s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 3753s Reading package lists... 3753s Reading package lists... 3753s Building dependency tree... 3753s Reading state information... 3754s Calculating upgrade... 3754s The following packages will be upgraded: 3754s libdrm-amdgpu1 libdrm-common libdrm2 mawk python3.14-gdbm 3754s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3754s Need to get 237 kB of archives. 3754s After this operation, 0 B of additional disk space will be used. 3754s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 mawk arm64 1.3.4.20260129-1 [128 kB] 3754s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-common all 2.4.131-1 [9774 B] 3754s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm2 arm64 2.4.131-1 [42.6 kB] 3754s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3.14-gdbm arm64 3.14.3-1 [33.9 kB] 3754s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-amdgpu1 arm64 2.4.131-1 [22.6 kB] 3754s dpkg-preconfigure: unable to re-open stdin: No such file or directory 3755s Fetched 237 kB in 0s (14.4 MB/s) 3755s (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 ... 89360 files and directories currently installed.) 3755s Preparing to unpack .../mawk_1.3.4.20260129-1_arm64.deb ... 3755s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 3755s Preparing to unpack .../libdrm-common_2.4.131-1_all.deb ... 3755s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 3755s Preparing to unpack .../libdrm2_2.4.131-1_arm64.deb ... 3755s Unpacking libdrm2:arm64 (2.4.131-1) over (2.4.129-1) ... 3755s Preparing to unpack .../python3.14-gdbm_3.14.3-1_arm64.deb ... 3755s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 3755s Preparing to unpack .../libdrm-amdgpu1_2.4.131-1_arm64.deb ... 3755s Unpacking libdrm-amdgpu1:arm64 (2.4.131-1) over (2.4.129-1) ... 3755s Setting up python3.14-gdbm (3.14.3-1) ... 3755s Setting up mawk (1.3.4.20260129-1) ... 3755s Setting up libdrm-common (2.4.131-1) ... 3755s Setting up libdrm2:arm64 (2.4.131-1) ... 3755s Setting up libdrm-amdgpu1:arm64 (2.4.131-1) ... 3755s Processing triggers for man-db (2.13.1-1) ... 3756s Processing triggers for libc-bin (2.42-2ubuntu4) ... 3756s autopkgtest [00:58:43]: upgrading testbed (apt dist-upgrade and autopurge) 3756s Reading package lists... 3757s Building dependency tree... 3757s Reading state information... 3757s Calculating upgrade... 3757s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3757s Reading package lists... 3758s Building dependency tree... 3758s Reading state information... 3758s Solving dependencies... 3758s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3762s Reading package lists... 3762s Building dependency tree... 3762s Reading state information... 3762s Solving dependencies... 3762s The following NEW packages will be installed: 3762s build-essential cpp cpp-15 cpp-15-aarch64-linux-gnu cpp-aarch64-linux-gnu 3762s g++ g++-15 g++-15-aarch64-linux-gnu g++-aarch64-linux-gnu gcc gcc-15 3762s gcc-15-aarch64-linux-gnu gcc-aarch64-linux-gnu gir1.2-glib-2.0-dev 3762s girepository-tools libasan8 libblkid-dev libc-dev-bin libc6-dev libcc1-0 3762s libcrypt-dev libffi-dev libgcc-15-dev libgio-2.0-dev libgio-2.0-dev-bin 3762s libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libgomp1 libhwasan0 3762s libisl23 libitm1 liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 3762s libpcre2-dev libpcre2-posix3 libpkgconf3 libselinux-dev libsepol-dev 3762s libstdc++-15-dev libsysprof-capture-4-dev libtsan2 libubsan1 linux-libc-dev 3762s native-architecture pkgconf pkgconf-bin rpcsvc-proto uuid-dev zlib1g-dev 3762s 0 upgraded, 53 newly installed, 0 to remove and 0 not upgraded. 3762s Need to get 74.7 MB of archives. 3762s After this operation, 280 MB of additional disk space will be used. 3762s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libc-dev-bin arm64 2.42-2ubuntu4 [22.5 kB] 3762s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 linux-libc-dev arm64 6.18.0-9.9 [1834 kB] 3763s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libcrypt-dev arm64 1:4.5.1-1 [123 kB] 3763s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 rpcsvc-proto arm64 1.4.3-1build1 [65.6 kB] 3763s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 libc6-dev arm64 2.42-2ubuntu4 [1765 kB] 3763s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libisl23 arm64 0.27-1build1 [676 kB] 3763s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 libmpc3 arm64 1.3.1-2 [55.6 kB] 3763s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-15-aarch64-linux-gnu arm64 15.2.0-12ubuntu1 [11.7 MB] 3764s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-15 arm64 15.2.0-12ubuntu1 [1030 B] 3764s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [5736 B] 3764s Get:11 http://ftpmaster.internal/ubuntu resolute/main arm64 cpp arm64 4:15.2.0-4ubuntu1 [22.4 kB] 3764s Get:12 http://ftpmaster.internal/ubuntu resolute/main arm64 libcc1-0 arm64 15.2.0-12ubuntu1 [49.0 kB] 3764s Get:13 http://ftpmaster.internal/ubuntu resolute/main arm64 libgomp1 arm64 15.2.0-12ubuntu1 [147 kB] 3764s Get:14 http://ftpmaster.internal/ubuntu resolute/main arm64 libitm1 arm64 15.2.0-12ubuntu1 [27.8 kB] 3764s Get:15 http://ftpmaster.internal/ubuntu resolute/main arm64 libasan8 arm64 15.2.0-12ubuntu1 [2920 kB] 3765s Get:16 http://ftpmaster.internal/ubuntu resolute/main arm64 liblsan0 arm64 15.2.0-12ubuntu1 [1316 kB] 3765s Get:17 http://ftpmaster.internal/ubuntu resolute/main arm64 libtsan2 arm64 15.2.0-12ubuntu1 [2688 kB] 3765s Get:18 http://ftpmaster.internal/ubuntu resolute/main arm64 libubsan1 arm64 15.2.0-12ubuntu1 [1175 kB] 3765s Get:19 http://ftpmaster.internal/ubuntu resolute/main arm64 libhwasan0 arm64 15.2.0-12ubuntu1 [1638 kB] 3766s Get:20 http://ftpmaster.internal/ubuntu resolute/main arm64 libgcc-15-dev arm64 15.2.0-12ubuntu1 [2600 kB] 3766s Get:21 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-15-aarch64-linux-gnu arm64 15.2.0-12ubuntu1 [23.1 MB] 3768s Get:22 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-15 arm64 15.2.0-12ubuntu1 [519 kB] 3768s Get:23 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [1206 B] 3768s Get:24 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc arm64 4:15.2.0-4ubuntu1 [5016 B] 3768s Get:25 http://ftpmaster.internal/ubuntu resolute/main arm64 libstdc++-15-dev arm64 15.2.0-12ubuntu1 [2549 kB] 3768s Get:26 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-15-aarch64-linux-gnu arm64 15.2.0-12ubuntu1 [13.2 MB] 3769s Get:27 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-15 arm64 15.2.0-12ubuntu1 [25.3 kB] 3769s Get:28 http://ftpmaster.internal/ubuntu resolute/main arm64 g++-aarch64-linux-gnu arm64 4:15.2.0-4ubuntu1 [956 B] 3769s Get:29 http://ftpmaster.internal/ubuntu resolute/main arm64 g++ arm64 4:15.2.0-4ubuntu1 [1080 B] 3769s Get:30 http://ftpmaster.internal/ubuntu resolute/main arm64 build-essential arm64 12.12ubuntu2 [5254 B] 3769s Get:31 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-glib-2.0-dev arm64 2.86.3-4 [865 kB] 3769s Get:32 http://ftpmaster.internal/ubuntu resolute/main arm64 native-architecture all 0.2.6build1 [2256 B] 3769s Get:33 http://ftpmaster.internal/ubuntu resolute/main arm64 girepository-tools arm64 2.86.3-4 [104 kB] 3769s Get:34 http://ftpmaster.internal/ubuntu resolute/main arm64 libffi-dev arm64 3.5.2-3 [63.0 kB] 3769s Get:35 http://ftpmaster.internal/ubuntu resolute/main arm64 uuid-dev arm64 2.41.2-4ubuntu2 [57.4 kB] 3769s Get:36 http://ftpmaster.internal/ubuntu resolute/main arm64 libblkid-dev arm64 2.41.2-4ubuntu2 [246 kB] 3769s Get:37 http://ftpmaster.internal/ubuntu resolute/main arm64 libsepol-dev arm64 3.9-2 [413 kB] 3769s Get:38 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-16-0 arm64 10.46-1 [225 kB] 3769s Get:39 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-32-0 arm64 10.46-1 [213 kB] 3769s Get:40 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-posix3 arm64 10.46-1 [7300 B] 3769s Get:41 http://ftpmaster.internal/ubuntu resolute/main arm64 libpcre2-dev arm64 10.46-1 [772 kB] 3769s Get:42 http://ftpmaster.internal/ubuntu resolute/main arm64 libselinux-dev arm64 3.9-4 [184 kB] 3769s Get:43 http://ftpmaster.internal/ubuntu resolute/main arm64 libmount-dev arm64 2.41.2-4ubuntu2 [37.6 kB] 3769s Get:44 http://ftpmaster.internal/ubuntu resolute/main arm64 libsysprof-capture-4-dev arm64 49.0-5 [54.4 kB] 3769s Get:45 http://ftpmaster.internal/ubuntu resolute/main arm64 libpkgconf3 arm64 1.8.1-4build1 [33.7 kB] 3769s Get:46 http://ftpmaster.internal/ubuntu resolute/main arm64 pkgconf-bin arm64 1.8.1-4build1 [21.7 kB] 3769s Get:47 http://ftpmaster.internal/ubuntu resolute/main arm64 pkgconf arm64 1.8.1-4build1 [16.8 kB] 3769s Get:48 http://ftpmaster.internal/ubuntu resolute/main arm64 zlib1g-dev arm64 1:1.3.dfsg+really1.3.1-1ubuntu2 [899 kB] 3769s Get:49 http://ftpmaster.internal/ubuntu resolute/main arm64 libgio-2.0-dev arm64 2.86.3-4 [1912 kB] 3769s Get:50 http://ftpmaster.internal/ubuntu resolute/main arm64 libgio-2.0-dev-bin arm64 2.86.3-4 [128 kB] 3769s Get:51 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-bin arm64 2.86.3-4 [97.9 kB] 3769s Get:52 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-dev-bin arm64 2.86.3-4 [18.2 kB] 3769s Get:53 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-dev arm64 2.86.3-4 [18.9 kB] 3770s Fetched 74.7 MB in 7s (10.7 MB/s) 3770s Selecting previously unselected package libc-dev-bin. 3770s (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 ... 89360 files and directories currently installed.) 3770s Preparing to unpack .../00-libc-dev-bin_2.42-2ubuntu4_arm64.deb ... 3770s Unpacking libc-dev-bin (2.42-2ubuntu4) ... 3770s Selecting previously unselected package linux-libc-dev:arm64. 3770s Preparing to unpack .../01-linux-libc-dev_6.18.0-9.9_arm64.deb ... 3770s Unpacking linux-libc-dev:arm64 (6.18.0-9.9) ... 3770s Selecting previously unselected package libcrypt-dev:arm64. 3770s Preparing to unpack .../02-libcrypt-dev_1%3a4.5.1-1_arm64.deb ... 3770s Unpacking libcrypt-dev:arm64 (1:4.5.1-1) ... 3770s Selecting previously unselected package rpcsvc-proto. 3770s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1build1_arm64.deb ... 3770s Unpacking rpcsvc-proto (1.4.3-1build1) ... 3770s Selecting previously unselected package libc6-dev:arm64. 3770s Preparing to unpack .../04-libc6-dev_2.42-2ubuntu4_arm64.deb ... 3770s Unpacking libc6-dev:arm64 (2.42-2ubuntu4) ... 3770s Selecting previously unselected package libisl23:arm64. 3770s Preparing to unpack .../05-libisl23_0.27-1build1_arm64.deb ... 3770s Unpacking libisl23:arm64 (0.27-1build1) ... 3770s Selecting previously unselected package libmpc3:arm64. 3770s Preparing to unpack .../06-libmpc3_1.3.1-2_arm64.deb ... 3770s Unpacking libmpc3:arm64 (1.3.1-2) ... 3770s Selecting previously unselected package cpp-15-aarch64-linux-gnu. 3770s Preparing to unpack .../07-cpp-15-aarch64-linux-gnu_15.2.0-12ubuntu1_arm64.deb ... 3770s Unpacking cpp-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 3770s Selecting previously unselected package cpp-15. 3770s Preparing to unpack .../08-cpp-15_15.2.0-12ubuntu1_arm64.deb ... 3770s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 3770s Selecting previously unselected package cpp-aarch64-linux-gnu. 3770s Preparing to unpack .../09-cpp-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 3770s Unpacking cpp-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 3770s Selecting previously unselected package cpp. 3770s Preparing to unpack .../10-cpp_4%3a15.2.0-4ubuntu1_arm64.deb ... 3770s Unpacking cpp (4:15.2.0-4ubuntu1) ... 3770s Selecting previously unselected package libcc1-0:arm64. 3771s Preparing to unpack .../11-libcc1-0_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking libcc1-0:arm64 (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package libgomp1:arm64. 3771s Preparing to unpack .../12-libgomp1_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking libgomp1:arm64 (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package libitm1:arm64. 3771s Preparing to unpack .../13-libitm1_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking libitm1:arm64 (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package libasan8:arm64. 3771s Preparing to unpack .../14-libasan8_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking libasan8:arm64 (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package liblsan0:arm64. 3771s Preparing to unpack .../15-liblsan0_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking liblsan0:arm64 (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package libtsan2:arm64. 3771s Preparing to unpack .../16-libtsan2_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking libtsan2:arm64 (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package libubsan1:arm64. 3771s Preparing to unpack .../17-libubsan1_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking libubsan1:arm64 (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package libhwasan0:arm64. 3771s Preparing to unpack .../18-libhwasan0_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking libhwasan0:arm64 (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package libgcc-15-dev:arm64. 3771s Preparing to unpack .../19-libgcc-15-dev_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking libgcc-15-dev:arm64 (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package gcc-15-aarch64-linux-gnu. 3771s Preparing to unpack .../20-gcc-15-aarch64-linux-gnu_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking gcc-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package gcc-15. 3771s Preparing to unpack .../21-gcc-15_15.2.0-12ubuntu1_arm64.deb ... 3771s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 3771s Selecting previously unselected package gcc-aarch64-linux-gnu. 3772s Preparing to unpack .../22-gcc-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 3772s Unpacking gcc-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 3772s Selecting previously unselected package gcc. 3772s Preparing to unpack .../23-gcc_4%3a15.2.0-4ubuntu1_arm64.deb ... 3772s Unpacking gcc (4:15.2.0-4ubuntu1) ... 3772s Selecting previously unselected package libstdc++-15-dev:arm64. 3772s Preparing to unpack .../24-libstdc++-15-dev_15.2.0-12ubuntu1_arm64.deb ... 3772s Unpacking libstdc++-15-dev:arm64 (15.2.0-12ubuntu1) ... 3772s Selecting previously unselected package g++-15-aarch64-linux-gnu. 3772s Preparing to unpack .../25-g++-15-aarch64-linux-gnu_15.2.0-12ubuntu1_arm64.deb ... 3772s Unpacking g++-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 3772s Selecting previously unselected package g++-15. 3772s Preparing to unpack .../26-g++-15_15.2.0-12ubuntu1_arm64.deb ... 3772s Unpacking g++-15 (15.2.0-12ubuntu1) ... 3772s Selecting previously unselected package g++-aarch64-linux-gnu. 3772s Preparing to unpack .../27-g++-aarch64-linux-gnu_4%3a15.2.0-4ubuntu1_arm64.deb ... 3772s Unpacking g++-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 3772s Selecting previously unselected package g++. 3772s Preparing to unpack .../28-g++_4%3a15.2.0-4ubuntu1_arm64.deb ... 3772s Unpacking g++ (4:15.2.0-4ubuntu1) ... 3772s Selecting previously unselected package build-essential. 3772s Preparing to unpack .../29-build-essential_12.12ubuntu2_arm64.deb ... 3772s Unpacking build-essential (12.12ubuntu2) ... 3772s Selecting previously unselected package gir1.2-glib-2.0-dev:arm64. 3772s Preparing to unpack .../30-gir1.2-glib-2.0-dev_2.86.3-4_arm64.deb ... 3772s Unpacking gir1.2-glib-2.0-dev:arm64 (2.86.3-4) ... 3772s Selecting previously unselected package native-architecture. 3772s Preparing to unpack .../31-native-architecture_0.2.6build1_all.deb ... 3772s Unpacking native-architecture (0.2.6build1) ... 3772s Selecting previously unselected package girepository-tools:arm64. 3772s Preparing to unpack .../32-girepository-tools_2.86.3-4_arm64.deb ... 3772s Unpacking girepository-tools:arm64 (2.86.3-4) ... 3772s Selecting previously unselected package libffi-dev:arm64. 3772s Preparing to unpack .../33-libffi-dev_3.5.2-3_arm64.deb ... 3772s Unpacking libffi-dev:arm64 (3.5.2-3) ... 3772s Selecting previously unselected package uuid-dev:arm64. 3772s Preparing to unpack .../34-uuid-dev_2.41.2-4ubuntu2_arm64.deb ... 3772s Unpacking uuid-dev:arm64 (2.41.2-4ubuntu2) ... 3772s Selecting previously unselected package libblkid-dev:arm64. 3772s Preparing to unpack .../35-libblkid-dev_2.41.2-4ubuntu2_arm64.deb ... 3772s Unpacking libblkid-dev:arm64 (2.41.2-4ubuntu2) ... 3772s Selecting previously unselected package libsepol-dev:arm64. 3772s Preparing to unpack .../36-libsepol-dev_3.9-2_arm64.deb ... 3772s Unpacking libsepol-dev:arm64 (3.9-2) ... 3772s Selecting previously unselected package libpcre2-16-0:arm64. 3772s Preparing to unpack .../37-libpcre2-16-0_10.46-1_arm64.deb ... 3772s Unpacking libpcre2-16-0:arm64 (10.46-1) ... 3772s Selecting previously unselected package libpcre2-32-0:arm64. 3772s Preparing to unpack .../38-libpcre2-32-0_10.46-1_arm64.deb ... 3772s Unpacking libpcre2-32-0:arm64 (10.46-1) ... 3773s Selecting previously unselected package libpcre2-posix3:arm64. 3773s Preparing to unpack .../39-libpcre2-posix3_10.46-1_arm64.deb ... 3773s Unpacking libpcre2-posix3:arm64 (10.46-1) ... 3773s Selecting previously unselected package libpcre2-dev:arm64. 3773s Preparing to unpack .../40-libpcre2-dev_10.46-1_arm64.deb ... 3773s Unpacking libpcre2-dev:arm64 (10.46-1) ... 3773s Selecting previously unselected package libselinux-dev:arm64. 3773s Preparing to unpack .../41-libselinux-dev_3.9-4_arm64.deb ... 3773s Unpacking libselinux-dev:arm64 (3.9-4) ... 3773s Selecting previously unselected package libmount-dev:arm64. 3773s Preparing to unpack .../42-libmount-dev_2.41.2-4ubuntu2_arm64.deb ... 3773s Unpacking libmount-dev:arm64 (2.41.2-4ubuntu2) ... 3773s Selecting previously unselected package libsysprof-capture-4-dev:arm64. 3773s Preparing to unpack .../43-libsysprof-capture-4-dev_49.0-5_arm64.deb ... 3773s Unpacking libsysprof-capture-4-dev:arm64 (49.0-5) ... 3773s Selecting previously unselected package libpkgconf3:arm64. 3773s Preparing to unpack .../44-libpkgconf3_1.8.1-4build1_arm64.deb ... 3773s Unpacking libpkgconf3:arm64 (1.8.1-4build1) ... 3773s Selecting previously unselected package pkgconf-bin. 3773s Preparing to unpack .../45-pkgconf-bin_1.8.1-4build1_arm64.deb ... 3773s Unpacking pkgconf-bin (1.8.1-4build1) ... 3773s Selecting previously unselected package pkgconf:arm64. 3773s Preparing to unpack .../46-pkgconf_1.8.1-4build1_arm64.deb ... 3773s Unpacking pkgconf:arm64 (1.8.1-4build1) ... 3773s Selecting previously unselected package zlib1g-dev:arm64. 3773s Preparing to unpack .../47-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_arm64.deb ... 3773s Unpacking zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 3773s Selecting previously unselected package libgio-2.0-dev:arm64. 3773s Preparing to unpack .../48-libgio-2.0-dev_2.86.3-4_arm64.deb ... 3773s Unpacking libgio-2.0-dev:arm64 (2.86.3-4) ... 3773s Selecting previously unselected package libgio-2.0-dev-bin. 3773s Preparing to unpack .../49-libgio-2.0-dev-bin_2.86.3-4_arm64.deb ... 3773s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 3773s Selecting previously unselected package libglib2.0-bin. 3773s Preparing to unpack .../50-libglib2.0-bin_2.86.3-4_arm64.deb ... 3773s Unpacking libglib2.0-bin (2.86.3-4) ... 3773s Selecting previously unselected package libglib2.0-dev-bin. 3773s Preparing to unpack .../51-libglib2.0-dev-bin_2.86.3-4_arm64.deb ... 3773s Unpacking libglib2.0-dev-bin (2.86.3-4) ... 3773s Selecting previously unselected package libglib2.0-dev:arm64. 3773s Preparing to unpack .../52-libglib2.0-dev_2.86.3-4_arm64.deb ... 3773s Unpacking libglib2.0-dev:arm64 (2.86.3-4) ... 3773s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 3773s Setting up native-architecture (0.2.6build1) ... 3773s Setting up linux-libc-dev:arm64 (6.18.0-9.9) ... 3773s Setting up libglib2.0-bin (2.86.3-4) ... 3773s Setting up libgomp1:arm64 (15.2.0-12ubuntu1) ... 3773s Setting up libffi-dev:arm64 (3.5.2-3) ... 3773s Setting up libpcre2-16-0:arm64 (10.46-1) ... 3773s Setting up libsysprof-capture-4-dev:arm64 (49.0-5) ... 3773s Setting up libpcre2-32-0:arm64 (10.46-1) ... 3773s Setting up libpkgconf3:arm64 (1.8.1-4build1) ... 3773s Setting up rpcsvc-proto (1.4.3-1build1) ... 3773s Setting up libmpc3:arm64 (1.3.1-2) ... 3773s Setting up libsepol-dev:arm64 (3.9-2) ... 3773s Setting up pkgconf-bin (1.8.1-4build1) ... 3773s Setting up libubsan1:arm64 (15.2.0-12ubuntu1) ... 3773s Setting up libpcre2-posix3:arm64 (10.46-1) ... 3773s Setting up gir1.2-glib-2.0-dev:arm64 (2.86.3-4) ... 3773s Setting up libhwasan0:arm64 (15.2.0-12ubuntu1) ... 3773s Setting up libcrypt-dev:arm64 (1:4.5.1-1) ... 3773s Setting up libasan8:arm64 (15.2.0-12ubuntu1) ... 3773s Setting up libtsan2:arm64 (15.2.0-12ubuntu1) ... 3773s Setting up libisl23:arm64 (0.27-1build1) ... 3773s Setting up libc-dev-bin (2.42-2ubuntu4) ... 3773s Setting up libcc1-0:arm64 (15.2.0-12ubuntu1) ... 3773s Setting up liblsan0:arm64 (15.2.0-12ubuntu1) ... 3773s Setting up libitm1:arm64 (15.2.0-12ubuntu1) ... 3773s Setting up cpp-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 3773s Setting up girepository-tools:arm64 (2.86.3-4) ... 3773s Setting up libgcc-15-dev:arm64 (15.2.0-12ubuntu1) ... 3773s Setting up pkgconf:arm64 (1.8.1-4build1) ... 3773s Setting up cpp-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 3773s Setting up cpp-15 (15.2.0-12ubuntu1) ... 3773s Setting up cpp (4:15.2.0-4ubuntu1) ... 3773s Setting up libc6-dev:arm64 (2.42-2ubuntu4) ... 3773s Setting up libglib2.0-dev-bin (2.86.3-4) ... 3773s Setting up gcc-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 3773s Setting up libpcre2-dev:arm64 (10.46-1) ... 3773s Setting up gcc-15 (15.2.0-12ubuntu1) ... 3773s Setting up libstdc++-15-dev:arm64 (15.2.0-12ubuntu1) ... 3773s Setting up g++-15-aarch64-linux-gnu (15.2.0-12ubuntu1) ... 3773s Setting up uuid-dev:arm64 (2.41.2-4ubuntu2) ... 3773s Setting up zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 3773s Setting up libselinux-dev:arm64 (3.9-4) ... 3773s Setting up g++-15 (15.2.0-12ubuntu1) ... 3773s Setting up gcc-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 3773s Setting up libblkid-dev:arm64 (2.41.2-4ubuntu2) ... 3773s Setting up gcc (4:15.2.0-4ubuntu1) ... 3773s Setting up g++-aarch64-linux-gnu (4:15.2.0-4ubuntu1) ... 3773s Setting up libmount-dev:arm64 (2.41.2-4ubuntu2) ... 3773s Setting up libgio-2.0-dev:arm64 (2.86.3-4) ... 3773s Setting up g++ (4:15.2.0-4ubuntu1) ... 3773s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 3773s Setting up build-essential (12.12ubuntu2) ... 3773s Processing triggers for install-info (7.2-5) ... 3774s Processing triggers for libc-bin (2.42-2ubuntu4) ... 3774s Processing triggers for man-db (2.13.1-1) ... 3774s Processing triggers for libglib2.0-0t64:arm64 (2.86.3-4) ... 3774s No schema files found: doing nothing. 3774s Setting up libglib2.0-dev:arm64 (2.86.3-4) ... 3789s autopkgtest [00:59:16]: test libglib2.0-dev: [----------------------- 3789s + debian/tests/build 3789s + mode=dynamic 3789s + getopt -o --long static -n debian/tests/build -- 3789s + getopt_temp= -- 3789s + eval set -- -- 3789s + set -- -- 3789s + true 3789s + shift 3789s + break 3789s + mktemp -d 3789s + WORKDIR=/tmp/tmp.4ZcU26CcC4 3789s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 3789s + cd /tmp/tmp.4ZcU26CcC4 3789s + [ -n ] 3789s + CROSS_COMPILE= 3789s + cat 3789s + cat 3789s + cat 3789s + cat 3789s + cat 3789s + cat 3789s + cflags= 3789s + pcflags= 3789s + packages=glib-2.0 3789s + pkg-config --cflags --libs glib-2.0 3789s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 3790s + echo build (glib, dynamic): OK 3790s + [ -x glib-dynamic ] 3790s + foo=bar ./glib-dynamic 3790s build (glib, dynamic): OK 3790s + echo run (glib, dynamic): OK 3790s + run (glib, dynamic): OK 3790s cflags= 3790s + pcflags= 3790s + packages=gobject-2.0 3790s + pkg-config --cflags --libs gobject-2.0 3790s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 3790s build (gobject, dynamic): OK 3790s + echo build (gobject, dynamic): OK 3790s + [ -x gobject-dynamic ] 3790s + foo=bar ./gobject-dynamic 3790s run (gobject, dynamic): OK 3790s + echo run (gobject, dynamic): OK 3790s + cflags= 3790s + pcflags= 3790s + packages=gio-2.0 3790s + pkg-config --cflags --libs gio-2.0 3790s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 3790s + echo build (gio, dynamic): OK 3790s + [ -x gio-dynamic ] 3790s + foo=bar ./gio-dynamic 3790s build (gio, dynamic): OK 3790s + echo run (gio, dynamic): OK 3790s + cflags= 3790s + pcflags= 3790s + packages=gio-unix-2.0 3790s + pkg-config --cflags --libs gio-unix-2.0 3790s run (gio, dynamic): OK 3790s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 3790s build (gio-unix, dynamic): OK 3790s + echo build (gio-unix, dynamic): OK 3790s + [ -x gio-unix-dynamic ] 3790s + foo=bar ./gio-unix-dynamic 3790s + echo run (gio-unix, dynamic): OK 3790s + cflags= 3790s + pcflags= 3790s + packages=gmodule-2.0 3790s run (gio-unix, dynamic): OK 3790s + pkg-config --cflags --libs gmodule-2.0 3790s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 3790s + build (gmodule, dynamic): OK 3790s echo build (gmodule, dynamic): OK 3790s + [ -x gmodule-dynamic ] 3790s + foo=bar ./gmodule-dynamic 3790s + echo run (gmodule, dynamic): OK 3790s + cflags= 3790s + pcflags= 3790s + run (gmodule, dynamic): OK 3790s packages=gthread-2.0 3790s + pkg-config --cflags --libs gthread-2.0 3790s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 3790s + echo build (gthread, dynamic): OK 3790s + [ -x gthread-dynamic ] 3790s + foo=bar ./gthread-dynamic 3790s + echo run (gthread, dynamic): OK 3790s + rm -rf /tmp/tmp.4ZcU26CcC4 3790s build (gthread, dynamic): OK 3790s run (gthread, dynamic): OK 3790s + debian/tests/build-static 3790s + mode=dynamic 3790s + getopt -o --long static -n debian/tests/build -- --static 3790s + getopt_temp= --static -- 3790s + eval set -- --static -- 3790s + set -- --static -- 3790s + true 3790s + mode=static 3790s + shift 3790s + continue 3790s + true 3790s + shift 3790s + break 3790s + mktemp -d 3790s + WORKDIR=/tmp/tmp.K0BaYSpvdy 3790s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 3790s + cd /tmp/tmp.K0BaYSpvdy 3790s + [ -n ] 3790s + CROSS_COMPILE= 3790s + cat 3790s + cat 3790s + cat 3790s + cat 3790s + cat 3790s + cat 3790s + cflags= 3790s + pcflags= 3790s + packages=glib-2.0 3790s + cflags=-static 3790s + pcflags=--static 3790s + pkg-config --static --cflags --libs glib-2.0 3790s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 3790s /usr/bin/aarch64-linux-gnu-ld.bfd: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 3790s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3790s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3790s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3790s build (glib, static): OK 3790s + echo build (glib, static): OK 3790s + [ -x glib-static ] 3790s + foo=bar ./glib-static 3790s + echo run (glib, static): OK 3790s + cflags= 3790s + pcflags= 3790s + packages=gobject-2.0 3790s + cflags=-static 3790s + pcflags=--static 3790s + pkg-config --static --cflags --libs gobject-2.0 3790s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lffi 3790s run (glib, static): OK 3790s /usr/bin/aarch64-linux-gnu-ld.bfd: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 3790s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3790s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3790s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3791s build (gobject, static): OK 3791s + echo build (gobject, static): OK 3791s + [ -x gobject-static ] 3791s + foo=bar ./gobject-static 3791s run (gobject, static): OK 3791s + echo run (gobject, static): OK 3791s + cflags= 3791s + pcflags= 3791s + packages=gio-2.0 3791s + cflags=-static 3791s + pcflags=--static 3791s + continue 3791s + cflags= 3791s + pcflags= 3791s + packages=gio-unix-2.0 3791s + cflags=-static 3791s + pcflags=--static 3791s + continue 3791s + cflags= 3791s + pcflags= 3791s + packages=gmodule-2.0 3791s + cflags=-static 3791s + pcflags=--static 3791s + pkg-config --static --cflags --libs gmodule-2.0 3791s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 3791s /usr/bin/aarch64-linux-gnu-ld.bfd: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 3791s (.text+0x5c8): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3791s /usr/bin/aarch64-linux-gnu-ld.bfd: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 3791s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3791s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3791s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3791s + echo build (gmodule, static): OK 3791s + [ -x gmodule-static ] 3791s + foo=bar ./gmodule-static 3791s + echo run (gmodule, static): OK 3791s + cflags= 3791s + pcflags= 3791s + packages=gthread-2.0 3791s + cflags=-static 3791s + pcflags=--static 3791s + pkg-config --static --cflags --libs gthread-2.0 3791s build (gmodule, static): OK 3791s run (gmodule, static): OK 3791s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 3791s /usr/bin/aarch64-linux-gnu-ld.bfd: /usr/lib/gcc/aarch64-linux-gnu/15/../../../aarch64-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 3791s (.text+0xe4): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3791s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x27c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3791s /usr/bin/aarch64-linux-gnu-ld.bfd: (.text+0x118): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 3791s + echo build (gthread, static): OK 3791s + [ -x gthread-static ] 3791s + foo=bar ./gthread-static 3791s + echo run (gthread, static): OK 3791s + rm -rf /tmp/tmp.K0BaYSpvdy 3791s + debian/tests/girepository-tools 3791s + cd /tmp/autopkgtest.GHBBXJ/autopkgtest_tmp 3791s + dpkg-architecture -qDEB_HOST_GNU_TYPE 3791s build (gthread, static): OK 3791s run (gthread, static): OK 3791s + DEB_HOST_GNU_TYPE=aarch64-linux-gnu 3791s + dpkg-architecture -qDEB_HOST_MULTIARCH 3791s + DEB_HOST_MULTIARCH=aarch64-linux-gnu 3791s + aarch64-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 3791s + aarch64-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir 3791s typelib: GLib-2.0 3791s + aarch64-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 3791s + debian/tests/libgio-2.0-dev-bin 3791s + gdbus-codegen --help 3791s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 3791s [--c-namespace NAMESPACE] [--c-generate-object-manager] 3791s [--c-generate-autocleanup {none,objects,all}] 3791s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 3791s [--generate-rst OUTFILES] [--pragma-once] 3791s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 3791s [--glib-min-required VERSION] 3791s [--glib-max-allowed VERSION] 3791s [--symbol-decorator SYMBOL_DECORATOR] 3791s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 3791s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 3791s [--generate-c-code OUTFILES | --header | --body | 3791s --interface-info-header | --interface-info-body] 3791s [--output FILE | --output-directory OUTDIR] 3791s FILE [FILE ...] 3791s 3791s D-Bus code and documentation generator 3791s 3791s positional arguments: 3791s FILE D-Bus introspection XML file 3791s 3791s options: 3791s -h, --help show this help message and exit 3791s --interface-prefix PREFIX 3791s String to strip from D-Bus interface names for code 3791s and docs 3791s --c-namespace NAMESPACE 3791s The namespace to use for generated C code 3791s --c-generate-object-manager 3791s Generate a GDBusObjectManagerClient subclass when 3791s generating C code 3791s --c-generate-autocleanup {none,objects,all} 3791s Generate autocleanup support 3791s --generate-docbook OUTFILES 3791s Generate Docbook in OUTFILES-org.Project.IFace.xml 3791s --generate-md OUTFILES 3791s Generate Markdown in OUTFILES-org.Project.IFace.md 3791s --generate-rst OUTFILES 3791s Generate reStructuredText in OUTFILES- 3791s org.Project.IFace.rst 3791s --pragma-once Use "pragma once" as the inclusion guard 3791s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 3791s Add annotation (may be used several times) 3791s --glib-min-required VERSION 3791s Minimum version of GLib to be supported by the 3791s outputted code (default: 2.30) 3791s --glib-max-allowed VERSION 3791s Maximum version of GLib to be used by the outputted 3791s code (default: current GLib version) 3791s --symbol-decorator SYMBOL_DECORATOR 3791s Macro used to decorate a symbol in the outputted 3791s header, possibly to export symbols 3791s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 3791s Additional header required for decorator specified by 3791s --symbol-decorator 3791s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 3791s Additional define required for decorator specified by 3791s --symbol-decorator 3791s --generate-c-code OUTFILES 3791s Generate C code in OUTFILES.[ch] 3791s --header Generate C headers 3791s --body Generate C code 3791s --interface-info-header 3791s Generate GDBusInterfaceInfo C header 3791s --interface-info-body 3791s Generate GDBusInterfaceInfo C code 3791s --output FILE Write output into the specified file 3791s --output-directory OUTDIR 3791s Location to output generated files 3791s + glib-compile-resources --version 3791s + glib-genmarshal --version 3791s 2.86.3 3791s glib-genmarshal version 2.86.3 3791s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 3791s You may redistribute copies of glib-genmarshal under the terms of 3791s the GNU General Public License which can be found in the 3791s GLib source package. Sources, examples and contact 3791s information are available at http://www.gtk.org 3791s + glib-gettextize --version 3791s + glib-mkenums --version 3791s /usr/bin/glib-gettextize (GNU glib) 2.86.3 3791s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 3791s This is free software; see the source for copying conditions. There is NO 3791s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 3791s Written by Ulrich Drepper 3791s glib-mkenums version 2.86.3 3791s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 3791s You may redistribute copies of glib-mkenums under the terms of 3791s the GNU General Public License which can be found in the 3791s GLib source package. Sources, examples and contact 3791s information are available at http://www.gtk.org 3791s + gobject-query tree 3791s + gtester --version 3791s GObject 3791s + gtester-report --version 3791s gtester version 2.86.3 3791s gtester-report (GLib utils) version 2.86.3. 3791s + cd /tmp/autopkgtest.GHBBXJ/autopkgtest_tmp 3791s + dpkg-architecture -qDEB_HOST_MULTIARCH 3791s + DEB_HOST_MULTIARCH=aarch64-linux-gnu 3791s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 3791s typelib: GLib-2.0 3791s + gi-compile-repository -o GLib.typelib /usr/lib/aarch64-linux-gnu/gir-1.0/GLib-2.0.gir 3792s + gi-decompile-typelib -o GLib.gir GLib.typelib 3792s autopkgtest [00:59:19]: test libglib2.0-dev: -----------------------] 3792s libglib2.0-dev PASS (superficial) 3792s autopkgtest [00:59:19]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 3793s autopkgtest [00:59:20]: test installed-tests: preparing testbed 3854s Creating nova instance adt-resolute-arm64-glib2.0-20260205-235607-juju-7f2275-prod-proposed-migration-environment-2-67c938fa-4be4-45cc-a7ca-dcdd5bed6699 from image adt/ubuntu-resolute-arm64-server-20260205.img (UUID 88169191-3954-4b52-b471-25031b32a3a0)... 3914s autopkgtest [01:01:21]: testbed dpkg architecture: arm64 3914s autopkgtest [01:01:21]: testbed apt version: 3.1.14 3914s autopkgtest [01:01:21]: @@@@@@@@@@@@@@@@@@@@ test bed setup 3914s autopkgtest [01:01:21]: testbed release detected to be: resolute 3915s autopkgtest [01:01:22]: updating testbed package index (apt update) 3915s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 3915s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 3915s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 3915s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 3915s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 3915s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 3916s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 3916s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 3916s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [269 kB] 3916s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [7344 B] 3916s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [52.9 kB] 3916s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [328 B] 3916s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [1462 kB] 3916s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [42.1 kB] 3916s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [23.6 kB] 3916s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [776 B] 3920s Fetched 3872 kB in 1s (3768 kB/s) 3920s Reading package lists... 3921s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 3921s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 3921s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 3921s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 3922s Reading package lists... 3922s Reading package lists... 3922s Building dependency tree... 3922s Reading state information... 3922s Calculating upgrade... 3923s The following packages will be upgraded: 3923s libdrm-amdgpu1 libdrm-common libdrm2 mawk python3.14-gdbm 3923s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3923s Need to get 237 kB of archives. 3923s After this operation, 0 B of additional disk space will be used. 3923s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 mawk arm64 1.3.4.20260129-1 [128 kB] 3923s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-common all 2.4.131-1 [9774 B] 3923s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm2 arm64 2.4.131-1 [42.6 kB] 3923s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3.14-gdbm arm64 3.14.3-1 [33.9 kB] 3923s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-amdgpu1 arm64 2.4.131-1 [22.6 kB] 3923s dpkg-preconfigure: unable to re-open stdin: No such file or directory 3923s Fetched 237 kB in 0s (17.6 MB/s) 3923s (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 ... 89360 files and directories currently installed.) 3923s Preparing to unpack .../mawk_1.3.4.20260129-1_arm64.deb ... 3923s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 3924s Preparing to unpack .../libdrm-common_2.4.131-1_all.deb ... 3924s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 3924s Preparing to unpack .../libdrm2_2.4.131-1_arm64.deb ... 3924s Unpacking libdrm2:arm64 (2.4.131-1) over (2.4.129-1) ... 3924s Preparing to unpack .../python3.14-gdbm_3.14.3-1_arm64.deb ... 3924s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 3924s Preparing to unpack .../libdrm-amdgpu1_2.4.131-1_arm64.deb ... 3924s Unpacking libdrm-amdgpu1:arm64 (2.4.131-1) over (2.4.129-1) ... 3924s Setting up python3.14-gdbm (3.14.3-1) ... 3924s Setting up mawk (1.3.4.20260129-1) ... 3924s Setting up libdrm-common (2.4.131-1) ... 3924s Setting up libdrm2:arm64 (2.4.131-1) ... 3924s Setting up libdrm-amdgpu1:arm64 (2.4.131-1) ... 3924s Processing triggers for man-db (2.13.1-1) ... 3925s Processing triggers for libc-bin (2.42-2ubuntu4) ... 3925s autopkgtest [01:01:32]: upgrading testbed (apt dist-upgrade and autopurge) 3925s Reading package lists... 3925s Building dependency tree... 3925s Reading state information... 3925s Calculating upgrade... 3926s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3926s Reading package lists... 3926s Building dependency tree... 3926s Reading state information... 3926s Solving dependencies... 3927s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3930s Reading package lists... 3931s Building dependency tree... 3931s Reading state information... 3931s Solving dependencies... 3931s The following NEW packages will be installed: 3931s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 3931s gnome-desktop-testing libfontenc1 libgbm1 libgio-2.0-dev-bin libgl1 3931s libgl1-mesa-dri libglib2.0-bin libglib2.0-dev-bin libglib2.0-tests libglvnd0 3931s libglx-mesa0 libglx0 libice6 libpixman-1-0 libsm6 libunwind8 libvulkan1 3931s libx11-xcb1 libxaw7 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 3931s libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 3931s libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 3931s mesa-libgallium native-architecture python3-dbusmock tzdata-legacy 3931s x11-common x11-xkb-utils xserver-common xvfb 3931s 0 upgraded, 47 newly installed, 0 to remove and 0 not upgraded. 3931s Need to get 18.6 MB of archives. 3931s After this operation, 108 MB of additional disk space will be used. 3931s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 dbus-x11 arm64 1.16.2-2ubuntu2 [23.1 kB] 3931s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 desktop-file-utils arm64 0.28-1build1 [53.5 kB] 3931s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 gir1.2-glib-2.0-dev arm64 2.86.3-4 [865 kB] 3932s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 native-architecture all 0.2.6build1 [2256 B] 3932s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 girepository-tools arm64 2.86.3-4 [104 kB] 3932s Get:6 http://ftpmaster.internal/ubuntu resolute/universe arm64 gnome-desktop-testing arm64 2021.1-5 [16.2 kB] 3932s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 libfontenc1 arm64 1:1.1.8-1build2 [13.9 kB] 3932s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 libx11-xcb1 arm64 2:1.8.12-1build1 [8216 B] 3932s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-dri3-0 arm64 1.17.0-2ubuntu1 [7624 B] 3932s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-present0 arm64 1.17.0-2ubuntu1 [6198 B] 3932s Get:11 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-randr0 arm64 1.17.0-2ubuntu1 [18.1 kB] 3932s Get:12 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-sync1 arm64 1.17.0-2ubuntu1 [9620 B] 3932s Get:13 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-xfixes0 arm64 1.17.0-2ubuntu1 [10.4 kB] 3932s Get:14 http://ftpmaster.internal/ubuntu resolute/main arm64 libxshmfence1 arm64 1.3.3-1build1 [5482 B] 3932s Get:15 http://ftpmaster.internal/ubuntu resolute/main arm64 mesa-libgallium arm64 25.3.3-1ubuntu1 [12.1 MB] 3937s Get:16 http://ftpmaster.internal/ubuntu resolute/main arm64 libgbm1 arm64 25.3.3-1ubuntu1 [34.4 kB] 3937s Get:17 http://ftpmaster.internal/ubuntu resolute/main arm64 libgio-2.0-dev-bin arm64 2.86.3-4 [128 kB] 3937s Get:18 http://ftpmaster.internal/ubuntu resolute/main arm64 libvulkan1 arm64 1.4.335.0-1 [171 kB] 3937s Get:19 http://ftpmaster.internal/ubuntu resolute/main arm64 libgl1-mesa-dri arm64 25.3.3-1ubuntu1 [36.4 kB] 3937s Get:20 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-bin arm64 2.86.3-4 [97.9 kB] 3937s Get:21 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-dev-bin arm64 2.86.3-4 [18.2 kB] 3937s Get:22 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-dbusmock all 0.38.1-1 [92.0 kB] 3937s Get:23 http://ftpmaster.internal/ubuntu resolute/main arm64 tzdata-legacy all 2025c-3ubuntu3 [99.3 kB] 3937s Get:24 http://ftpmaster.internal/ubuntu resolute/universe arm64 libglib2.0-tests arm64 2.86.3-4 [2268 kB] 3938s Get:25 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-glx0 arm64 1.17.0-2ubuntu1 [25.1 kB] 3938s Get:26 http://ftpmaster.internal/ubuntu resolute/main arm64 libxcb-shm0 arm64 1.17.0-2ubuntu1 [5938 B] 3938s Get:27 http://ftpmaster.internal/ubuntu resolute/main arm64 libxxf86vm1 arm64 1:1.1.4-2 [10.2 kB] 3938s Get:28 http://ftpmaster.internal/ubuntu resolute/main arm64 libglx-mesa0 arm64 25.3.3-1ubuntu1 [110 kB] 3938s Get:29 http://ftpmaster.internal/ubuntu resolute/main arm64 x11-common all 1:7.7+24ubuntu1 [22.4 kB] 3938s Get:30 http://ftpmaster.internal/ubuntu resolute/main arm64 libice6 arm64 2:1.1.1-1build1 [43.0 kB] 3938s Get:31 http://ftpmaster.internal/ubuntu resolute/main arm64 libpixman-1-0 arm64 0.46.4-1 [204 kB] 3938s Get:32 http://ftpmaster.internal/ubuntu resolute/main arm64 libsm6 arm64 2:1.2.6-1 [16.6 kB] 3938s Get:33 http://ftpmaster.internal/ubuntu resolute/main arm64 libunwind8 arm64 1.8.3-0ubuntu1 [60.8 kB] 3938s Get:34 http://ftpmaster.internal/ubuntu resolute/main arm64 libxt6t64 arm64 1:1.2.1-1.3 [168 kB] 3938s Get:35 http://ftpmaster.internal/ubuntu resolute/main arm64 libxmu6 arm64 2:1.1.3-4 [47.6 kB] 3938s Get:36 http://ftpmaster.internal/ubuntu resolute/main arm64 libxpm4 arm64 1:3.5.17-1build3 [35.5 kB] 3938s Get:37 http://ftpmaster.internal/ubuntu resolute/main arm64 libxaw7 arm64 2:1.0.16-1build1 [183 kB] 3938s Get:38 http://ftpmaster.internal/ubuntu resolute/main arm64 libxfont2 arm64 1:2.0.6-2 [90.8 kB] 3938s Get:39 http://ftpmaster.internal/ubuntu resolute/main arm64 libxkbfile1 arm64 1:1.1.0-1build5 [69.0 kB] 3938s Get:40 http://ftpmaster.internal/ubuntu resolute/main arm64 libxrender1 arm64 1:0.9.12-1 [19.5 kB] 3938s Get:41 http://ftpmaster.internal/ubuntu resolute/main arm64 libxrandr2 arm64 2:1.5.4-1build1 [19.1 kB] 3938s Get:42 http://ftpmaster.internal/ubuntu resolute/main arm64 x11-xkb-utils arm64 7.7+9build1 [165 kB] 3938s Get:43 http://ftpmaster.internal/ubuntu resolute/main arm64 xserver-common all 2:21.1.21-1ubuntu1 [34.8 kB] 3938s Get:44 http://ftpmaster.internal/ubuntu resolute/main arm64 libglvnd0 arm64 1.7.0-3 [57.9 kB] 3938s Get:45 http://ftpmaster.internal/ubuntu resolute/main arm64 libglx0 arm64 1.7.0-3 [33.0 kB] 3938s Get:46 http://ftpmaster.internal/ubuntu resolute/main arm64 libgl1 arm64 1.7.0-3 [102 kB] 3938s Get:47 http://ftpmaster.internal/ubuntu resolute/universe arm64 xvfb arm64 2:21.1.21-1ubuntu1 [872 kB] 3938s Fetched 18.6 MB in 7s (2640 kB/s) 3938s Selecting previously unselected package dbus-x11. 3938s (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 ... 89360 files and directories currently installed.) 3938s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu2_arm64.deb ... 3938s Unpacking dbus-x11 (1.16.2-2ubuntu2) ... 3938s Selecting previously unselected package desktop-file-utils. 3938s Preparing to unpack .../01-desktop-file-utils_0.28-1build1_arm64.deb ... 3938s Unpacking desktop-file-utils (0.28-1build1) ... 3938s Selecting previously unselected package gir1.2-glib-2.0-dev:arm64. 3938s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.86.3-4_arm64.deb ... 3938s Unpacking gir1.2-glib-2.0-dev:arm64 (2.86.3-4) ... 3939s Selecting previously unselected package native-architecture. 3939s Preparing to unpack .../03-native-architecture_0.2.6build1_all.deb ... 3939s Unpacking native-architecture (0.2.6build1) ... 3939s Selecting previously unselected package girepository-tools:arm64. 3939s Preparing to unpack .../04-girepository-tools_2.86.3-4_arm64.deb ... 3939s Unpacking girepository-tools:arm64 (2.86.3-4) ... 3939s Selecting previously unselected package gnome-desktop-testing. 3939s Preparing to unpack .../05-gnome-desktop-testing_2021.1-5_arm64.deb ... 3939s Unpacking gnome-desktop-testing (2021.1-5) ... 3939s Selecting previously unselected package libfontenc1:arm64. 3939s Preparing to unpack .../06-libfontenc1_1%3a1.1.8-1build2_arm64.deb ... 3939s Unpacking libfontenc1:arm64 (1:1.1.8-1build2) ... 3939s Selecting previously unselected package libx11-xcb1:arm64. 3939s Preparing to unpack .../07-libx11-xcb1_2%3a1.8.12-1build1_arm64.deb ... 3939s Unpacking libx11-xcb1:arm64 (2:1.8.12-1build1) ... 3939s Selecting previously unselected package libxcb-dri3-0:arm64. 3939s Preparing to unpack .../08-libxcb-dri3-0_1.17.0-2ubuntu1_arm64.deb ... 3939s Unpacking libxcb-dri3-0:arm64 (1.17.0-2ubuntu1) ... 3939s Selecting previously unselected package libxcb-present0:arm64. 3939s Preparing to unpack .../09-libxcb-present0_1.17.0-2ubuntu1_arm64.deb ... 3939s Unpacking libxcb-present0:arm64 (1.17.0-2ubuntu1) ... 3939s Selecting previously unselected package libxcb-randr0:arm64. 3939s Preparing to unpack .../10-libxcb-randr0_1.17.0-2ubuntu1_arm64.deb ... 3939s Unpacking libxcb-randr0:arm64 (1.17.0-2ubuntu1) ... 3939s Selecting previously unselected package libxcb-sync1:arm64. 3939s Preparing to unpack .../11-libxcb-sync1_1.17.0-2ubuntu1_arm64.deb ... 3939s Unpacking libxcb-sync1:arm64 (1.17.0-2ubuntu1) ... 3939s Selecting previously unselected package libxcb-xfixes0:arm64. 3939s Preparing to unpack .../12-libxcb-xfixes0_1.17.0-2ubuntu1_arm64.deb ... 3939s Unpacking libxcb-xfixes0:arm64 (1.17.0-2ubuntu1) ... 3939s Selecting previously unselected package libxshmfence1:arm64. 3939s Preparing to unpack .../13-libxshmfence1_1.3.3-1build1_arm64.deb ... 3939s Unpacking libxshmfence1:arm64 (1.3.3-1build1) ... 3939s Selecting previously unselected package mesa-libgallium:arm64. 3939s Preparing to unpack .../14-mesa-libgallium_25.3.3-1ubuntu1_arm64.deb ... 3939s Unpacking mesa-libgallium:arm64 (25.3.3-1ubuntu1) ... 3939s Selecting previously unselected package libgbm1:arm64. 3939s Preparing to unpack .../15-libgbm1_25.3.3-1ubuntu1_arm64.deb ... 3939s Unpacking libgbm1:arm64 (25.3.3-1ubuntu1) ... 3939s Selecting previously unselected package libgio-2.0-dev-bin. 3939s Preparing to unpack .../16-libgio-2.0-dev-bin_2.86.3-4_arm64.deb ... 3939s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 3939s Selecting previously unselected package libvulkan1:arm64. 3939s Preparing to unpack .../17-libvulkan1_1.4.335.0-1_arm64.deb ... 3939s Unpacking libvulkan1:arm64 (1.4.335.0-1) ... 3939s Selecting previously unselected package libgl1-mesa-dri:arm64. 3939s Preparing to unpack .../18-libgl1-mesa-dri_25.3.3-1ubuntu1_arm64.deb ... 3939s Unpacking libgl1-mesa-dri:arm64 (25.3.3-1ubuntu1) ... 3939s Selecting previously unselected package libglib2.0-bin. 3939s Preparing to unpack .../19-libglib2.0-bin_2.86.3-4_arm64.deb ... 3939s Unpacking libglib2.0-bin (2.86.3-4) ... 3939s Selecting previously unselected package libglib2.0-dev-bin. 3939s Preparing to unpack .../20-libglib2.0-dev-bin_2.86.3-4_arm64.deb ... 3939s Unpacking libglib2.0-dev-bin (2.86.3-4) ... 3939s Selecting previously unselected package python3-dbusmock. 3939s Preparing to unpack .../21-python3-dbusmock_0.38.1-1_all.deb ... 3939s Unpacking python3-dbusmock (0.38.1-1) ... 3939s Selecting previously unselected package tzdata-legacy. 3939s Preparing to unpack .../22-tzdata-legacy_2025c-3ubuntu3_all.deb ... 3939s Unpacking tzdata-legacy (2025c-3ubuntu3) ... 3939s Selecting previously unselected package libglib2.0-tests. 3939s Preparing to unpack .../23-libglib2.0-tests_2.86.3-4_arm64.deb ... 3939s Unpacking libglib2.0-tests (2.86.3-4) ... 3940s Selecting previously unselected package libxcb-glx0:arm64. 3940s Preparing to unpack .../24-libxcb-glx0_1.17.0-2ubuntu1_arm64.deb ... 3940s Unpacking libxcb-glx0:arm64 (1.17.0-2ubuntu1) ... 3940s Selecting previously unselected package libxcb-shm0:arm64. 3940s Preparing to unpack .../25-libxcb-shm0_1.17.0-2ubuntu1_arm64.deb ... 3940s Unpacking libxcb-shm0:arm64 (1.17.0-2ubuntu1) ... 3940s Selecting previously unselected package libxxf86vm1:arm64. 3940s Preparing to unpack .../26-libxxf86vm1_1%3a1.1.4-2_arm64.deb ... 3940s Unpacking libxxf86vm1:arm64 (1:1.1.4-2) ... 3940s Selecting previously unselected package libglx-mesa0:arm64. 3940s Preparing to unpack .../27-libglx-mesa0_25.3.3-1ubuntu1_arm64.deb ... 3940s Unpacking libglx-mesa0:arm64 (25.3.3-1ubuntu1) ... 3940s Selecting previously unselected package x11-common. 3940s Preparing to unpack .../28-x11-common_1%3a7.7+24ubuntu1_all.deb ... 3940s Unpacking x11-common (1:7.7+24ubuntu1) ... 3940s Selecting previously unselected package libice6:arm64. 3940s Preparing to unpack .../29-libice6_2%3a1.1.1-1build1_arm64.deb ... 3940s Unpacking libice6:arm64 (2:1.1.1-1build1) ... 3940s Selecting previously unselected package libpixman-1-0:arm64. 3940s Preparing to unpack .../30-libpixman-1-0_0.46.4-1_arm64.deb ... 3940s Unpacking libpixman-1-0:arm64 (0.46.4-1) ... 3940s Selecting previously unselected package libsm6:arm64. 3940s Preparing to unpack .../31-libsm6_2%3a1.2.6-1_arm64.deb ... 3940s Unpacking libsm6:arm64 (2:1.2.6-1) ... 3940s Selecting previously unselected package libunwind8:arm64. 3940s Preparing to unpack .../32-libunwind8_1.8.3-0ubuntu1_arm64.deb ... 3940s Unpacking libunwind8:arm64 (1.8.3-0ubuntu1) ... 3940s Selecting previously unselected package libxt6t64:arm64. 3940s Preparing to unpack .../33-libxt6t64_1%3a1.2.1-1.3_arm64.deb ... 3940s Unpacking libxt6t64:arm64 (1:1.2.1-1.3) ... 3940s Selecting previously unselected package libxmu6:arm64. 3940s Preparing to unpack .../34-libxmu6_2%3a1.1.3-4_arm64.deb ... 3940s Unpacking libxmu6:arm64 (2:1.1.3-4) ... 3940s Selecting previously unselected package libxpm4:arm64. 3940s Preparing to unpack .../35-libxpm4_1%3a3.5.17-1build3_arm64.deb ... 3940s Unpacking libxpm4:arm64 (1:3.5.17-1build3) ... 3940s Selecting previously unselected package libxaw7:arm64. 3940s Preparing to unpack .../36-libxaw7_2%3a1.0.16-1build1_arm64.deb ... 3940s Unpacking libxaw7:arm64 (2:1.0.16-1build1) ... 3940s Selecting previously unselected package libxfont2:arm64. 3940s Preparing to unpack .../37-libxfont2_1%3a2.0.6-2_arm64.deb ... 3940s Unpacking libxfont2:arm64 (1:2.0.6-2) ... 3940s Selecting previously unselected package libxkbfile1:arm64. 3940s Preparing to unpack .../38-libxkbfile1_1%3a1.1.0-1build5_arm64.deb ... 3940s Unpacking libxkbfile1:arm64 (1:1.1.0-1build5) ... 3940s Selecting previously unselected package libxrender1:arm64. 3940s Preparing to unpack .../39-libxrender1_1%3a0.9.12-1_arm64.deb ... 3940s Unpacking libxrender1:arm64 (1:0.9.12-1) ... 3940s Selecting previously unselected package libxrandr2:arm64. 3940s Preparing to unpack .../40-libxrandr2_2%3a1.5.4-1build1_arm64.deb ... 3940s Unpacking libxrandr2:arm64 (2:1.5.4-1build1) ... 3940s Selecting previously unselected package x11-xkb-utils. 3940s Preparing to unpack .../41-x11-xkb-utils_7.7+9build1_arm64.deb ... 3940s Unpacking x11-xkb-utils (7.7+9build1) ... 3940s Selecting previously unselected package xserver-common. 3940s Preparing to unpack .../42-xserver-common_2%3a21.1.21-1ubuntu1_all.deb ... 3940s Unpacking xserver-common (2:21.1.21-1ubuntu1) ... 3940s Selecting previously unselected package libglvnd0:arm64. 3940s Preparing to unpack .../43-libglvnd0_1.7.0-3_arm64.deb ... 3940s Unpacking libglvnd0:arm64 (1.7.0-3) ... 3940s Selecting previously unselected package libglx0:arm64. 3940s Preparing to unpack .../44-libglx0_1.7.0-3_arm64.deb ... 3940s Unpacking libglx0:arm64 (1.7.0-3) ... 3940s Selecting previously unselected package libgl1:arm64. 3940s Preparing to unpack .../45-libgl1_1.7.0-3_arm64.deb ... 3940s Unpacking libgl1:arm64 (1.7.0-3) ... 3940s Selecting previously unselected package xvfb. 3940s Preparing to unpack .../46-xvfb_2%3a21.1.21-1ubuntu1_arm64.deb ... 3940s Unpacking xvfb (2:21.1.21-1ubuntu1) ... 3940s Setting up gnome-desktop-testing (2021.1-5) ... 3940s Setting up libxcb-dri3-0:arm64 (1.17.0-2ubuntu1) ... 3940s Setting up libpixman-1-0:arm64 (0.46.4-1) ... 3940s Setting up libx11-xcb1:arm64 (2:1.8.12-1build1) ... 3940s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 3941s Setting up native-architecture (0.2.6build1) ... 3941s Setting up libxcb-xfixes0:arm64 (1.17.0-2ubuntu1) ... 3941s Setting up desktop-file-utils (0.28-1build1) ... 3941s Setting up libxpm4:arm64 (1:3.5.17-1build3) ... 3941s Setting up libxrender1:arm64 (1:0.9.12-1) ... 3941s Setting up libglvnd0:arm64 (1.7.0-3) ... 3941s Setting up libxcb-glx0:arm64 (1.17.0-2ubuntu1) ... 3941s Setting up x11-common (1:7.7+24ubuntu1) ... 3941s Setting up libglib2.0-bin (2.86.3-4) ... 3941s Setting up libxcb-shm0:arm64 (1.17.0-2ubuntu1) ... 3941s Setting up python3-dbusmock (0.38.1-1) ... 3941s Setting up libunwind8:arm64 (1.8.3-0ubuntu1) ... 3941s Setting up tzdata-legacy (2025c-3ubuntu3) ... 3941s Setting up libxxf86vm1:arm64 (1:1.1.4-2) ... 3941s Setting up libxcb-present0:arm64 (1.17.0-2ubuntu1) ... 3941s Setting up libfontenc1:arm64 (1:1.1.8-1build2) ... 3941s Setting up libxcb-sync1:arm64 (1.17.0-2ubuntu1) ... 3941s Setting up libxrandr2:arm64 (2:1.5.4-1build1) ... 3941s Setting up libvulkan1:arm64 (1.4.335.0-1) ... 3941s Setting up gir1.2-glib-2.0-dev:arm64 (2.86.3-4) ... 3941s Setting up libxshmfence1:arm64 (1.3.3-1build1) ... 3941s Setting up dbus-x11 (1.16.2-2ubuntu2) ... 3941s Setting up libxcb-randr0:arm64 (1.17.0-2ubuntu1) ... 3941s Setting up libxkbfile1:arm64 (1:1.1.0-1build5) ... 3941s Setting up libxfont2:arm64 (1:2.0.6-2) ... 3941s Setting up libice6:arm64 (2:1.1.1-1build1) ... 3941s Setting up mesa-libgallium:arm64 (25.3.3-1ubuntu1) ... 3941s Setting up girepository-tools:arm64 (2.86.3-4) ... 3941s Setting up libgbm1:arm64 (25.3.3-1ubuntu1) ... 3941s Setting up libgl1-mesa-dri:arm64 (25.3.3-1ubuntu1) ... 3941s Setting up libsm6:arm64 (2:1.2.6-1) ... 3941s Setting up libglib2.0-dev-bin (2.86.3-4) ... 3941s Setting up libglx-mesa0:arm64 (25.3.3-1ubuntu1) ... 3941s Setting up libglx0:arm64 (1.7.0-3) ... 3941s Setting up libgl1:arm64 (1.7.0-3) ... 3941s Setting up libxt6t64:arm64 (1:1.2.1-1.3) ... 3941s Setting up libglib2.0-tests (2.86.3-4) ... 3941s Setting up libxmu6:arm64 (2:1.1.3-4) ... 3941s Setting up libxaw7:arm64 (2:1.0.16-1build1) ... 3941s Setting up x11-xkb-utils (7.7+9build1) ... 3941s Setting up xserver-common (2:21.1.21-1ubuntu1) ... 3941s Setting up xvfb (2:21.1.21-1ubuntu1) ... 3941s Processing triggers for man-db (2.13.1-1) ... 3942s Processing triggers for libc-bin (2.42-2ubuntu4) ... 3953s autopkgtest [01:02:00]: test installed-tests: [----------------------- 3953s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 3953s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 3953s group entry: ubuntu:x:1000: 3953s Environment: 3953s ADTTMP=/tmp/autopkgtest.GHBBXJ/autopkgtest_tmp 3953s ADT_ARTIFACTS=/tmp/autopkgtest.GHBBXJ/installed-tests-artifacts 3953s ADT_TEST_TRIGGERS=python3.14/3.14.3-1 3953s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.GHBBXJ/installed-tests-artifacts 3953s AUTOPKGTEST_TESTBED_ARCH=arm64 3953s AUTOPKGTEST_TEST_ARCH=arm64 3953s AUTOPKGTEST_TMP=/tmp/autopkgtest.GHBBXJ/autopkgtest_tmp 3953s DEBIAN_FRONTEND=noninteractive 3953s DEBUGINFOD_URLS=https://debuginfod.ubuntu.com 3953s DEB_BUILD_OPTIONS=parallel=2 3953s GIO_USE_VFS=local 3953s GIO_USE_VOLUME_MONITOR=unix 3953s HOME=/home/ubuntu 3953s LANG=C.UTF-8 3953s LOGNAME=ubuntu 3953s MAIL=/var/mail/ubuntu 3953s OLDPWD=/home/ubuntu 3953s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 3953s PWD=/tmp/autopkgtest.GHBBXJ/build.jmV/src 3953s SHELL=/bin/bash 3953s SHLVL=1 3953s SUDO_COMMAND=/tmp/autopkgtest-run-wrapper su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.GHBBXJ/wrapper.sh --artifacts=/tmp/autopkgtest.GHBBXJ/installed-tests-artifacts --chdir=/tmp/autopkgtest.GHBBXJ/build.jmV/src --env=AUTOPKGTEST_TESTBED_ARCH=arm64 --env=AUTOPKGTEST_TEST_ARCH=arm64 --env=DEB_BUILD_OPTIONS=parallel=2 --env=DEBIAN_FRONTEND=noninteractive --env=LANG=C.UTF-8 --unset-env=LANGUAGE --unset-env=LC_ADDRESS --unset-env=LC_ALL --unset-env=LC_COLLATE --unset-env=LC_CTYPE --unset-env=LC_IDENTIFICATION --unset-env=LC_MEASUREMENT --unset-env=LC_MESSAGES --unset-env=LC_MONETARY --unset-env=LC_NAME --unset-env=LC_NUMERIC --unset-env=LC_PAPER --unset-env=LC_TELEPHONE --unset-env=LC_TIME --script-pid-file=/tmp/autopkgtest_script_pid --source-profile --stderr=/tmp/autopkgtest.GHBBXJ/installed-tests-stderr --stdout=/tmp/autopkgtest.GHBBXJ/installed-tests-stdout --tmp=/tmp/autopkgtest.GHBBXJ/autopkgtest_tmp --env=ADT_TEST_TRIGGERS=python3.14/3.14.3-1 --make-executable=/tmp/autopkgtest.GHBBXJ/build.jmV/src/debian/tests/installed-tests -- /tmp/autopkgtest.GHBBXJ/build.jmV/src/debian/tests/installed-tests 3953s SUDO_GID=1000 3953s SUDO_HOME=/home/ubuntu 3953s SUDO_UID=1000 3953s SUDO_USER=ubuntu 3953s TERM=linux 3953s USER=ubuntu 3953s XDG_RUNTIME_DIR=/tmp/autopkgtest.GHBBXJ/autopkgtest_tmp 3953s http_proxy=http://egress.ps7.internal:3128/ 3953s https_proxy=http://egress.ps7.internal:3128/ 3953s no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain 3953s run-with-locales: de_DE=ISO-8859-1... 3953s Character set: ISO-8859-1 3953s Source file: de_DE 3953s Output: /tmp/tmp.5HojfHht9x/de_DE 3954s run-with-locales: de_DE.utf8... 3954s Character set: UTF-8 3954s Source file: de_DE 3954s Output: /tmp/tmp.5HojfHht9x/de_DE.utf8 3955s run-with-locales: de_DE@euro.utf8... 3955s Character set: UTF-8 3955s Source file: de_DE@euro 3955s Output: /tmp/tmp.5HojfHht9x/de_DE@euro.utf8 3957s run-with-locales: el_GR.utf8... 3957s Character set: UTF-8 3957s Source file: el_GR 3957s Output: /tmp/tmp.5HojfHht9x/el_GR.utf8 3959s run-with-locales: en_GB=ISO-8859-1... 3959s Character set: ISO-8859-1 3959s Source file: en_GB 3959s Output: /tmp/tmp.5HojfHht9x/en_GB 3959s run-with-locales: en_GB.utf8... 3959s Character set: UTF-8 3959s Source file: en_GB 3959s Output: /tmp/tmp.5HojfHht9x/en_GB.utf8 3961s run-with-locales: en_US=ISO-8859-1... 3961s Character set: ISO-8859-1 3961s Source file: en_US 3961s Output: /tmp/tmp.5HojfHht9x/en_US 3961s run-with-locales: en_US.utf8... 3961s Character set: UTF-8 3961s Source file: en_US 3961s Output: /tmp/tmp.5HojfHht9x/en_US.utf8 3963s run-with-locales: es_ES.utf8... 3963s Character set: UTF-8 3963s Source file: es_ES 3963s Output: /tmp/tmp.5HojfHht9x/es_ES.utf8 3965s run-with-locales: fa_IR=UTF-8... 3965s Character set: UTF-8 3965s Source file: fa_IR 3965s Output: /tmp/tmp.5HojfHht9x/fa_IR 3967s run-with-locales: fa_IR.utf8... 3967s Character set: UTF-8 3967s Source file: fa_IR 3967s Output: /tmp/tmp.5HojfHht9x/fa_IR.utf8 3969s run-with-locales: fr_FR.utf8... 3969s Character set: UTF-8 3969s Source file: fr_FR 3969s Output: /tmp/tmp.5HojfHht9x/fr_FR.utf8 3971s run-with-locales: hr_HR.utf8... 3971s Character set: UTF-8 3971s Source file: hr_HR 3971s Output: /tmp/tmp.5HojfHht9x/hr_HR.utf8 3972s run-with-locales: ja_JP.utf8... 3972s Character set: UTF-8 3972s Source file: ja_JP 3972s Output: /tmp/tmp.5HojfHht9x/ja_JP.utf8 3973s run-with-locales: ja_JP.EUC-JP... 3973s Character set: EUC-JP 3973s Source file: ja_JP 3973s Output: /tmp/tmp.5HojfHht9x/ja_JP.eucjp 3974s run-with-locales: lt_LT.utf8... 3974s Character set: UTF-8 3974s Source file: lt_LT 3974s Output: /tmp/tmp.5HojfHht9x/lt_LT.utf8 3976s run-with-locales: pl_PL=ISO-8859-2... 3976s Character set: ISO-8859-2 3976s Source file: pl_PL 3976s Output: /tmp/tmp.5HojfHht9x/pl_PL 3976s run-with-locales: pl_PL.ISO-8859-2... 3976s Character set: ISO-8859-2 3976s Source file: pl_PL 3976s Output: /tmp/tmp.5HojfHht9x/pl_PL.iso88592 3976s run-with-locales: pl_PL.utf8... 3976s Character set: UTF-8 3976s Source file: pl_PL 3976s Output: /tmp/tmp.5HojfHht9x/pl_PL.utf8 3978s run-with-locales: ru_RU=ISO-8859-5... 3978s Character set: ISO-8859-5 3978s Source file: ru_RU 3978s Output: /tmp/tmp.5HojfHht9x/ru_RU 3979s run-with-locales: ru_RU.utf8... 3979s Character set: UTF-8 3979s Source file: ru_RU 3979s Output: /tmp/tmp.5HojfHht9x/ru_RU.utf8 3981s run-with-locales: sr_RS=UTF-8... 3981s Character set: UTF-8 3981s Source file: sr_RS 3981s Output: /tmp/tmp.5HojfHht9x/sr_RS 3982s run-with-locales: sr_RS@latin=UTF-8... 3982s Character set: UTF-8 3982s Source file: sr_RS@latin 3982s Output: /tmp/tmp.5HojfHht9x/sr_RS@latin 3984s run-with-locales: sv_SE=ISO-8859-1... 3984s Character set: ISO-8859-1 3984s Source file: sv_SE 3984s Output: /tmp/tmp.5HojfHht9x/sv_SE 3984s run-with-locales: sv_SE.utf8... 3985s Character set: UTF-8 3985s Source file: sv_SE 3985s Output: /tmp/tmp.5HojfHht9x/sv_SE.utf8 3986s run-with-locales: tr_TR=ISO-8859-9... 3986s Character set: ISO-8859-9 3986s Source file: tr_TR 3986s Output: /tmp/tmp.5HojfHht9x/tr_TR 3987s run-with-locales: tr_TR.utf8... 3987s Character set: UTF-8 3987s Source file: tr_TR 3987s Output: /tmp/tmp.5HojfHht9x/tr_TR.utf8 3989s run-with-locales: tt_RU=UTF-8... 3989s Character set: UTF-8 3989s Source file: tt_RU 3989s Output: /tmp/tmp.5HojfHht9x/tt_RU 3991s run-with-locales: tt_RU.utf8... 3991s Character set: UTF-8 3991s Source file: tt_RU 3991s Output: /tmp/tmp.5HojfHht9x/tt_RU.utf8 3992s run-with-locales: tt_RU@iqtelif=UTF-8... 3992s Character set: UTF-8 3992s Source file: tt_RU@iqtelif 3992s Output: /tmp/tmp.5HojfHht9x/tt_RU@iqtelif 3994s /tmp/tmp.5HojfHht9x 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/pl_PL.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/fa_IR.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/de_DE.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/sv_SE 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_NAME 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_TIME 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/sv_SE/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/tt_RU 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_NAME 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_TIME 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/tt_RU/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/tr_TR 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_NAME 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_TIME 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/tr_TR/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/lt_LT.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/en_GB.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/en_GB 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_NAME 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_TIME 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/en_GB/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/en_US 3994s /tmp/tmp.5HojfHht9x/en_US/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/en_US/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/en_US/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/en_US/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/en_US/LC_NAME 3994s /tmp/tmp.5HojfHht9x/en_US/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/en_US/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/en_US/LC_TIME 3994s /tmp/tmp.5HojfHht9x/en_US/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/en_US/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/en_US/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/en_US/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/en_US/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_NAME 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_TIME 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/ja_JP.eucjp/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_NAME 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_TIME 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/sr_RS@latin/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/es_ES.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/de_DE 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_NAME 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_TIME 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/de_DE/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/tr_TR.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/ru_RU 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_NAME 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_TIME 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/ru_RU/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/sr_RS 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_NAME 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_TIME 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/sr_RS/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/sv_SE.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_NAME 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_TIME 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/tt_RU@iqtelif/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/en_US.utf8 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/en_US.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/fr_FR.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/pl_PL 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_NAME 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_TIME 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/pl_PL/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/tt_RU.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_NAME 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_TIME 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/pl_PL.iso88592/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/ru_RU.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/ja_JP.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/fa_IR 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_NAME 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_TIME 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/fa_IR/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/el_GR.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/de_DE@euro.utf8/LC_COLLATE 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_IDENTIFICATION 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_CTYPE 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_MONETARY 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_MEASUREMENT 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_NAME 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_TIME 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_ADDRESS 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_NUMERIC 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_TELEPHONE 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_PAPER 3994s /tmp/tmp.5HojfHht9x/hr_HR.utf8/LC_COLLATE 3994s 1..332 3994s # Running test: glib/performance.test 3999s # Executing: glib/performance.test 4001s simple-construction: Millions of constructed objects per second: 17.955 4003s simple-construction1: Millions of constructed objects per second: 74.873 4004s # Executing: glib/performance.test 4006s complex-construction: Millions of constructed objects per second: 5.835 4009s # Executing: glib/performance.test 4011s complex-construction1: Millions of constructed objects per second: 10.355 4014s # Executing: glib/performance.test 4016s complex-construction2: Millions of constructed objects per second: 13.125 4017s finalization: Millions of finalized objects per second: 3.660 4019s type-check: Million type checks per second: 106.22 4019s # Executing: glib/performance.test 4020s emit-unhandled: Emissions per second: 4339972 4021s emit-unhandled-empty: Emissions per second: 22819339 4022s emit-unhandled-generic: Emissions per second: 5618337 4023s emit-unhandled-generic-empty: Emissions per second: 22763456 4024s # Executing: glib/performance.test 4025s emit-unhandled-args: Emissions per second: 3865163 4026s emit-handled: Emissions per second: 3078596 4027s emit-handled-empty: Emissions per second: 3157025 4028s emit-handled-generic: Emissions per second: 3134543 4029s # Executing: glib/performance.test 4029s emit-handled-generic-empty: Emissions per second: 5009036 4030s emit-handled-args: Emissions per second: 2835340 4032s notify-unhandled: Notify (unhandled) per second: 25965647 4033s notify-by-pspec-unhandled: Notify (unhandled) per second: 101798974 4034s notify-handled: Notify per second: 1914279 4034s # Executing: glib/performance.test 4035s notify-by-pspec-handled: Notify per second: 2037278 4037s property-set: Property set per second: 13520076 4038s property-set-signaled: Property set per second: 3981219 4039s property-get: Property get per second: 14085962 4039s # Executing: glib/performance.test 4040s refcount: Million refs+unref per second: 25.85 4041s refcount-1: Million refs+unref per second: 75.94 4042s refcount-toggle: Million refs+unref per second: 59.08 4042s ok - glib/performance.test 4042s # Running test: glib/scannerapi.test 4042s TAP version 14 4042s # random seed: R02Sce3d0222017c34bf0e79f7d961cb0df3 4042s 1..8 4042s # Start of scanner tests 4042s ok 1 /scanner/warn 4042s ok 2 /scanner/error 4042s ok 3 /scanner/symbols 4042s ok 4 /scanner/tokens 4042s ok 5 /scanner/multiline-comment 4042s ok 6 /scanner/int-to-float 4042s ok 7 /scanner/fd-input 4042s # Start of fd-input tests 4042s ok 8 /scanner/fd-input/rewind 4043s ok - glib/scannerapi.test 4043s # Running test: glib/utils-c-99.test 4043s # End of fd-input tests 4043s # End of scanner tests 4043s TAP version 14 4043s # random seed: R02S4b1919244cb0dea9508091926df6a0ea 4043s 1..41 4043s # Start of utils tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/language-names/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/language-names/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/language-names/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/language-names/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/language-names/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/language-names/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/language-names/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/language-names/.dirs/runtime 4043s ok 1 /utils/language-names 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/locale-variants/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/locale-variants/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/locale-variants/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/locale-variants/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/locale-variants/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/locale-variants/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/locale-variants/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/locale-variants/.dirs/runtime 4043s # Testing locale ‘en’ 4043s # Testing locale ‘sr@latin’ 4043s # Testing locale ‘fr_BE’ 4043s # Testing locale ‘sr_SR@latin’ 4043s # Testing locale ‘sr_SR@latin.UTF-8’ 4043s # Testing locale ‘sr@latin_invalid’ 4043s # Testing locale ‘sr.UTF-8@latin’ 4043s # Testing locale ‘sr.UTF-8_latin’ 4043s # Testing locale ‘sr.UTF-8@latin_invalid’ 4043s ok 2 /utils/locale-variants 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/version/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/version/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/version/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/version/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/version/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/version/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/version/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/version/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/version/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/version/.dirs/runtime 4043s ok 3 /utils/version 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/appname/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/appname/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/appname/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/appname/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/appname/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/appname/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/appname/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/appname/.dirs/runtime 4043s ok 4 /utils/appname 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/prgname-thread-safety/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/prgname-thread-safety/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/prgname-thread-safety/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/prgname-thread-safety/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/prgname-thread-safety/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/prgname-thread-safety/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/prgname-thread-safety/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/prgname-thread-safety/.dirs/runtime 4043s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 4043s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 4043s ok 5 /utils/prgname-thread-safety 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/tmpdir/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/tmpdir/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/tmpdir/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/tmpdir/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/tmpdir/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/tmpdir/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/tmpdir/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/tmpdir/.dirs/runtime 4043s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 4043s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 4043s Unable to clean up temporary directory /tmp/test_utils-c-99_SXQ8J3/utils/tmpdir: No such file or directory 4043s ok 6 /utils/tmpdir 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/basic_bits/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/basic_bits/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/basic_bits/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/basic_bits/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/basic_bits/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/basic_bits/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/basic_bits/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/basic_bits/.dirs/runtime 4043s ok 7 /utils/basic_bits 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/bits/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/bits/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/bits/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/bits/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/bits/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/bits/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/bits/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/bits/.dirs/runtime 4043s ok 8 /utils/bits 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/swap/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/swap/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/swap/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/swap/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/swap/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/swap/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/swap/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/swap/.dirs/runtime 4043s ok 9 /utils/swap 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/find-program/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/find-program/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/find-program/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/find-program/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/find-program/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/find-program/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/find-program/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/find-program/.dirs/runtime 4043s ok 10 /utils/find-program 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/find-program-for-path/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/find-program-for-path/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/find-program-for-path/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/find-program-for-path/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/find-program-for-path/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/find-program-for-path/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/find-program-for-path/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/find-program-for-path/.dirs/runtime 4043s ok 11 /utils/find-program-for-path 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/debug/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/debug/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/debug/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/debug/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/debug/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/debug/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/debug/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/debug/.dirs/runtime 4043s Unable to clean up temporary directory /tmp/test_utils-c-99_SXQ8J3/utils/debug: No such file or directory 4043s ok 12 /utils/debug 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/codeset/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/codeset/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/codeset/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/codeset/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/codeset/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/codeset/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/codeset/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/codeset/.dirs/runtime 4043s ok 13 /utils/codeset 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/codeset2/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/codeset2/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/codeset2/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/codeset2/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/codeset2/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/codeset2/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/codeset2/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/codeset2/.dirs/runtime 4043s Unable to clean up temporary directory /tmp/test_utils-c-99_SXQ8J3/utils/codeset2: No such file or directory 4043s ok 14 /utils/codeset2 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/console-charset/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/console-charset/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/console-charset/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/console-charset/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/console-charset/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/console-charset/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/console-charset/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/console-charset/.dirs/runtime 4043s ok 15 /utils/console-charset 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/gettext/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/gettext/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/gettext/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/gettext/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/gettext/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/gettext/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/gettext/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/gettext/.dirs/runtime 4043s ok 16 /utils/gettext 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/username/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/username/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/username/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/username/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/username/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/username/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/username/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/username/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/username/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/username/.dirs/runtime 4043s ok 17 /utils/username 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/realname/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/realname/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/realname/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/realname/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/realname/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/realname/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/realname/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/realname/.dirs/runtime 4043s ok 18 /utils/realname 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/hostname/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/hostname/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/hostname/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/hostname/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/hostname/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/hostname/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/hostname/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/hostname/.dirs/runtime 4043s ok 19 /utils/hostname 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/os-info/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/os-info/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/os-info/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/os-info/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/os-info/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/os-info/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/os-info/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/os-info/.dirs/runtime 4043s # NAME: Ubuntu 4043s ok 20 /utils/os-info 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/.dirs/runtime 4043s ok 21 /utils/clear-pointer 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer-cast/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer-cast/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer-cast/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer-cast/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer-cast/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer-cast/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer-cast/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer-cast/.dirs/runtime 4043s ok 22 /utils/clear-pointer-cast 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/take-pointer/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/take-pointer/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/take-pointer/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/take-pointer/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/take-pointer/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/take-pointer/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/take-pointer/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/take-pointer/.dirs/runtime 4043s ok 23 /utils/take-pointer 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-source/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-source/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-source/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-source/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-source/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-source/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-source/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/clear-source/.dirs/runtime 4043s ok 24 /utils/clear-source 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/misc-mem/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/misc-mem/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/misc-mem/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/misc-mem/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/misc-mem/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/misc-mem/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/misc-mem/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/misc-mem/.dirs/runtime 4043s ok 25 /utils/misc-mem 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/.dirs/runtime 4043s # /utils/aligned-mem summary: Aligned memory allocator 4043s # Alignment must not be zero 4043s # Alignment must be a power of two 4043s # Alignment must be a multiple of sizeof(void*) 4043s ok 26 /utils/aligned-mem 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/free-sized/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/free-sized/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/free-sized/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/free-sized/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/free-sized/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/free-sized/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/free-sized/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/free-sized/.dirs/runtime 4043s # /utils/free-sized summary: Check that g_free_sized() works 4043s ok 27 /utils/free-sized 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/nullify/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/nullify/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/nullify/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/nullify/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/nullify/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/nullify/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/nullify/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/nullify/.dirs/runtime 4043s ok 28 /utils/nullify 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/atexit/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/atexit/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/atexit/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/atexit/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/atexit/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/atexit/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/atexit/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/atexit/.dirs/runtime 4043s Unable to clean up temporary directory /tmp/test_utils-c-99_SXQ8J3/utils/atexit: No such file or directory 4043s ok 29 /utils/atexit 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/check-setuid/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/check-setuid/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/check-setuid/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/check-setuid/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/check-setuid/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/check-setuid/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/check-setuid/.dirs/state 4043s ok - glib/utils-c-99.test 4043s # Running test: glib/memory-monitor-poll.test 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/check-setuid/.dirs/runtime 4043s ok 30 /utils/check-setuid 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/int-limits/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/int-limits/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/int-limits/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/int-limits/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/int-limits/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/int-limits/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/int-limits/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/int-limits/.dirs/runtime 4043s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 4043s ok 31 /utils/int-limits 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-list/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-list/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-list/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-list/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-list/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-list/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-list/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/clear-list/.dirs/runtime 4043s ok 32 /utils/clear-list 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-slist/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-slist/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-slist/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-slist/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-slist/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-slist/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-slist/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/clear-slist/.dirs/runtime 4043s ok 33 /utils/clear-slist 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/steal-handle-id/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/steal-handle-id/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/steal-handle-id/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/steal-handle-id/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/steal-handle-id/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/steal-handle-id/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/steal-handle-id/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/steal-handle-id/.dirs/runtime 4043s ok 34 /utils/steal-handle-id 4043s # Start of user-special-dirs tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/desktop/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/desktop/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/desktop/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/desktop/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/desktop/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/desktop/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/desktop/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/desktop/.dirs/runtime 4043s ok 35 /utils/user-special-dirs/desktop 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked/.dirs/runtime 4043s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 4043s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 4043s Unable to clean up temporary directory /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/load-unlocked: No such file or directory 4043s ok 36 /utils/user-special-dirs/load-unlocked 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks/.dirs/runtime 4043s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 4043s Unable to clean up temporary directory /tmp/test_utils-c-99_SXQ8J3/utils/user-special-dirs/reload-leaks: No such file or directory 4043s ok 37 /utils/user-special-dirs/reload-leaks 4043s # End of user-special-dirs tests 4043s # Start of clear-pointer tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/side-effects/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/side-effects/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/side-effects/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/side-effects/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/side-effects/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/side-effects/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/side-effects/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/clear-pointer/side-effects/.dirs/runtime 4043s ok 38 /utils/clear-pointer/side-effects 4043s # End of clear-pointer tests 4043s # Start of aligned-mem tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/alignment/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/alignment/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/alignment/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/alignment/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/alignment/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/alignment/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/alignment/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/alignment/.dirs/runtime 4043s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 4043s ok 39 /utils/aligned-mem/alignment 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/zeroed/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/zeroed/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/zeroed/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/zeroed/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/zeroed/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/zeroed/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/zeroed/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/zeroed/.dirs/runtime 4043s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 4043s ok 40 /utils/aligned-mem/zeroed 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/free-sized/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/free-sized/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/free-sized/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/free-sized/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/free-sized/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/free-sized/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/free-sized/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_SXQ8J3/utils/aligned-mem/free-sized/.dirs/runtime 4043s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 4043s ok 41 /utils/aligned-mem/free-sized 4043s # Start of subprocess tests 4043s # End of subprocess tests 4043s # End of aligned-mem tests 4043s # End of utils tests 4043s TAP version 14 4043s # random seed: R02Sfdb376d8332cd7fa7582e1b19e1b329f 4043s 1..4 4043s # Start of memory-monitor-poll tests 4043s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation poll (GMemoryMonitorPoll) for ‘gio-memory-monitor’ 4043s ok 1 /memory-monitor-poll/dup-default 4043s # GLib-GIO-DEBUG: memory free ratio 0.190000 4043s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 4043s ok 2 /memory-monitor-poll/critical-event 4043s # GLib-GIO-DEBUG: memory free ratio 0.290000 4043s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 4043s ok 3 /memory-monitor-poll/medium-event 4043s # GLib-GIO-DEBUG: memory free ratio 0.390000 4043s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 4043s ok 4 /memory-monitor-poll/low-event 4043s # End of memory-monitor-poll tests 4043s ok - glib/memory-monitor-poll.test 4043s # Running test: glib/portal-support-none.test 4043s ok - glib/portal-support-none.test 4043s # Running test: glib/properties-introspection.test 4043s TAP version 14 4043s # random seed: R02Sd1891ea61b96251146e29d9408bba015 4043s 1..1 4043s # Start of portal-support tests 4043s ok 1 /portal-support/none 4043s # End of portal-support tests 4043s TAP version 14 4043s # random seed: R02Sd8c8ac2eb5f8d0ef4195fad65b69ffba 4043s 1..2 4043s # Start of properties tests 4043s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 4043s ok 1 /properties/introspection 4043s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 4043s ok 2 /properties/collision 4043s # End of properties tests 4043s ok - glib/properties-introspection.test 4043s # Running test: glib/hook.test 4043s TAP version 14 4043s # random seed: R02Sa7dad26a07ec8a591183aa9f720a0a66 4043s 1..2 4043s # Start of hook tests 4043s ok 1 /hook/basics 4043s ok 2 /hook/corner-cases 4043s # End of hook tests 4043s ok - glib/hook.test 4043s # Running test: glib/inet-address.test 4043s TAP version 14 4043s # random seed: R02S7eacedafe26246f9ffce9d137b52548b 4043s 1..11 4043s # Start of inet-address tests 4043s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::1::2 4043s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 2001:1:2:3:4:5:6:7] 4043s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7 4043s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7] 4043s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7]:80 4043s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 0:1:2:3:4:5:6:7:8:9 4043s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::FFFFFFF 4043s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 204.152.189.116:80 4043s ok 1 /inet-address/parse 4043s ok 2 /inet-address/any 4043s ok 3 /inet-address/loopback 4043s ok 4 /inet-address/bytes 4043s ok 5 /inet-address/property 4043s # End of inet-address tests 4043s # Start of socket-address tests 4043s ok 6 /socket-address/basic 4043s ok 7 /socket-address/to-string 4043s # End of socket-address tests 4043s # Start of address-mask tests 4043s ok 8 /address-mask/parse 4043s ok 9 /address-mask/property 4043s ok 10 /address-mask/equal 4043s ok 11 /address-mask/match 4043s # End of address-mask tests 4043s ok - glib/inet-address.test 4043s # Running test: glib/volumemonitor.test 4043s TAP version 14 4043s # random seed: R02S903f6a029d9ec246ffffaaee935f2418 4043s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4043s 1..3 4043s # Start of volumemonitor tests 4043s ok 1 /volumemonitor/connected_drives 4043s ok 2 /volumemonitor/volumes 4043s ok 3 /volumemonitor/mounts 4043s # End of volumemonitor tests 4043s ok - glib/volumemonitor.test 4043s # Running test: glib/signalgroup.test 4043s TAP version 14 4043s # random seed: R02S59021875de5521b0297678025361708a 4043s 1..9 4043s # Start of GObject tests 4043s # Start of SignalGroup tests 4043s ok 1 /GObject/SignalGroup/invalid 4043s ok 2 /GObject/SignalGroup/simple 4043s ok 3 /GObject/SignalGroup/changing-target 4043s ok 4 /GObject/SignalGroup/blocking 4043s ok 5 /GObject/SignalGroup/weak-ref-target 4043s ok 6 /GObject/SignalGroup/connect-object 4043s ok 7 /GObject/SignalGroup/signal-parsing 4043s ok 8 /GObject/SignalGroup/properties 4043s ok 9 /GObject/SignalGroup/interface 4043s # Start of signal-parsing tests 4043s # End of signal-parsing tests 4043s ok - glib/signalgroup.test 4043s # End of SignalGroup tests 4043s # End of GObject tests 4043s # Running test: glib/repository-search-paths.test 4043s TAP version 14 4043s # random seed: R02Sb048264c694a1c79b94a6ed639cea1f0 4043s 1..4 4043s # Start of repository tests 4043s # Start of search-paths tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/default/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/default/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_21WPK3/repository/search-paths/default/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/default/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_21WPK3/repository/search-paths/default/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/default/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/default/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/default/.dirs/runtime 4043s ok 1 /repository/search-paths/default 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/prepend/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/prepend/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_21WPK3/repository/search-paths/prepend/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/prepend/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_21WPK3/repository/search-paths/prepend/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/prepend/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/prepend/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_21WPK3/repository/search-paths/prepend/.dirs/runtime 4043s ok 2 /repository/search-paths/prepend 4043s # End of search-paths tests 4043s # Start of library-paths tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/default/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/default/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_21WPK3/repository/library-paths/default/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/default/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_21WPK3/repository/library-paths/default/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/default/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/default/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/default/.dirs/runtime 4043s ok 3 /repository/library-paths/default 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/prepend/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/prepend/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_21WPK3/repository/library-paths/prepend/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/prepend/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_21WPK3/repository/library-paths/prepend/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/prepend/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/prepend/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_21WPK3/repository/library-paths/prepend/.dirs/runtime 4043s ok 4 /repository/library-paths/prepend 4043s # End of library-paths tests 4043s # End of repository tests 4043s TAP version 14 4043s # random seed: R02S6fd0d200c1c15d7b6497122b1e343735 4043s 1..5 4043s # Start of once tests 4043s # /once/single-threaded summary: Test g_once() usage from a single thread 4043s ok 1 /once/single-threaded 4043s # /once/multi-threaded summary: Test g_once() usage from multiple threads 4043s ok - glib/repository-search-paths.test 4043s # Running test: glib/once.test 4043s ok 2 /once/multi-threaded 4043s # End of once tests 4043s # Start of once-init tests 4043s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 4043s ok 3 /once-init/single-threaded 4043s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 4043s ok 4 /once-init/multi-threaded 4043s ok - glib/once.test 4043s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 4043s ok 5 /once-init/string 4043s # End of once-init tests 4043s # Running test: glib/gdbus-non-socket.test 4043s TAP version 14 4043s # random seed: R02S5246f4bf0d38753bd9f3200a2d607bcd 4043s 1..1 4043s # Start of gdbus tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_PADNK3/gdbus/non-socket/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_PADNK3/gdbus/non-socket/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_PADNK3/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_PADNK3/gdbus/non-socket/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_PADNK3/gdbus/non-socket/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_PADNK3/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_PADNK3/gdbus/non-socket/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_PADNK3/gdbus/non-socket/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_PADNK3/gdbus/non-socket/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_PADNK3/gdbus/non-socket/.dirs/runtime 4043s ok 1 /gdbus/non-socket 4043s # End of gdbus tests 4043s ok - glib/gdbus-non-socket.test 4043s # Running test: glib/gapplication.test 4043s TAP version 14 4043s # random seed: R02S5f2e8ccfc83b5d0a6a762f3217ccceb8 4043s 1..25 4043s # Start of gapplication tests 4043s ok 1 /gapplication/no-dbus 4043s ok 2 /gapplication/no-appid 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s ok 3 /gapplication/properties 4043s ok 4 /gapplication/app-id 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s ok 5 /gapplication/quit 4043s ok 6 /gapplication/registered 4043s ok 7 /gapplication/local-actions 4043s ok 8 /gapplication/local-command-line 4043s ok 9 /gapplication/resource-path 4043s ok 10 /gapplication/test-help 4043s ok 11 /gapplication/command-line-done 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s ok 12 /gapplication/test-busy 4043s ok 13 /gapplication/test-handle-local-options1 4043s ok 14 /gapplication/test-handle-local-options2 4043s ok 15 /gapplication/test-handle-local-options3 4043s ok 16 /gapplication/api 4043s ok 17 /gapplication/version 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4043s # launching subprocess 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s ok 18 /gapplication/replace 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4043s # launching subprocess 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s ok 19 /gapplication/no-replace 4043s # slow test /gapplication/no-replace executed in 0.51 secs 4043s # Start of command-line tests 4043s # /gapplication/command-line/arguments summary: Test HANDLES_COMMAND_LINE locally with a ->local_command_line vfunc which forces g_application_run() to take a fallback error handling path 4043s ok 20 /gapplication/command-line/arguments 4043s # End of command-line tests 4043s # Start of dbus tests 4043s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4043s # Message 0 4043s # Message 1 4043s # Message 2 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s ok 21 /gapplication/dbus/activate 4043s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4043s # Message 0 4043s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4043s # Message 1 4043s # Message 2 4043s # Message 3 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s ok 22 /gapplication/dbus/open 4043s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4043s # Message 0 4043s # Message 1 4043s # Message 2 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s ok 23 /gapplication/dbus/command-line 4043s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s ok 24 /gapplication/dbus/command-line-done 4043s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4043s # Message 0 4043s # Message 1 4043s # Message 2 4043s # Message 3 4043s # Message 4 4043s # Message 5 4043s # Message 6 4043s # Message 7 4043s # Message 8 4043s # Message 9 4043s # Message 10 4043s # Message 11 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4043s ok 25 /gapplication/dbus/activate-action 4043s # End of dbus tests 4043s # End of gapplication tests 4043s ok - glib/gapplication.test 4043s # Running test: glib/gdbus-peer-object-manager.test 4043s TAP version 14 4043s # random seed: R02S2a5008eaecf9d81d015fbfc1dda8fb72 4043s 1..2 4043s # Start of gdbus tests 4043s # Start of peer-object-manager tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/normal/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/normal/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/normal/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/normal/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/normal/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/normal/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/normal/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/normal/.dirs/runtime 4043s ok 1 /gdbus/peer-object-manager/normal 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/root/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/root/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/root/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/root/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/root/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/root/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/root/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_A8K3J3/gdbus/peer-object-manager/root/.dirs/runtime 4043s ok 2 /gdbus/peer-object-manager/root 4043s # End of peer-object-manager tests 4043s # End of gdbus tests 4043s TAP version 14 4043s # random seed: R02S1952fc7a571768d6e245ef0d209eab56 4043s 1..11 4043s # Start of utils-isolated tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/tmp-dir/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/tmp-dir/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/tmp-dir/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/tmp-dir/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/tmp-dir/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/tmp-dir/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/tmp-dir/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/tmp-dir/.dirs/runtime 4043s ok 1 /utils-isolated/tmp-dir 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/home-dir/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/home-dir/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/home-dir/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/home-dir/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/home-dir/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/home-dir/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/home-dir/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/home-dir/.dirs/runtime 4043s ok 2 /utils-isolated/home-dir 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-cache-dir/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-cache-dir/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/user-cache-dir/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-cache-dir/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/user-cache-dir/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-cache-dir/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-cache-dir/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-cache-dir/.dirs/runtime 4043s ok 3 /utils-isolated/user-cache-dir 4043s ok - glib/gdbus-peer-object-manager.test 4043s # Running test: glib/utils-isolated.test 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-config-dirs/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-config-dirs/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/system-config-dirs/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-config-dirs/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/system-config-dirs/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-config-dirs/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-config-dirs/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-config-dirs/.dirs/runtime 4043s ok 4 /utils-isolated/system-config-dirs 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-config-dir/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-config-dir/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/user-config-dir/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-config-dir/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/user-config-dir/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-config-dir/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-config-dir/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-config-dir/.dirs/runtime 4043s ok 5 /utils-isolated/user-config-dir 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-data-dirs/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-data-dirs/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/system-data-dirs/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-data-dirs/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/system-data-dirs/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-data-dirs/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-data-dirs/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/system-data-dirs/.dirs/runtime 4043s ok 6 /utils-isolated/system-data-dirs 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-data-dir/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-data-dir/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/user-data-dir/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-data-dir/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/user-data-dir/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-data-dir/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-data-dir/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-data-dir/.dirs/runtime 4043s ok 7 /utils-isolated/user-data-dir 4043s ok - glib/utils-isolated.test 4043s # Running test: glib/memory-monitor-psi.test 4043s ok - glib/memory-monitor-psi.test 4043s # Running test: glib/spawn-test.test 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-state-dir/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-state-dir/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/user-state-dir/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-state-dir/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/user-state-dir/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-state-dir/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-state-dir/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-state-dir/.dirs/runtime 4043s ok 8 /utils-isolated/user-state-dir 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-runtime-dir/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-runtime-dir/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/user-runtime-dir/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-runtime-dir/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/user-runtime-dir/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-runtime-dir/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-runtime-dir/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/user-runtime-dir/.dirs/runtime 4043s ok 9 /utils-isolated/user-runtime-dir 4043s # Start of cleanup tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/runtime 4043s Unable to clean up temporary directory /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 4043s Unable to clean up temporary directory /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 4043s Unable to clean up temporary directory /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/handles-errors: Directory not empty 4043s ok 10 /utils-isolated/cleanup/handles-errors 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 4043s Unable to clean up temporary directory /tmp/test_utils-isolated_8X43J3/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 4043s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 4043s # End of cleanup tests 4043s # End of utils-isolated tests 4043s TAP version 14 4043s # random seed: R02S326daa067dd2ca198ef09169de25f4f8 4043s 1..1 4043s # Start of memory-monitor-psi tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_memory-monitor-psi_0XW3J3/memory-monitor-psi/receive-signal/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_memory-monitor-psi_0XW3J3/memory-monitor-psi/receive-signal/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_memory-monitor-psi_0XW3J3/memory-monitor-psi/receive-signal/.dirs/system-config1:/tmp/test_memory-monitor-psi_0XW3J3/memory-monitor-psi/receive-signal/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_memory-monitor-psi_0XW3J3/memory-monitor-psi/receive-signal/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_memory-monitor-psi_0XW3J3/memory-monitor-psi/receive-signal/.dirs/system-data1:/tmp/test_memory-monitor-psi_0XW3J3/memory-monitor-psi/receive-signal/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_memory-monitor-psi_0XW3J3/memory-monitor-psi/receive-signal/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_memory-monitor-psi_0XW3J3/memory-monitor-psi/receive-signal/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_memory-monitor-psi_0XW3J3/memory-monitor-psi/receive-signal/.dirs/runtime 4043s # GLib-GIO-DEBUG: Write trigger some 70000 2000000 4043s # GLib-GIO-DEBUG: Write trigger some 100000 2000000 4043s # GLib-GIO-DEBUG: Write trigger full 100000 2000000 4043s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 4043s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 4043s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 4043s ok 1 /memory-monitor-psi/receive-signal 4043s # End of memory-monitor-psi tests 4043s TAP version 14 4043s # random seed: R02S5af3497d98422530a58c1539ef1e51cd 4043s 1..2 4043s # Start of spawn tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_12T3J3/spawn/basics/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_12T3J3/spawn/basics/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_12T3J3/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_12T3J3/spawn/basics/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_12T3J3/spawn/basics/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_12T3J3/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_12T3J3/spawn/basics/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_12T3J3/spawn/basics/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_12T3J3/spawn/basics/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_12T3J3/spawn/basics/.dirs/runtime 4043s ok 1 /spawn/basics 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_12T3J3/spawn/stdio-overwrite/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_12T3J3/spawn/stdio-overwrite/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_12T3J3/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_12T3J3/spawn/stdio-overwrite/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_12T3J3/spawn/stdio-overwrite/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_12T3J3/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_12T3J3/spawn/stdio-overwrite/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_12T3J3/spawn/stdio-overwrite/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_12T3J3/spawn/stdio-overwrite/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_12T3J3/spawn/stdio-overwrite/.dirs/runtime 4043s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 4043s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 4043s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 4043s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 4043s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 4043s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 4043s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 4043s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 4043s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 4043s # Fetching GSpawn result output with stdin open, stdout open, stderr open 4043s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 4043s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 4043s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 4043s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 4043s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 4043s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 4043s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 4043s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 4043s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 4043s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 4043s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 4043s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 4043s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 4043s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 4043s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 4043s # Fetching GSpawn result with stdin open, stdout open, stderr open 4043s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 4043s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 4043s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 4043s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 4043s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 4043s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 4043s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 4043s ok 2 /spawn/stdio-overwrite 4043s # End of spawn tests 4043s ok - glib/spawn-test.test 4043s # Running test: glib/fileattributematcher.test 4043s TAP version 14 4043s # random seed: R02S44c7bc0b04cf595124bbb1192a3de220 4043s 1..3 4043s # Start of fileattributematcher tests 4043s ok - glib/fileattributematcher.test 4043s ok 1 /fileattributematcher/exact 4043s ok 2 /fileattributematcher/equality 4043s ok 3 /fileattributematcher/subtract 4043s # End of fileattributematcher tests 4043s # Running test: glib/live-g-file.test 4043s TAP version 14 4043s # random seed: R02S8a8bda9083f923d579290c4d5a94cbbd 4043s 1..13 4043s # Start of live-g-file tests 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/prep_clean_structure/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/prep_clean_structure/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/prep_clean_structure/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/prep_clean_structure/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/prep_clean_structure/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/prep_clean_structure/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/prep_clean_structure/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/prep_clean_structure/.dirs/runtime 4043s # Cleaning target testing structure in '/tmp/test_live-g-file_BUP7J3/testdir_live-g-file'... 4043s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4043s ok 1 /live-g-file/prep_clean_structure 4043s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/create_structure/.dirs/home 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/create_structure/.dirs/cache 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/create_structure/.dirs/system-config2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/create_structure/.dirs/config 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/create_structure/.dirs/system-data2 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/create_structure/.dirs/data 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/create_structure/.dirs/state 4043s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/create_structure/.dirs/runtime 4043s # 4043s # Going to create testing structure in '/tmp/test_live-g-file_BUP7J3/testdir_live-g-file'... 4043s # Creating directory 'dir1'... 4043s # Creating directory 'dir1/subdir'... 4043s # Creating directory 'dir2'... 4043s # Creating directory 'dir-target'... 4043s # Creating directory 'dir_no-access'... 4043s # Creating directory 'dir_no-write'... 4043s # Creating file 'target-file'... 4043s # Creating file 'normal_file'... 4043s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 4043s # Creating file 'executable_file'... 4043s # Creating file 'private_file'... 4043s # Creating file 'normal_file2'... 4043s # Creating file 'readonly_file'... 4043s # Creating file 'UTF_příliš z'... 4043s # Creating directory 'dir_příliš z'... 4043s # Creating symlink 'lost_symlink' --> 'nowhere'... 4043s # Creating directory 'dir_hidden'... 4043s # Creating file 'dir_hidden/.a-hidden-file'... 4043s # Creating file 'dir_hidden/file-in-.hidden1'... 4043s # Creating file 'dir_hidden/file-in-.hidden2'... 4043s # Creating pattern file... 4044s # done. 4044s ok 2 /live-g-file/create_structure 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_initial_structure/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_initial_structure/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_initial_structure/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_initial_structure/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_initial_structure/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_initial_structure/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_initial_structure/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/test_initial_structure/.dirs/runtime 4044s # Testing sample structure in '/tmp/test_live-g-file_BUP7J3/testdir_live-g-file'... 4044s # Testing file 'dir1'... 4044s # Testing file 'dir1/subdir'... 4044s # Testing file 'dir2'... 4044s # Testing file 'dir-target'... 4044s # Testing file 'dir_no-access'... 4044s # Testing file 'dir_no-write'... 4044s # Testing file 'target-file'... 4044s # Testing file 'normal_file'... 4044s # Testing file 'normal_file-symlink'... 4044s # Testing file 'executable_file'... 4044s # Testing file 'private_file'... 4044s # Testing file 'normal_file2'... 4044s # Testing file 'readonly_file'... 4044s # Testing file 'UTF_příliš z'... 4044s # Testing file 'dir_příliš z'... 4044s # Testing file 'lost_symlink'... 4044s # Testing file 'dir_hidden'... 4044s # Testing file 'dir_hidden/.a-hidden-file'... 4044s # Testing file 'dir_hidden/file-in-.hidden1'... 4044s # Testing file 'dir_hidden/file-in-.hidden2'... 4044s # Testing pattern file... 4044s # read 65536 bytes, total = 65536 of 65536. 4044s ok 3 /live-g-file/test_initial_structure 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_traverse_structure/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_traverse_structure/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_traverse_structure/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_traverse_structure/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_traverse_structure/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_traverse_structure/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_traverse_structure/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/test_traverse_structure/.dirs/runtime 4044s # Traversing through the sample structure in '/tmp/test_live-g-file_BUP7J3/testdir_live-g-file'... 4044s # Found file dir1, relative to root: dir1 4044s # Found file subdir, relative to root: dir1/subdir 4044s # Found file dir2, relative to root: dir2 4044s # Found file dir-target, relative to root: dir-target 4044s # Found file dir_no-access, relative to root: dir_no-access 4044s # Found file dir_no-write, relative to root: dir_no-write 4044s # Found file target-file, relative to root: target-file 4044s # Found file normal_file, relative to root: normal_file 4044s # Found file normal_file-symlink, relative to root: normal_file-symlink 4044s # Found file executable_file, relative to root: executable_file 4044s # Found file private_file, relative to root: private_file 4044s # Found file normal_file2, relative to root: normal_file2 4044s # Found file readonly_file, relative to root: readonly_file 4044s # Found file UTF_příliš z, relative to root: UTF_příliš z 4044s # Found file dir_příliš z, relative to root: dir_příliš z 4044s # Found file lost_symlink, relative to root: lost_symlink 4044s # Found file dir_hidden, relative to root: dir_hidden 4044s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 4044s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 4044s # Found file .hidden, relative to root: dir_hidden/.hidden 4044s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 4044s # Found file pattern_file, relative to root: pattern_file 4044s ok 4 /live-g-file/test_traverse_structure 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_enumerate/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_enumerate/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_enumerate/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_enumerate/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_enumerate/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_enumerate/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_enumerate/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/test_enumerate/.dirs/runtime 4044s # Test enumerate '/tmp/test_live-g-file_BUP7J3/testdir_live-g-file'... 4044s # Testing file 'dir_no-access' 4044s # Testing file 'normal_file' 4044s # Testing file 'normal_file-symlink' 4044s # Testing file 'not_exists' 4044s # Testing file 'not_exists' 4044s # Testing file 'not_exists2' 4044s # Testing file 'not_exists3' 4044s # Testing file 'not_exists4' 4044s # Testing file 'dir_no-execute/file' 4044s ok 5 /live-g-file/test_enumerate 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_open/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_open/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_open/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_open/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_open/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_open/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_open/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/test_open/.dirs/runtime 4044s # test_open: 'dir1' 4044s # test_open: 'dir_no-access' 4044s # test_open: 'target-file' 4044s # test_open: 'normal_file-symlink' 4044s # test_open: 'executable_file' 4044s # test_open: 'private_file' 4044s # test_open: 'readonly_file' 4044s # test_open: 'UTF_příliš z' 4044s # test_open: 'pattern_file' 4044s # test_open: 'not_exists' 4044s # test_open: 'dir_no-execute/file' 4044s # test_open: 'lost_symlink' 4044s ok 6 /live-g-file/test_open 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_create/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_create/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_create/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_create/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_create/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_create/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_create/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/test_create/.dirs/runtime 4044s # test_create: 'dir1' 4044s # error code 3 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir1”: Is a directory 4044s # test_create: 'dir1/subdir' 4044s # error code 3 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir1/subdir”: Is a directory 4044s # test_create: 'dir2' 4044s # error code 2 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir2”: File exists 4044s # test_create: 'normal_file' 4044s # error code 2 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/normal_file”: File exists 4044s # test_create: 'executable_file' 4044s # test_create: 'private_file' 4044s # test_create: 'normal_file2' 4044s # test_create: 'UTF_příliš z' 4044s # error code 2 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/UTF_příliš z”: File exists 4044s # test_create: 'dir_příliš z' 4044s # error code 2 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_příliš z”: File exists 4044s # test_create: 'pattern_file' 4044s # test_create: 'not_exists2' 4044s # test_create: 'not_exists3' 4044s # test_create: 'not_exists4' 4044s ok 7 /live-g-file/test_create 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_copy_move/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_copy_move/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_copy_move/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_copy_move/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_copy_move/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_copy_move/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_copy_move/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/test_copy_move/.dirs/runtime 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir1/subdir' --> 'dir-target' 4044s # res = 0, error code 25 = Can’t recursively copy directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir1/subdir' --> '.' 4044s # res = 0, error code 2 = Target file exists 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir1/subdir' --> 'target-file' 4044s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file/dir1/subdir”: Not a directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir1/subdir' --> 'not_exists' 4044s # res = 0, error code 25 = Can’t recursively copy directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 4044s # res = 0, error code 25 = Can’t recursively copy directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 4044s # res = 0, error code 25 = Can’t recursively copy directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir2' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir-target' --> 'dir-target' 4044s # res = 0, error code 25 = Can’t recursively copy directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir-target' --> '.' 4044s # res = 0, error code 2 = Target file exists 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir-target' --> 'target-file' 4044s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file/dir-target”: Not a directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir-target' --> 'not_exists' 4044s # res = 0, error code 25 = Can’t recursively copy directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir-target' --> 'dir_no-access' 4044s # res = 0, error code 25 = Can’t recursively copy directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'dir-target' --> 'dir_no-write' 4044s # res = 0, error code 25 = Can’t recursively copy directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'target-file' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'target-file' --> '.' 4044s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file”: File exists 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'target-file' --> 'target-file' 4044s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file/target-file”: Not a directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'target-file' --> 'not_exists' 4044s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists/target-file”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'target-file' --> 'dir_no-access' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-access/target-file”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'target-file' --> 'dir_no-write' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-write/target-file”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file-symlink' --> '.' 4044s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/normal_file-symlink: File exists 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file-symlink' --> 'target-file' 4044s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 4044s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 4044s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 4044s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'executable_file' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'executable_file' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'executable_file' --> '.' 4044s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/executable_file”: File exists 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'executable_file' --> 'target-file' 4044s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file/executable_file”: Not a directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'executable_file' --> 'not_exists' 4044s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists/executable_file”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'executable_file' --> 'dir_no-access' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-access/executable_file”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'executable_file' --> 'dir_no-write' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-write/executable_file”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'private_file' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'private_file' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'private_file' --> '.' 4044s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/private_file”: File exists 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'private_file' --> 'target-file' 4044s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file/private_file”: Not a directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'private_file' --> 'not_exists' 4044s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists/private_file”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'private_file' --> 'dir_no-access' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-access/private_file”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'private_file' --> 'dir_no-write' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-write/private_file”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file2' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file2' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file2' --> '.' 4044s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/normal_file2”: File exists 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file2' --> 'target-file' 4044s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file/normal_file2”: Not a directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file2' --> 'not_exists' 4044s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists/normal_file2”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file2' --> 'dir_no-access' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-access/normal_file2”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'normal_file2' --> 'dir_no-write' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-write/normal_file2”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'UTF_příliš z' --> '.' 4044s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/UTF_příliš z”: File exists 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'UTF_příliš z' --> 'target-file' 4044s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file/UTF_příliš z”: Not a directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'UTF_příliš z' --> 'not_exists' 4044s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists/UTF_příliš z”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'UTF_příliš z' --> 'dir_no-access' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-access/UTF_příliš z”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'UTF_příliš z' --> 'dir_no-write' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-write/UTF_příliš z”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'pattern_file' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'pattern_file' --> '.' 4044s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/pattern_file”: File exists 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'pattern_file' --> 'target-file' 4044s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file/pattern_file”: Not a directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'pattern_file' --> 'not_exists' 4044s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists/pattern_file”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'pattern_file' --> 'dir_no-access' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-access/pattern_file”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'pattern_file' --> 'dir_no-write' 4044s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-write/pattern_file”: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'not_exists' --> 'dir-target' 4044s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'not_exists' --> '.' 4044s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'not_exists' --> 'target-file' 4044s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'not_exists' --> 'not_exists' 4044s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'not_exists' --> 'dir_no-access' 4044s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'not_exists' --> 'dir_no-write' 4044s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists”: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'not_exists' --> 'dir-target' 4044s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'lost_symlink' --> 'dir-target' 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'lost_symlink' --> '.' 4044s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/lost_symlink: File exists 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'lost_symlink' --> 'target-file' 4044s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/target-file/lost_symlink: Not a directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'lost_symlink' --> 'not_exists' 4044s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 4044s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 4044s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 4044s ok 8 /live-g-file/test_copy_move 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_delete/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_delete/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_delete/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_delete/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_delete/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_delete/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_delete/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/test_delete/.dirs/runtime 4044s # Deleting dir1, path = /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir1 4044s # result = 0, error = Error removing file /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir1: Directory not empty 4044s # Deleting dir2, path = /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir2 4044s # result = 0, error = Error removing file /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir2: No such file or directory 4044s # Deleting executable_file, path = /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/executable_file 4044s # result = 0, error = Error trashing file /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/executable_file: No such file or directory 4044s # Deleting readonly_file, path = /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/readonly_file 4044s # Deleting dir_příliš z, path = /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_příliš z 4044s # Deleting not_exists, path = /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists 4044s # result = 0, error = Error removing file /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists: No such file or directory 4044s # Deleting not_exists, path = /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists 4044s # result = 0, error = Error trashing file /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/not_exists: No such file or directory 4044s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-execute/file 4044s # result = 0, error = Error removing file /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/dir_no-execute/file: No such file or directory 4044s # Deleting lost_symlink, path = /tmp/test_live-g-file_BUP7J3/testdir_live-g-file/lost_symlink 4044s ok 9 /live-g-file/test_delete 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_make_directory_with_parents/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_make_directory_with_parents/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_make_directory_with_parents/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_make_directory_with_parents/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_make_directory_with_parents/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_make_directory_with_parents/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_make_directory_with_parents/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/test_make_directory_with_parents/.dirs/runtime 4044s # We do not have CAP_DAC_OVERRIDE or equivalent 4044s ok 10 /live-g-file/test_make_directory_with_parents 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/final_clean/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/final_clean/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/final_clean/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/final_clean/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/final_clean/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/final_clean/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/final_clean/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/final_clean/.dirs/runtime 4044s # Cleaning target testing structure in '/tmp/test_live-g-file_BUP7J3/testdir_live-g-file'... 4044s # deleting 'dir1' 4044s # deleting 'subdir' 4044s # deleting 'dir-target' 4044s # deleting 'dir2' 4044s # deleting 'target-file' 4044s # deleting 'normal_file-symlink' 4044s # deleting 'pattern_file' 4044s # deleting 'executable_file' 4044s # deleting 'private_file' 4044s # deleting 'normal_file2' 4044s # deleting 'UTF_příliš z' 4044s # deleting 'lost_symlink' 4044s # deleting 'dir_no-access' 4044s # deleting 'dir_no-write' 4044s # deleting 'target-file' 4044s # deleting 'normal_file' 4044s # deleting 'normal_file-symlink' 4044s # deleting 'executable_file~' 4044s # deleting 'private_file' 4044s # deleting 'normal_file2~' 4044s # deleting 'a' 4044s # deleting 'UTF_příliš z' 4044s # deleting 'dir_hidden' 4044s # deleting '.a-hidden-file' 4044s # deleting 'file-in-.hidden1' 4044s # deleting '.hidden' 4044s # deleting 'file-in-.hidden2' 4044s # deleting 'pattern_file' 4044s # deleting 'executable_file' 4044s # deleting 'normal_file2' 4044s # deleting 'not_exists2' 4044s # deleting 'not_exists3' 4044s # deleting 'not_exists4' 4044s ok 11 /live-g-file/final_clean 4044s # Start of test_unix_is_mountpoint tests 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 4044s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_BUP7J3/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 4044s ok 13 /live-g-file/test_unix_is_mountpoint/proc 4044s # End of test_unix_is_mountpoint tests 4044s # End of live-g-file tests 4044s TAP version 14 4044s # random seed: R02S2d56e0103c4328b3c7ba2ed1256bf393 4044s 1..14 4044s # Start of properties tests 4044s ok 1 /properties/install 4044s ok 2 /properties/install-many 4044s ok 3 /properties/notify 4044s ok 4 /properties/notify-queue 4044s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 4044s ok - glib/live-g-file.test 4044s # Running test: glib/properties.test 4044s ok 5 /properties/construct 4044s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 4044s # Test g_object_get_property with an initialized value 4044s # Test g_object_get_property with an uninitialized value 4044s # Test g_object_get_property with a transformable value 4044s ok 6 /properties/get-property 4044s ok 7 /properties/testv_with_no_properties 4044s ok 8 /properties/testv_with_valid_properties 4044s ok 9 /properties/testv_with_invalid_property_type 4044s ok 10 /properties/testv_with_invalid_property_names 4044s ok 11 /properties/testv_getv 4044s ok 12 /properties/testv_notify_queue 4044s # Start of notify tests 4044s ok 13 /properties/notify/too-many-freezes 4044s # End of notify tests 4044s # Start of set-property tests 4044s # Start of variant tests 4044s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 4044s ok 14 /properties/set-property/variant/floating 4044s # End of variant tests 4044s # End of set-property tests 4044s # End of properties tests 4044s ok - glib/properties.test 4044s # Running test: glib/assert-msg-test.py.test 4044s TAP version 13 4044s ok 1 __main__.TestAssertMessage.test_gassert 4044s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 4044s # tmpdir: /tmp/tmp_sqeak77 4044s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 4044s # Return code: -6 4044s # Output: 4044s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 4044s # Error: 4044s # ** 4044s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 4044s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 4044s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 4044s # tmpdir: /tmp/tmpadvf1ipf 4044s 1..2 4044s ok - glib/assert-msg-test.py.test 4044s # Running test: glib/macros-c-99.test 4044s TAP version 14 4044s # random seed: R02Sc7c6d64de044c7b1bdd1023158c8959f 4044s 1..4 4044s # Start of C tests 4044s ok 1 /C/standard-99 4044s # End of C tests 4044s # Start of alignof tests 4044s ok 2 /alignof/fallback 4044s # End of alignof tests 4044s # Start of assert tests 4044s ok 3 /assert/static 4044s # End of assert tests 4044s # Start of struct tests 4044s ok 4 /struct/sizeof_member 4044s # End of struct tests 4044s ok - glib/macros-c-99.test 4044s # Running test: glib/srvtarget.test 4044s TAP version 14 4044s # random seed: R02S6c45c161f798a773e434ad9d9eb4c292 4044s 1..1 4044s # Start of srvtarget tests 4044s ok 1 /srvtarget/srv-target-ordering 4044s # End of srvtarget tests 4044s ok - glib/srvtarget.test 4044s # Running test: glib/atomic.test 4044s TAP version 14 4044s # random seed: R02S5520fdf3859f51808e4a0c568e4b2bf5 4044s 1..2 4044s # Start of atomic tests 4044s ok 1 /atomic/types 4044s ok - glib/atomic.test 4044s # Running test: glib/dataset.test 4044s ok 2 /atomic/threaded 4044s # End of atomic tests 4044s TAP version 14 4044s # random seed: R02S7dac37c00c71aab521e427b40473f14c 4044s 1..15 4044s # Start of quark tests 4044s ok 1 /quark/basic 4044s ok 2 /quark/string 4044s # End of quark tests 4044s # Start of dataset tests 4044s ok 3 /dataset/basic 4044s ok 4 /dataset/id 4044s ok 5 /dataset/full 4044s ok 6 /dataset/foreach 4044s ok 7 /dataset/destroy 4044s # End of dataset tests 4044s # Start of datalist tests 4044s ok 8 /datalist/id 4044s ok 9 /datalist/recursive-clear 4044s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 4044s ok 10 /datalist/id-remove-multiple 4044s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 4044s ok 11 /datalist/id-remove-multiple-destroy-order 4044s ok 12 /datalist/update-atomic 4044s # Start of basic tests 4044s ok 13 /datalist/basic/few 4044s ok 14 /datalist/basic/many 4044s # End of basic tests 4044s # Start of id-remove-multiple tests 4044s ok 15 /datalist/id-remove-multiple/resize 4044s # End of id-remove-multiple tests 4044s # End of datalist tests 4044s ok - glib/dataset.test 4044s # Running test: glib/environment.test 4044s TAP version 14 4044s # random seed: R02S92dd01ffb22b6c605495db5de6558f46 4044s 1..7 4044s # Start of environ tests 4044s # /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. 4044s ok 1 /environ/listenv 4044s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 4044s ok 2 /environ/getenv 4044s ok 3 /environ/setenv 4044s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 4044s ok 4 /environ/array 4044s # /environ/null summary: Test getting and setting variables on a NULL envp array. 4044s ok 5 /environ/null 4044s # /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. 4044s ok 6 /environ/case 4044s # /environ/expansion summary: Test expansion of environment variable references. 4044s ok 7 /environ/expansion # SKIP Environment variable expansion is only supported on Windows 4044s # End of environ tests 4044s TAP version 14 4044s # random seed: R02S750a26d04cc1c2cca909e98ce9dcdb21 4044s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 4044s 1..2 4044s # Start of g-file-info-filesystem-readonly tests 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 4044s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_UKL9J3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 4044s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 4044s # End of g-file-info-filesystem-readonly tests 4044s TAP version 14 4044s # random seed: R02S82e58e06c25ece29e18fb4c51d93dce0 4044s 1..96 4044s # Start of bookmarks tests 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/load-from-data-dirs/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/load-from-data-dirs/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/load-from-data-dirs/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/load-from-data-dirs/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/load-from-data-dirs/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/load-from-data-dirs/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/load-from-data-dirs/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/load-from-data-dirs/.dirs/runtime 4044s ok 1 /bookmarks/load-from-data-dirs 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/to-file/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/to-file/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/to-file/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/to-file/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/to-file/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/to-file/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/to-file/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/to-file/.dirs/runtime 4044s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_GBI9J3/bookmarkfile-test-0MH9J3.xbel 4044s # Roundtrip from a valid bookmark file 4044s ok 2 /bookmarks/to-file 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/move-item/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/move-item/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/move-item/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/move-item/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/move-item/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/move-item/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/move-item/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/move-item/.dirs/runtime 4044s ok 3 /bookmarks/move-item 4044s ok - glib/environment.test 4044s # Running test: glib/g-file-info-filesystem-readonly.test 4044s ok - glib/g-file-info-filesystem-readonly.test 4044s # Running test: glib/bookmarkfile.test 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/corner-cases/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/corner-cases/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/corner-cases/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/corner-cases/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/corner-cases/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/corner-cases/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/corner-cases/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/corner-cases/.dirs/runtime 4044s ok 4 /bookmarks/corner-cases 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/misc/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/misc/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/misc/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/misc/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/misc/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/misc/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/misc/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/misc/.dirs/runtime 4044s ok 5 /bookmarks/misc 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/deprecated/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/deprecated/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/deprecated/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/deprecated/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/deprecated/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/deprecated/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/deprecated/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/deprecated/.dirs/runtime 4044s ok 6 /bookmarks/deprecated 4044s # Start of parse tests 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-33.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-33.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-33.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-33.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-33.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-33.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-33.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-33.xbel/.dirs/runtime 4044s ok 7 /bookmarks/parse/fail-33.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-35.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-35.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-35.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-35.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-35.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-35.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-35.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-35.xbel/.dirs/runtime 4044s ok 8 /bookmarks/parse/fail-35.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-11.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-11.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-11.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-11.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-11.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-11.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-11.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-11.xbel/.dirs/runtime 4044s ok 9 /bookmarks/parse/fail-11.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-20.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-20.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-20.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-20.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-20.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-20.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-20.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-20.xbel/.dirs/runtime 4044s ok 10 /bookmarks/parse/fail-20.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-38.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-38.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-38.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-38.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-38.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-38.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-38.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-38.xbel/.dirs/runtime 4044s ok 11 /bookmarks/parse/fail-38.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-07.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-07.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-07.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-07.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-07.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-07.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-07.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-07.xbel/.dirs/runtime 4044s ok 12 /bookmarks/parse/fail-07.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-15.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-15.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-15.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-15.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-15.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-15.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-15.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-15.xbel/.dirs/runtime 4044s ok 13 /bookmarks/parse/fail-15.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-02.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-02.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-02.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-02.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-02.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-02.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-02.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-02.xbel/.dirs/runtime 4044s ok 14 /bookmarks/parse/fail-02.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-10.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-10.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-10.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-10.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-10.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-10.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-10.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-10.xbel/.dirs/runtime 4044s ok 15 /bookmarks/parse/fail-10.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-22.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-22.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-22.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-22.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-22.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-22.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-22.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-22.xbel/.dirs/runtime 4044s ok 16 /bookmarks/parse/fail-22.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-29.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-29.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-29.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-29.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-29.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-29.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-29.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-29.xbel/.dirs/runtime 4044s ok 17 /bookmarks/parse/fail-29.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-31.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-31.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-31.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-31.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-31.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-31.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-31.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-31.xbel/.dirs/runtime 4044s ok 18 /bookmarks/parse/fail-31.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-40.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-40.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-40.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-40.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-40.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-40.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-40.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-40.xbel/.dirs/runtime 4044s ok 19 /bookmarks/parse/fail-40.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-14.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-14.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-14.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-14.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-14.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-14.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-14.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-14.xbel/.dirs/runtime 4044s ok 20 /bookmarks/parse/fail-14.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-30.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-30.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-30.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-30.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-30.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-30.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-30.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-30.xbel/.dirs/runtime 4044s ok 21 /bookmarks/parse/fail-30.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-36.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-36.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-36.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-36.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-36.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-36.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-36.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-36.xbel/.dirs/runtime 4044s ok 22 /bookmarks/parse/fail-36.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-21.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-21.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-21.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-21.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-21.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-21.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-21.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-21.xbel/.dirs/runtime 4044s ok 23 /bookmarks/parse/fail-21.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-25.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-25.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-25.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-25.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-25.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-25.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-25.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-25.xbel/.dirs/runtime 4044s ok 24 /bookmarks/parse/fail-25.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-24.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-24.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-24.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-24.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-24.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-24.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-24.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-24.xbel/.dirs/runtime 4044s ok 25 /bookmarks/parse/fail-24.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-13.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-13.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-13.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-13.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-13.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-13.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-13.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-13.xbel/.dirs/runtime 4044s ok 26 /bookmarks/parse/fail-13.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-37.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-37.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-37.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-37.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-37.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-37.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-37.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-37.xbel/.dirs/runtime 4044s ok 27 /bookmarks/parse/fail-37.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-01.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-01.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-01.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-01.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-01.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-01.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-01.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-01.xbel/.dirs/runtime 4044s ok 28 /bookmarks/parse/fail-01.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-19.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-19.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-19.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-19.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-19.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-19.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-19.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-19.xbel/.dirs/runtime 4044s ok 29 /bookmarks/parse/fail-19.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-09.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-09.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-09.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-09.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-09.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-09.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-09.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-09.xbel/.dirs/runtime 4044s ok 30 /bookmarks/parse/fail-09.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-03.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-03.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-03.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-03.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-03.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-03.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-03.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-03.xbel/.dirs/runtime 4044s ok 31 /bookmarks/parse/fail-03.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-39.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-39.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-39.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-39.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-39.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-39.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-39.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-39.xbel/.dirs/runtime 4044s ok 32 /bookmarks/parse/fail-39.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-34.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-34.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-34.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-34.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-34.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-34.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-34.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-34.xbel/.dirs/runtime 4044s ok 33 /bookmarks/parse/fail-34.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-17.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-17.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-17.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-17.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-17.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-17.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-17.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-17.xbel/.dirs/runtime 4044s ok 34 /bookmarks/parse/fail-17.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-12.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-12.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-12.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-12.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-12.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-12.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-12.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-12.xbel/.dirs/runtime 4044s ok 35 /bookmarks/parse/fail-12.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-42.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-42.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-42.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-42.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-42.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-42.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-42.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-42.xbel/.dirs/runtime 4044s ok 36 /bookmarks/parse/fail-42.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-41.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-41.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-41.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-41.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-41.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-41.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-41.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-41.xbel/.dirs/runtime 4044s ok 37 /bookmarks/parse/fail-41.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-03.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-03.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-03.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-03.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-03.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-03.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-03.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-03.xbel/.dirs/runtime 4044s ok 38 /bookmarks/parse/valid-03.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-26.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-26.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-26.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-26.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-26.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-26.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-26.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-26.xbel/.dirs/runtime 4044s ok 39 /bookmarks/parse/fail-26.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-05.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-05.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-05.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-05.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-05.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-05.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-05.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-05.xbel/.dirs/runtime 4044s ok 40 /bookmarks/parse/fail-05.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-01.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-01.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-01.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-01.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-01.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-01.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-01.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-01.xbel/.dirs/runtime 4044s ok 41 /bookmarks/parse/valid-01.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-18.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-18.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-18.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-18.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-18.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-18.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-18.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-18.xbel/.dirs/runtime 4044s ok 42 /bookmarks/parse/fail-18.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-04.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-04.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-04.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-04.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-04.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-04.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-04.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-04.xbel/.dirs/runtime 4044s ok 43 /bookmarks/parse/fail-04.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-28.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-28.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-28.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-28.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-28.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-28.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-28.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-28.xbel/.dirs/runtime 4044s ok 44 /bookmarks/parse/fail-28.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-08.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-08.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-08.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-08.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-08.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-08.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-08.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-08.xbel/.dirs/runtime 4044s ok 45 /bookmarks/parse/fail-08.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-27.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-27.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-27.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-27.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-27.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-27.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-27.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-27.xbel/.dirs/runtime 4044s ok 46 /bookmarks/parse/fail-27.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-23.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-23.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-23.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-23.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-23.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-23.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-23.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-23.xbel/.dirs/runtime 4044s ok 47 /bookmarks/parse/fail-23.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-02.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-02.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-02.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-02.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-02.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-02.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-02.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/valid-02.xbel/.dirs/runtime 4044s ok 48 /bookmarks/parse/valid-02.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-06.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-06.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-06.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-06.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-06.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-06.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-06.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-06.xbel/.dirs/runtime 4044s ok 49 /bookmarks/parse/fail-06.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-32.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-32.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-32.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-32.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-32.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-32.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-32.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-32.xbel/.dirs/runtime 4044s ok 50 /bookmarks/parse/fail-32.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-16.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-16.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-16.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-16.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-16.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-16.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-16.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/parse/fail-16.xbel/.dirs/runtime 4044s ok 51 /bookmarks/parse/fail-16.xbel 4044s # End of parse tests 4044s # Start of copy tests 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-33.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-33.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-33.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-33.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-33.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-33.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-33.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-33.xbel/.dirs/runtime 4044s ok 52 /bookmarks/copy/fail-33.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-35.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-35.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-35.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-35.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-35.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-35.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-35.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-35.xbel/.dirs/runtime 4044s ok 53 /bookmarks/copy/fail-35.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-11.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-11.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-11.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-11.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-11.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-11.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-11.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-11.xbel/.dirs/runtime 4044s ok 54 /bookmarks/copy/fail-11.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-20.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-20.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-20.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-20.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-20.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-20.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-20.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-20.xbel/.dirs/runtime 4044s ok 55 /bookmarks/copy/fail-20.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-38.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-38.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-38.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-38.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-38.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-38.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-38.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-38.xbel/.dirs/runtime 4044s ok 56 /bookmarks/copy/fail-38.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-07.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-07.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-07.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-07.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-07.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-07.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-07.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-07.xbel/.dirs/runtime 4044s ok 57 /bookmarks/copy/fail-07.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-15.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-15.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-15.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-15.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-15.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-15.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-15.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-15.xbel/.dirs/runtime 4044s ok 58 /bookmarks/copy/fail-15.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-02.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-02.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-02.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-02.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-02.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-02.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-02.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-02.xbel/.dirs/runtime 4044s ok 59 /bookmarks/copy/fail-02.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-10.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-10.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-10.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-10.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-10.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-10.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-10.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-10.xbel/.dirs/runtime 4044s ok 60 /bookmarks/copy/fail-10.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-22.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-22.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-22.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-22.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-22.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-22.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-22.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-22.xbel/.dirs/runtime 4044s ok 61 /bookmarks/copy/fail-22.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-29.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-29.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-29.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-29.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-29.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-29.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-29.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-29.xbel/.dirs/runtime 4044s ok 62 /bookmarks/copy/fail-29.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-31.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-31.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-31.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-31.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-31.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-31.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-31.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-31.xbel/.dirs/runtime 4044s ok 63 /bookmarks/copy/fail-31.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-40.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-40.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-40.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-40.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-40.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-40.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-40.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-40.xbel/.dirs/runtime 4044s ok 64 /bookmarks/copy/fail-40.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-14.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-14.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-14.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-14.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-14.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-14.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-14.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-14.xbel/.dirs/runtime 4044s ok 65 /bookmarks/copy/fail-14.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-30.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-30.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-30.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-30.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-30.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-30.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-30.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-30.xbel/.dirs/runtime 4044s ok 66 /bookmarks/copy/fail-30.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-36.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-36.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-36.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-36.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-36.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-36.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-36.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-36.xbel/.dirs/runtime 4044s ok 67 /bookmarks/copy/fail-36.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-21.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-21.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-21.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-21.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-21.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-21.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-21.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-21.xbel/.dirs/runtime 4044s ok 68 /bookmarks/copy/fail-21.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-25.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-25.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-25.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-25.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-25.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-25.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-25.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-25.xbel/.dirs/runtime 4044s ok 69 /bookmarks/copy/fail-25.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-24.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-24.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-24.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-24.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-24.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-24.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-24.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-24.xbel/.dirs/runtime 4044s ok 70 /bookmarks/copy/fail-24.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-13.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-13.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-13.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-13.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-13.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-13.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-13.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-13.xbel/.dirs/runtime 4044s ok 71 /bookmarks/copy/fail-13.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-37.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-37.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-37.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-37.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-37.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-37.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-37.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-37.xbel/.dirs/runtime 4044s ok 72 /bookmarks/copy/fail-37.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-01.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-01.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-01.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-01.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-01.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-01.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-01.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-01.xbel/.dirs/runtime 4044s ok 73 /bookmarks/copy/fail-01.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-19.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-19.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-19.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-19.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-19.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-19.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-19.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-19.xbel/.dirs/runtime 4044s ok 74 /bookmarks/copy/fail-19.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-09.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-09.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-09.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-09.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-09.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-09.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-09.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-09.xbel/.dirs/runtime 4044s ok 75 /bookmarks/copy/fail-09.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-03.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-03.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-03.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-03.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-03.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-03.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-03.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-03.xbel/.dirs/runtime 4044s ok 76 /bookmarks/copy/fail-03.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-39.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-39.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-39.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-39.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-39.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-39.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-39.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-39.xbel/.dirs/runtime 4044s ok 77 /bookmarks/copy/fail-39.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-34.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-34.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-34.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-34.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-34.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-34.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-34.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-34.xbel/.dirs/runtime 4044s ok 78 /bookmarks/copy/fail-34.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-17.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-17.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-17.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-17.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-17.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-17.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-17.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-17.xbel/.dirs/runtime 4044s ok 79 /bookmarks/copy/fail-17.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-12.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-12.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-12.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-12.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-12.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-12.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-12.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-12.xbel/.dirs/runtime 4044s ok 80 /bookmarks/copy/fail-12.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-42.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-42.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-42.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-42.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-42.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-42.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-42.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-42.xbel/.dirs/runtime 4044s ok 81 /bookmarks/copy/fail-42.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-41.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-41.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-41.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-41.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-41.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-41.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-41.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-41.xbel/.dirs/runtime 4044s ok 82 /bookmarks/copy/fail-41.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-03.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-03.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-03.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-03.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-03.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-03.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-03.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-03.xbel/.dirs/runtime 4044s ok 83 /bookmarks/copy/valid-03.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-26.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-26.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-26.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-26.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-26.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-26.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-26.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-26.xbel/.dirs/runtime 4044s ok 84 /bookmarks/copy/fail-26.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-05.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-05.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-05.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-05.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-05.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-05.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-05.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-05.xbel/.dirs/runtime 4044s ok 85 /bookmarks/copy/fail-05.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-01.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-01.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-01.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-01.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-01.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-01.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-01.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-01.xbel/.dirs/runtime 4044s ok 86 /bookmarks/copy/valid-01.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-18.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-18.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-18.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-18.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-18.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-18.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-18.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-18.xbel/.dirs/runtime 4044s ok 87 /bookmarks/copy/fail-18.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-04.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-04.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-04.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-04.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-04.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-04.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-04.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-04.xbel/.dirs/runtime 4044s ok 88 /bookmarks/copy/fail-04.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-28.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-28.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-28.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-28.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-28.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-28.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-28.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-28.xbel/.dirs/runtime 4044s ok 89 /bookmarks/copy/fail-28.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-08.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-08.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-08.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-08.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-08.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-08.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-08.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-08.xbel/.dirs/runtime 4044s ok 90 /bookmarks/copy/fail-08.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-27.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-27.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-27.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-27.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-27.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-27.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-27.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-27.xbel/.dirs/runtime 4044s ok 91 /bookmarks/copy/fail-27.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-23.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-23.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-23.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-23.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-23.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-23.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-23.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-23.xbel/.dirs/runtime 4044s ok 92 /bookmarks/copy/fail-23.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-02.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-02.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-02.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-02.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-02.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-02.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-02.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/valid-02.xbel/.dirs/runtime 4044s ok 93 /bookmarks/copy/valid-02.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-06.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-06.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-06.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-06.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-06.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-06.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-06.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-06.xbel/.dirs/runtime 4044s ok 94 /bookmarks/copy/fail-06.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-32.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-32.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-32.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-32.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-32.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-32.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-32.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-32.xbel/.dirs/runtime 4044s ok 95 /bookmarks/copy/fail-32.xbel 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-16.xbel/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-16.xbel/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-16.xbel/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-16.xbel/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-16.xbel/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-16.xbel/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-16.xbel/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_GBI9J3/bookmarks/copy/fail-16.xbel/.dirs/runtime 4044s ok - glib/bookmarkfile.test 4044s # Running test: glib/checksum.test 4044s ok 96 /bookmarks/copy/fail-16.xbel 4044s # End of copy tests 4044s # End of bookmarks tests 4044s TAP version 14 4044s # random seed: R02S28830e9b5c462aff3a107c15f9f8cf59 4044s 1..1851 4044s # Start of checksum tests 4044s ok 1 /checksum/unsupported 4044s # Start of MD5 tests 4044s ok 2 /checksum/MD5/0 4044s ok 3 /checksum/MD5/1 4044s ok 4 /checksum/MD5/2 4044s ok 5 /checksum/MD5/3 4044s ok 6 /checksum/MD5/4 4044s ok 7 /checksum/MD5/5 4044s ok 8 /checksum/MD5/6 4044s ok 9 /checksum/MD5/7 4044s ok 10 /checksum/MD5/8 4044s ok 11 /checksum/MD5/9 4044s ok 12 /checksum/MD5/10 4044s ok 13 /checksum/MD5/11 4044s ok 14 /checksum/MD5/12 4044s ok 15 /checksum/MD5/13 4044s ok 16 /checksum/MD5/14 4044s ok 17 /checksum/MD5/15 4044s ok 18 /checksum/MD5/16 4044s ok 19 /checksum/MD5/17 4044s ok 20 /checksum/MD5/18 4044s ok 21 /checksum/MD5/19 4044s ok 22 /checksum/MD5/20 4044s ok 23 /checksum/MD5/21 4044s ok 24 /checksum/MD5/22 4044s ok 25 /checksum/MD5/23 4044s ok 26 /checksum/MD5/24 4044s ok 27 /checksum/MD5/25 4044s ok 28 /checksum/MD5/26 4044s ok 29 /checksum/MD5/27 4044s ok 30 /checksum/MD5/28 4044s ok 31 /checksum/MD5/29 4044s ok 32 /checksum/MD5/30 4044s ok 33 /checksum/MD5/31 4044s ok 34 /checksum/MD5/32 4044s ok 35 /checksum/MD5/33 4044s ok 36 /checksum/MD5/34 4044s ok 37 /checksum/MD5/35 4044s ok 38 /checksum/MD5/36 4044s ok 39 /checksum/MD5/37 4044s ok 40 /checksum/MD5/38 4044s ok 41 /checksum/MD5/39 4044s ok 42 /checksum/MD5/40 4044s ok 43 /checksum/MD5/41 4044s ok 44 /checksum/MD5/42 4044s ok 45 /checksum/MD5/43 4044s ok 46 /checksum/MD5/44 4044s ok 47 /checksum/MD5/45 4044s ok 48 /checksum/MD5/46 4044s ok 49 /checksum/MD5/47 4044s ok 50 /checksum/MD5/48 4044s ok 51 /checksum/MD5/49 4044s ok 52 /checksum/MD5/50 4044s ok 53 /checksum/MD5/51 4044s ok 54 /checksum/MD5/52 4044s ok 55 /checksum/MD5/53 4044s ok 56 /checksum/MD5/54 4044s ok 57 /checksum/MD5/55 4044s ok 58 /checksum/MD5/56 4044s ok 59 /checksum/MD5/57 4044s ok 60 /checksum/MD5/58 4044s ok 61 /checksum/MD5/59 4044s ok 62 /checksum/MD5/60 4044s ok 63 /checksum/MD5/61 4044s ok 64 /checksum/MD5/62 4044s ok 65 /checksum/MD5/63 4044s ok 66 /checksum/MD5/64 4044s ok 67 /checksum/MD5/65 4044s ok 68 /checksum/MD5/66 4044s ok 69 /checksum/MD5/67 4044s ok 70 /checksum/MD5/68 4044s ok 71 /checksum/MD5/69 4044s ok 72 /checksum/MD5/70 4044s ok 73 /checksum/MD5/71 4044s ok 74 /checksum/MD5/72 4044s ok 75 /checksum/MD5/73 4044s ok 76 /checksum/MD5/74 4044s ok 77 /checksum/MD5/75 4044s ok 78 /checksum/MD5/76 4044s ok 79 /checksum/MD5/77 4044s ok 80 /checksum/MD5/78 4044s ok 81 /checksum/MD5/79 4044s ok 82 /checksum/MD5/80 4044s ok 83 /checksum/MD5/81 4044s ok 84 /checksum/MD5/82 4044s ok 85 /checksum/MD5/83 4044s ok 86 /checksum/MD5/84 4044s ok 87 /checksum/MD5/85 4044s ok 88 /checksum/MD5/86 4044s ok 89 /checksum/MD5/87 4044s ok 90 /checksum/MD5/88 4044s ok 91 /checksum/MD5/89 4044s ok 92 /checksum/MD5/90 4044s ok 93 /checksum/MD5/91 4044s ok 94 /checksum/MD5/92 4044s ok 95 /checksum/MD5/93 4044s ok 96 /checksum/MD5/94 4044s ok 97 /checksum/MD5/95 4044s ok 98 /checksum/MD5/96 4044s ok 99 /checksum/MD5/97 4044s ok 100 /checksum/MD5/98 4044s ok 101 /checksum/MD5/99 4044s ok 102 /checksum/MD5/100 4044s ok 103 /checksum/MD5/101 4044s ok 104 /checksum/MD5/102 4044s ok 105 /checksum/MD5/103 4044s ok 106 /checksum/MD5/104 4044s ok 107 /checksum/MD5/105 4044s ok 108 /checksum/MD5/106 4044s ok 109 /checksum/MD5/107 4044s ok 110 /checksum/MD5/108 4044s ok 111 /checksum/MD5/109 4044s ok 112 /checksum/MD5/110 4044s ok 113 /checksum/MD5/111 4044s ok 114 /checksum/MD5/112 4044s ok 115 /checksum/MD5/113 4044s ok 116 /checksum/MD5/114 4044s ok 117 /checksum/MD5/115 4044s ok 118 /checksum/MD5/116 4044s ok 119 /checksum/MD5/117 4044s ok 120 /checksum/MD5/118 4044s ok 121 /checksum/MD5/119 4044s ok 122 /checksum/MD5/120 4044s ok 123 /checksum/MD5/121 4044s ok 124 /checksum/MD5/122 4044s ok 125 /checksum/MD5/123 4044s ok 126 /checksum/MD5/124 4044s ok 127 /checksum/MD5/125 4044s ok 128 /checksum/MD5/126 4044s ok 129 /checksum/MD5/127 4044s ok 130 /checksum/MD5/128 4044s ok 131 /checksum/MD5/129 4044s ok 132 /checksum/MD5/130 4044s ok 133 /checksum/MD5/131 4044s ok 134 /checksum/MD5/132 4044s ok 135 /checksum/MD5/133 4044s ok 136 /checksum/MD5/134 4044s ok 137 /checksum/MD5/135 4044s ok 138 /checksum/MD5/136 4044s ok 139 /checksum/MD5/137 4044s ok 140 /checksum/MD5/138 4044s ok 141 /checksum/MD5/139 4044s ok 142 /checksum/MD5/140 4044s ok 143 /checksum/MD5/141 4044s ok 144 /checksum/MD5/142 4044s ok 145 /checksum/MD5/143 4044s ok 146 /checksum/MD5/144 4044s ok 147 /checksum/MD5/145 4044s ok 148 /checksum/MD5/146 4044s ok 149 /checksum/MD5/147 4044s ok 150 /checksum/MD5/148 4044s ok 151 /checksum/MD5/149 4044s ok 152 /checksum/MD5/150 4044s ok 153 /checksum/MD5/151 4044s ok 154 /checksum/MD5/152 4044s ok 155 /checksum/MD5/153 4044s ok 156 /checksum/MD5/154 4044s ok 157 /checksum/MD5/155 4044s ok 158 /checksum/MD5/156 4044s ok 159 /checksum/MD5/157 4044s ok 160 /checksum/MD5/158 4044s ok 161 /checksum/MD5/159 4044s ok 162 /checksum/MD5/160 4044s ok 163 /checksum/MD5/161 4044s ok 164 /checksum/MD5/162 4044s ok 165 /checksum/MD5/163 4044s ok 166 /checksum/MD5/164 4044s ok 167 /checksum/MD5/165 4044s ok 168 /checksum/MD5/166 4044s ok 169 /checksum/MD5/167 4044s ok 170 /checksum/MD5/168 4044s ok 171 /checksum/MD5/169 4044s ok 172 /checksum/MD5/170 4044s ok 173 /checksum/MD5/171 4044s ok 174 /checksum/MD5/172 4044s ok 175 /checksum/MD5/173 4044s ok 176 /checksum/MD5/174 4044s ok 177 /checksum/MD5/175 4044s ok 178 /checksum/MD5/176 4044s ok 179 /checksum/MD5/177 4044s ok 180 /checksum/MD5/178 4044s ok 181 /checksum/MD5/179 4044s ok 182 /checksum/MD5/180 4044s ok 183 /checksum/MD5/181 4044s ok 184 /checksum/MD5/182 4044s ok 185 /checksum/MD5/183 4044s ok 186 /checksum/MD5/string 4044s ok 187 /checksum/MD5/bytes 4044s # Start of reset tests 4044s ok 188 /checksum/MD5/reset/0 4044s ok 189 /checksum/MD5/reset/1 4044s ok 190 /checksum/MD5/reset/2 4044s ok 191 /checksum/MD5/reset/3 4044s ok 192 /checksum/MD5/reset/4 4044s ok 193 /checksum/MD5/reset/5 4044s ok 194 /checksum/MD5/reset/6 4044s ok 195 /checksum/MD5/reset/7 4044s ok 196 /checksum/MD5/reset/8 4044s ok 197 /checksum/MD5/reset/9 4044s ok 198 /checksum/MD5/reset/10 4044s ok 199 /checksum/MD5/reset/11 4044s ok 200 /checksum/MD5/reset/12 4044s ok 201 /checksum/MD5/reset/13 4044s ok 202 /checksum/MD5/reset/14 4044s ok 203 /checksum/MD5/reset/15 4044s ok 204 /checksum/MD5/reset/16 4044s ok 205 /checksum/MD5/reset/17 4044s ok 206 /checksum/MD5/reset/18 4044s ok 207 /checksum/MD5/reset/19 4044s ok 208 /checksum/MD5/reset/20 4044s ok 209 /checksum/MD5/reset/21 4044s ok 210 /checksum/MD5/reset/22 4044s ok 211 /checksum/MD5/reset/23 4044s ok 212 /checksum/MD5/reset/24 4044s ok 213 /checksum/MD5/reset/25 4044s ok 214 /checksum/MD5/reset/26 4044s ok 215 /checksum/MD5/reset/27 4044s ok 216 /checksum/MD5/reset/28 4044s ok 217 /checksum/MD5/reset/29 4044s ok 218 /checksum/MD5/reset/30 4044s ok 219 /checksum/MD5/reset/31 4044s ok 220 /checksum/MD5/reset/32 4044s ok 221 /checksum/MD5/reset/33 4044s ok 222 /checksum/MD5/reset/34 4044s ok 223 /checksum/MD5/reset/35 4044s ok 224 /checksum/MD5/reset/36 4044s ok 225 /checksum/MD5/reset/37 4044s ok 226 /checksum/MD5/reset/38 4044s ok 227 /checksum/MD5/reset/39 4044s ok 228 /checksum/MD5/reset/40 4044s ok 229 /checksum/MD5/reset/41 4044s ok 230 /checksum/MD5/reset/42 4044s ok 231 /checksum/MD5/reset/43 4044s ok 232 /checksum/MD5/reset/44 4044s ok 233 /checksum/MD5/reset/45 4044s ok 234 /checksum/MD5/reset/46 4044s ok 235 /checksum/MD5/reset/47 4044s ok 236 /checksum/MD5/reset/48 4044s ok 237 /checksum/MD5/reset/49 4044s ok 238 /checksum/MD5/reset/50 4044s ok 239 /checksum/MD5/reset/51 4044s ok 240 /checksum/MD5/reset/52 4044s ok 241 /checksum/MD5/reset/53 4044s ok 242 /checksum/MD5/reset/54 4044s ok 243 /checksum/MD5/reset/55 4044s ok 244 /checksum/MD5/reset/56 4044s ok 245 /checksum/MD5/reset/57 4044s ok 246 /checksum/MD5/reset/58 4044s ok 247 /checksum/MD5/reset/59 4044s ok 248 /checksum/MD5/reset/60 4044s ok 249 /checksum/MD5/reset/61 4044s ok 250 /checksum/MD5/reset/62 4044s ok 251 /checksum/MD5/reset/63 4044s ok 252 /checksum/MD5/reset/64 4044s ok 253 /checksum/MD5/reset/65 4044s ok 254 /checksum/MD5/reset/66 4044s ok 255 /checksum/MD5/reset/67 4044s ok 256 /checksum/MD5/reset/68 4044s ok 257 /checksum/MD5/reset/69 4044s ok 258 /checksum/MD5/reset/70 4044s ok 259 /checksum/MD5/reset/71 4044s ok 260 /checksum/MD5/reset/72 4044s ok 261 /checksum/MD5/reset/73 4044s ok 262 /checksum/MD5/reset/74 4044s ok 263 /checksum/MD5/reset/75 4044s ok 264 /checksum/MD5/reset/76 4044s ok 265 /checksum/MD5/reset/77 4044s ok 266 /checksum/MD5/reset/78 4044s ok 267 /checksum/MD5/reset/79 4044s ok 268 /checksum/MD5/reset/80 4044s ok 269 /checksum/MD5/reset/81 4044s ok 270 /checksum/MD5/reset/82 4044s ok 271 /checksum/MD5/reset/83 4044s ok 272 /checksum/MD5/reset/84 4044s ok 273 /checksum/MD5/reset/85 4044s ok 274 /checksum/MD5/reset/86 4044s ok 275 /checksum/MD5/reset/87 4044s ok 276 /checksum/MD5/reset/88 4044s ok 277 /checksum/MD5/reset/89 4044s ok 278 /checksum/MD5/reset/90 4044s ok 279 /checksum/MD5/reset/91 4044s ok 280 /checksum/MD5/reset/92 4044s ok 281 /checksum/MD5/reset/93 4044s ok 282 /checksum/MD5/reset/94 4044s ok 283 /checksum/MD5/reset/95 4044s ok 284 /checksum/MD5/reset/96 4044s ok 285 /checksum/MD5/reset/97 4044s ok 286 /checksum/MD5/reset/98 4044s ok 287 /checksum/MD5/reset/99 4044s ok 288 /checksum/MD5/reset/100 4044s ok 289 /checksum/MD5/reset/101 4044s ok 290 /checksum/MD5/reset/102 4044s ok 291 /checksum/MD5/reset/103 4044s ok 292 /checksum/MD5/reset/104 4044s ok 293 /checksum/MD5/reset/105 4044s ok 294 /checksum/MD5/reset/106 4044s ok 295 /checksum/MD5/reset/107 4044s ok 296 /checksum/MD5/reset/108 4044s ok 297 /checksum/MD5/reset/109 4044s ok 298 /checksum/MD5/reset/110 4044s ok 299 /checksum/MD5/reset/111 4044s ok 300 /checksum/MD5/reset/112 4044s ok 301 /checksum/MD5/reset/113 4044s ok 302 /checksum/MD5/reset/114 4044s ok 303 /checksum/MD5/reset/115 4044s ok 304 /checksum/MD5/reset/116 4044s ok 305 /checksum/MD5/reset/117 4044s ok 306 /checksum/MD5/reset/118 4044s ok 307 /checksum/MD5/reset/119 4044s ok 308 /checksum/MD5/reset/120 4044s ok 309 /checksum/MD5/reset/121 4044s ok 310 /checksum/MD5/reset/122 4044s ok 311 /checksum/MD5/reset/123 4044s ok 312 /checksum/MD5/reset/124 4044s ok 313 /checksum/MD5/reset/125 4044s ok 314 /checksum/MD5/reset/126 4044s ok 315 /checksum/MD5/reset/127 4044s ok 316 /checksum/MD5/reset/128 4044s ok 317 /checksum/MD5/reset/129 4044s ok 318 /checksum/MD5/reset/130 4044s ok 319 /checksum/MD5/reset/131 4044s ok 320 /checksum/MD5/reset/132 4044s ok 321 /checksum/MD5/reset/133 4044s ok 322 /checksum/MD5/reset/134 4044s ok 323 /checksum/MD5/reset/135 4044s ok 324 /checksum/MD5/reset/136 4044s ok 325 /checksum/MD5/reset/137 4044s ok 326 /checksum/MD5/reset/138 4044s ok 327 /checksum/MD5/reset/139 4044s ok 328 /checksum/MD5/reset/140 4044s ok 329 /checksum/MD5/reset/141 4044s ok 330 /checksum/MD5/reset/142 4044s ok 331 /checksum/MD5/reset/143 4044s ok 332 /checksum/MD5/reset/144 4044s ok 333 /checksum/MD5/reset/145 4044s ok 334 /checksum/MD5/reset/146 4044s ok 335 /checksum/MD5/reset/147 4044s ok 336 /checksum/MD5/reset/148 4044s ok 337 /checksum/MD5/reset/149 4044s ok 338 /checksum/MD5/reset/150 4044s ok 339 /checksum/MD5/reset/151 4044s ok 340 /checksum/MD5/reset/152 4044s ok 341 /checksum/MD5/reset/153 4044s ok 342 /checksum/MD5/reset/154 4044s ok 343 /checksum/MD5/reset/155 4044s ok 344 /checksum/MD5/reset/156 4044s ok 345 /checksum/MD5/reset/157 4044s ok 346 /checksum/MD5/reset/158 4044s ok 347 /checksum/MD5/reset/159 4044s ok 348 /checksum/MD5/reset/160 4044s ok 349 /checksum/MD5/reset/161 4044s ok 350 /checksum/MD5/reset/162 4044s ok 351 /checksum/MD5/reset/163 4044s ok 352 /checksum/MD5/reset/164 4044s ok 353 /checksum/MD5/reset/165 4044s ok 354 /checksum/MD5/reset/166 4044s ok 355 /checksum/MD5/reset/167 4044s ok 356 /checksum/MD5/reset/168 4044s ok 357 /checksum/MD5/reset/169 4044s ok 358 /checksum/MD5/reset/170 4044s ok 359 /checksum/MD5/reset/171 4044s ok 360 /checksum/MD5/reset/172 4044s ok 361 /checksum/MD5/reset/173 4044s ok 362 /checksum/MD5/reset/174 4044s ok 363 /checksum/MD5/reset/175 4044s ok 364 /checksum/MD5/reset/176 4044s ok 365 /checksum/MD5/reset/177 4044s ok 366 /checksum/MD5/reset/178 4044s ok 367 /checksum/MD5/reset/179 4044s ok 368 /checksum/MD5/reset/180 4044s ok 369 /checksum/MD5/reset/181 4044s ok 370 /checksum/MD5/reset/182 4044s ok 371 /checksum/MD5/reset/183 4044s # End of reset tests 4044s # End of MD5 tests 4044s # Start of SHA1 tests 4044s ok 372 /checksum/SHA1/0 4044s ok 373 /checksum/SHA1/1 4044s ok 374 /checksum/SHA1/2 4044s ok 375 /checksum/SHA1/3 4044s ok 376 /checksum/SHA1/4 4044s ok 377 /checksum/SHA1/5 4044s ok 378 /checksum/SHA1/6 4044s ok 379 /checksum/SHA1/7 4044s ok 380 /checksum/SHA1/8 4044s ok 381 /checksum/SHA1/9 4044s ok 382 /checksum/SHA1/10 4044s ok 383 /checksum/SHA1/11 4044s ok 384 /checksum/SHA1/12 4044s ok 385 /checksum/SHA1/13 4044s ok 386 /checksum/SHA1/14 4044s ok 387 /checksum/SHA1/15 4044s ok 388 /checksum/SHA1/16 4044s ok 389 /checksum/SHA1/17 4044s ok 390 /checksum/SHA1/18 4044s ok 391 /checksum/SHA1/19 4044s ok 392 /checksum/SHA1/20 4044s ok 393 /checksum/SHA1/21 4044s ok 394 /checksum/SHA1/22 4044s ok 395 /checksum/SHA1/23 4044s ok 396 /checksum/SHA1/24 4044s ok 397 /checksum/SHA1/25 4044s ok 398 /checksum/SHA1/26 4044s ok 399 /checksum/SHA1/27 4044s ok 400 /checksum/SHA1/28 4044s ok 401 /checksum/SHA1/29 4044s ok 402 /checksum/SHA1/30 4044s ok 403 /checksum/SHA1/31 4044s ok 404 /checksum/SHA1/32 4044s ok 405 /checksum/SHA1/33 4044s ok 406 /checksum/SHA1/34 4044s ok 407 /checksum/SHA1/35 4044s ok 408 /checksum/SHA1/36 4044s ok 409 /checksum/SHA1/37 4044s ok 410 /checksum/SHA1/38 4044s ok 411 /checksum/SHA1/39 4044s ok 412 /checksum/SHA1/40 4044s ok 413 /checksum/SHA1/41 4044s ok 414 /checksum/SHA1/42 4044s ok 415 /checksum/SHA1/43 4044s ok 416 /checksum/SHA1/44 4044s ok 417 /checksum/SHA1/45 4044s ok 418 /checksum/SHA1/46 4044s ok 419 /checksum/SHA1/47 4044s ok 420 /checksum/SHA1/48 4044s ok 421 /checksum/SHA1/49 4044s ok 422 /checksum/SHA1/50 4044s ok 423 /checksum/SHA1/51 4044s ok 424 /checksum/SHA1/52 4044s ok 425 /checksum/SHA1/53 4044s ok 426 /checksum/SHA1/54 4044s ok 427 /checksum/SHA1/55 4044s ok 428 /checksum/SHA1/56 4044s ok 429 /checksum/SHA1/57 4044s ok 430 /checksum/SHA1/58 4044s ok 431 /checksum/SHA1/59 4044s ok 432 /checksum/SHA1/60 4044s ok 433 /checksum/SHA1/61 4044s ok 434 /checksum/SHA1/62 4044s ok 435 /checksum/SHA1/63 4044s ok 436 /checksum/SHA1/64 4044s ok 437 /checksum/SHA1/65 4044s ok 438 /checksum/SHA1/66 4044s ok 439 /checksum/SHA1/67 4044s ok 440 /checksum/SHA1/68 4044s ok 441 /checksum/SHA1/69 4044s ok 442 /checksum/SHA1/70 4044s ok 443 /checksum/SHA1/71 4044s ok 444 /checksum/SHA1/72 4044s ok 445 /checksum/SHA1/73 4044s ok 446 /checksum/SHA1/74 4044s ok 447 /checksum/SHA1/75 4044s ok 448 /checksum/SHA1/76 4044s ok 449 /checksum/SHA1/77 4044s ok 450 /checksum/SHA1/78 4044s ok 451 /checksum/SHA1/79 4044s ok 452 /checksum/SHA1/80 4044s ok 453 /checksum/SHA1/81 4044s ok 454 /checksum/SHA1/82 4044s ok 455 /checksum/SHA1/83 4044s ok 456 /checksum/SHA1/84 4044s ok 457 /checksum/SHA1/85 4044s ok 458 /checksum/SHA1/86 4044s ok 459 /checksum/SHA1/87 4044s ok 460 /checksum/SHA1/88 4044s ok 461 /checksum/SHA1/89 4044s ok 462 /checksum/SHA1/90 4044s ok 463 /checksum/SHA1/91 4044s ok 464 /checksum/SHA1/92 4044s ok 465 /checksum/SHA1/93 4044s ok 466 /checksum/SHA1/94 4044s ok 467 /checksum/SHA1/95 4044s ok 468 /checksum/SHA1/96 4044s ok 469 /checksum/SHA1/97 4044s ok 470 /checksum/SHA1/98 4044s ok 471 /checksum/SHA1/99 4044s ok 472 /checksum/SHA1/100 4044s ok 473 /checksum/SHA1/101 4044s ok 474 /checksum/SHA1/102 4044s ok 475 /checksum/SHA1/103 4044s ok 476 /checksum/SHA1/104 4044s ok 477 /checksum/SHA1/105 4044s ok 478 /checksum/SHA1/106 4044s ok 479 /checksum/SHA1/107 4044s ok 480 /checksum/SHA1/108 4044s ok 481 /checksum/SHA1/109 4044s ok 482 /checksum/SHA1/110 4044s ok 483 /checksum/SHA1/111 4044s ok 484 /checksum/SHA1/112 4044s ok 485 /checksum/SHA1/113 4044s ok 486 /checksum/SHA1/114 4044s ok 487 /checksum/SHA1/115 4044s ok 488 /checksum/SHA1/116 4044s ok 489 /checksum/SHA1/117 4044s ok 490 /checksum/SHA1/118 4044s ok 491 /checksum/SHA1/119 4044s ok 492 /checksum/SHA1/120 4044s ok 493 /checksum/SHA1/121 4044s ok 494 /checksum/SHA1/122 4044s ok 495 /checksum/SHA1/123 4044s ok 496 /checksum/SHA1/124 4044s ok 497 /checksum/SHA1/125 4044s ok 498 /checksum/SHA1/126 4044s ok 499 /checksum/SHA1/127 4044s ok 500 /checksum/SHA1/128 4044s ok 501 /checksum/SHA1/129 4044s ok 502 /checksum/SHA1/130 4044s ok 503 /checksum/SHA1/131 4044s ok 504 /checksum/SHA1/132 4044s ok 505 /checksum/SHA1/133 4044s ok 506 /checksum/SHA1/134 4044s ok 507 /checksum/SHA1/135 4044s ok 508 /checksum/SHA1/136 4044s ok 509 /checksum/SHA1/137 4044s ok 510 /checksum/SHA1/138 4044s ok 511 /checksum/SHA1/139 4044s ok 512 /checksum/SHA1/140 4044s ok 513 /checksum/SHA1/141 4044s ok 514 /checksum/SHA1/142 4044s ok 515 /checksum/SHA1/143 4044s ok 516 /checksum/SHA1/144 4044s ok 517 /checksum/SHA1/145 4044s ok 518 /checksum/SHA1/146 4044s ok 519 /checksum/SHA1/147 4044s ok 520 /checksum/SHA1/148 4044s ok 521 /checksum/SHA1/149 4044s ok 522 /checksum/SHA1/150 4044s ok 523 /checksum/SHA1/151 4044s ok 524 /checksum/SHA1/152 4044s ok 525 /checksum/SHA1/153 4044s ok 526 /checksum/SHA1/154 4044s ok 527 /checksum/SHA1/155 4044s ok 528 /checksum/SHA1/156 4044s ok 529 /checksum/SHA1/157 4044s ok 530 /checksum/SHA1/158 4044s ok 531 /checksum/SHA1/159 4044s ok 532 /checksum/SHA1/160 4044s ok 533 /checksum/SHA1/161 4044s ok 534 /checksum/SHA1/162 4044s ok 535 /checksum/SHA1/163 4044s ok 536 /checksum/SHA1/164 4044s ok 537 /checksum/SHA1/165 4044s ok 538 /checksum/SHA1/166 4044s ok 539 /checksum/SHA1/167 4044s ok 540 /checksum/SHA1/168 4044s ok 541 /checksum/SHA1/169 4044s ok 542 /checksum/SHA1/170 4044s ok 543 /checksum/SHA1/171 4044s ok 544 /checksum/SHA1/172 4044s ok 545 /checksum/SHA1/173 4044s ok 546 /checksum/SHA1/174 4044s ok 547 /checksum/SHA1/175 4044s ok 548 /checksum/SHA1/176 4044s ok 549 /checksum/SHA1/177 4044s ok 550 /checksum/SHA1/178 4044s ok 551 /checksum/SHA1/179 4044s ok 552 /checksum/SHA1/180 4044s ok 553 /checksum/SHA1/181 4044s ok 554 /checksum/SHA1/182 4044s ok 555 /checksum/SHA1/183 4044s ok 556 /checksum/SHA1/string 4044s ok 557 /checksum/SHA1/bytes 4044s # Start of reset tests 4044s ok 558 /checksum/SHA1/reset/0 4044s ok 559 /checksum/SHA1/reset/1 4044s ok 560 /checksum/SHA1/reset/2 4044s ok 561 /checksum/SHA1/reset/3 4044s ok 562 /checksum/SHA1/reset/4 4044s ok 563 /checksum/SHA1/reset/5 4044s ok 564 /checksum/SHA1/reset/6 4044s ok 565 /checksum/SHA1/reset/7 4044s ok 566 /checksum/SHA1/reset/8 4044s ok 567 /checksum/SHA1/reset/9 4044s ok 568 /checksum/SHA1/reset/10 4044s ok 569 /checksum/SHA1/reset/11 4044s ok 570 /checksum/SHA1/reset/12 4044s ok 571 /checksum/SHA1/reset/13 4044s ok 572 /checksum/SHA1/reset/14 4044s ok 573 /checksum/SHA1/reset/15 4044s ok 574 /checksum/SHA1/reset/16 4044s ok 575 /checksum/SHA1/reset/17 4044s ok 576 /checksum/SHA1/reset/18 4044s ok 577 /checksum/SHA1/reset/19 4044s ok 578 /checksum/SHA1/reset/20 4044s ok 579 /checksum/SHA1/reset/21 4044s ok 580 /checksum/SHA1/reset/22 4044s ok 581 /checksum/SHA1/reset/23 4044s ok 582 /checksum/SHA1/reset/24 4044s ok 583 /checksum/SHA1/reset/25 4044s ok 584 /checksum/SHA1/reset/26 4044s ok 585 /checksum/SHA1/reset/27 4044s ok 586 /checksum/SHA1/reset/28 4044s ok 587 /checksum/SHA1/reset/29 4044s ok 588 /checksum/SHA1/reset/30 4044s ok 589 /checksum/SHA1/reset/31 4044s ok 590 /checksum/SHA1/reset/32 4044s ok 591 /checksum/SHA1/reset/33 4044s ok 592 /checksum/SHA1/reset/34 4044s ok 593 /checksum/SHA1/reset/35 4044s ok 594 /checksum/SHA1/reset/36 4044s ok 595 /checksum/SHA1/reset/37 4044s ok 596 /checksum/SHA1/reset/38 4044s ok 597 /checksum/SHA1/reset/39 4044s ok 598 /checksum/SHA1/reset/40 4044s ok 599 /checksum/SHA1/reset/41 4044s ok 600 /checksum/SHA1/reset/42 4044s ok 601 /checksum/SHA1/reset/43 4044s ok 602 /checksum/SHA1/reset/44 4044s ok 603 /checksum/SHA1/reset/45 4044s ok 604 /checksum/SHA1/reset/46 4044s ok 605 /checksum/SHA1/reset/47 4044s ok 606 /checksum/SHA1/reset/48 4044s ok 607 /checksum/SHA1/reset/49 4044s ok 608 /checksum/SHA1/reset/50 4044s ok 609 /checksum/SHA1/reset/51 4044s ok 610 /checksum/SHA1/reset/52 4044s ok 611 /checksum/SHA1/reset/53 4044s ok 612 /checksum/SHA1/reset/54 4044s ok 613 /checksum/SHA1/reset/55 4044s ok 614 /checksum/SHA1/reset/56 4044s ok 615 /checksum/SHA1/reset/57 4044s ok 616 /checksum/SHA1/reset/58 4044s ok 617 /checksum/SHA1/reset/59 4044s ok 618 /checksum/SHA1/reset/60 4044s ok 619 /checksum/SHA1/reset/61 4044s ok 620 /checksum/SHA1/reset/62 4044s ok 621 /checksum/SHA1/reset/63 4044s ok 622 /checksum/SHA1/reset/64 4044s ok 623 /checksum/SHA1/reset/65 4044s ok 624 /checksum/SHA1/reset/66 4044s ok 625 /checksum/SHA1/reset/67 4044s ok 626 /checksum/SHA1/reset/68 4044s ok 627 /checksum/SHA1/reset/69 4044s ok 628 /checksum/SHA1/reset/70 4044s ok 629 /checksum/SHA1/reset/71 4044s ok 630 /checksum/SHA1/reset/72 4044s ok 631 /checksum/SHA1/reset/73 4044s ok 632 /checksum/SHA1/reset/74 4044s ok 633 /checksum/SHA1/reset/75 4044s ok 634 /checksum/SHA1/reset/76 4044s ok 635 /checksum/SHA1/reset/77 4044s ok 636 /checksum/SHA1/reset/78 4044s ok 637 /checksum/SHA1/reset/79 4044s ok 638 /checksum/SHA1/reset/80 4044s ok 639 /checksum/SHA1/reset/81 4044s ok 640 /checksum/SHA1/reset/82 4044s ok 641 /checksum/SHA1/reset/83 4044s ok 642 /checksum/SHA1/reset/84 4044s ok 643 /checksum/SHA1/reset/85 4044s ok 644 /checksum/SHA1/reset/86 4044s ok 645 /checksum/SHA1/reset/87 4044s ok 646 /checksum/SHA1/reset/88 4044s ok 647 /checksum/SHA1/reset/89 4044s ok 648 /checksum/SHA1/reset/90 4044s ok 649 /checksum/SHA1/reset/91 4044s ok 650 /checksum/SHA1/reset/92 4044s ok 651 /checksum/SHA1/reset/93 4044s ok 652 /checksum/SHA1/reset/94 4044s ok 653 /checksum/SHA1/reset/95 4044s ok 654 /checksum/SHA1/reset/96 4044s ok 655 /checksum/SHA1/reset/97 4044s ok 656 /checksum/SHA1/reset/98 4044s ok 657 /checksum/SHA1/reset/99 4044s ok 658 /checksum/SHA1/reset/100 4044s ok 659 /checksum/SHA1/reset/101 4044s ok 660 /checksum/SHA1/reset/102 4044s ok 661 /checksum/SHA1/reset/103 4044s ok 662 /checksum/SHA1/reset/104 4044s ok 663 /checksum/SHA1/reset/105 4044s ok 664 /checksum/SHA1/reset/106 4044s ok 665 /checksum/SHA1/reset/107 4044s ok 666 /checksum/SHA1/reset/108 4044s ok 667 /checksum/SHA1/reset/109 4044s ok 668 /checksum/SHA1/reset/110 4044s ok 669 /checksum/SHA1/reset/111 4044s ok 670 /checksum/SHA1/reset/112 4044s ok 671 /checksum/SHA1/reset/113 4044s ok 672 /checksum/SHA1/reset/114 4044s ok 673 /checksum/SHA1/reset/115 4044s ok 674 /checksum/SHA1/reset/116 4044s ok 675 /checksum/SHA1/reset/117 4044s ok 676 /checksum/SHA1/reset/118 4044s ok 677 /checksum/SHA1/reset/119 4044s ok 678 /checksum/SHA1/reset/120 4044s ok 679 /checksum/SHA1/reset/121 4044s ok 680 /checksum/SHA1/reset/122 4044s ok 681 /checksum/SHA1/reset/123 4044s ok 682 /checksum/SHA1/reset/124 4044s ok 683 /checksum/SHA1/reset/125 4044s ok 684 /checksum/SHA1/reset/126 4044s ok 685 /checksum/SHA1/reset/127 4044s ok 686 /checksum/SHA1/reset/128 4044s ok 687 /checksum/SHA1/reset/129 4044s ok 688 /checksum/SHA1/reset/130 4044s ok 689 /checksum/SHA1/reset/131 4044s ok 690 /checksum/SHA1/reset/132 4044s ok 691 /checksum/SHA1/reset/133 4044s ok 692 /checksum/SHA1/reset/134 4044s ok 693 /checksum/SHA1/reset/135 4044s ok 694 /checksum/SHA1/reset/136 4044s ok 695 /checksum/SHA1/reset/137 4044s ok 696 /checksum/SHA1/reset/138 4044s ok 697 /checksum/SHA1/reset/139 4044s ok 698 /checksum/SHA1/reset/140 4044s ok 699 /checksum/SHA1/reset/141 4044s ok 700 /checksum/SHA1/reset/142 4044s ok 701 /checksum/SHA1/reset/143 4044s ok 702 /checksum/SHA1/reset/144 4044s ok 703 /checksum/SHA1/reset/145 4044s ok 704 /checksum/SHA1/reset/146 4044s ok 705 /checksum/SHA1/reset/147 4044s ok 706 /checksum/SHA1/reset/148 4044s ok 707 /checksum/SHA1/reset/149 4044s ok 708 /checksum/SHA1/reset/150 4044s ok 709 /checksum/SHA1/reset/151 4044s ok 710 /checksum/SHA1/reset/152 4044s ok 711 /checksum/SHA1/reset/153 4044s ok 712 /checksum/SHA1/reset/154 4044s ok 713 /checksum/SHA1/reset/155 4044s ok 714 /checksum/SHA1/reset/156 4044s ok 715 /checksum/SHA1/reset/157 4044s ok 716 /checksum/SHA1/reset/158 4044s ok 717 /checksum/SHA1/reset/159 4044s ok 718 /checksum/SHA1/reset/160 4044s ok 719 /checksum/SHA1/reset/161 4044s ok 720 /checksum/SHA1/reset/162 4044s ok 721 /checksum/SHA1/reset/163 4044s ok 722 /checksum/SHA1/reset/164 4044s ok 723 /checksum/SHA1/reset/165 4044s ok 724 /checksum/SHA1/reset/166 4044s ok 725 /checksum/SHA1/reset/167 4044s ok 726 /checksum/SHA1/reset/168 4044s ok 727 /checksum/SHA1/reset/169 4044s ok 728 /checksum/SHA1/reset/170 4044s ok 729 /checksum/SHA1/reset/171 4044s ok 730 /checksum/SHA1/reset/172 4044s ok 731 /checksum/SHA1/reset/173 4044s ok 732 /checksum/SHA1/reset/174 4044s ok 733 /checksum/SHA1/reset/175 4044s ok 734 /checksum/SHA1/reset/176 4044s ok 735 /checksum/SHA1/reset/177 4044s ok 736 /checksum/SHA1/reset/178 4044s ok 737 /checksum/SHA1/reset/179 4044s ok 738 /checksum/SHA1/reset/180 4044s ok 739 /checksum/SHA1/reset/181 4044s ok 740 /checksum/SHA1/reset/182 4044s ok 741 /checksum/SHA1/reset/183 4044s # End of reset tests 4044s # End of SHA1 tests 4044s # Start of SHA256 tests 4044s ok 742 /checksum/SHA256/0 4044s ok 743 /checksum/SHA256/1 4044s ok 744 /checksum/SHA256/2 4044s ok 745 /checksum/SHA256/3 4044s ok 746 /checksum/SHA256/4 4044s ok 747 /checksum/SHA256/5 4044s ok 748 /checksum/SHA256/6 4044s ok 749 /checksum/SHA256/7 4044s ok 750 /checksum/SHA256/8 4044s ok 751 /checksum/SHA256/9 4044s ok 752 /checksum/SHA256/10 4044s ok 753 /checksum/SHA256/11 4044s ok 754 /checksum/SHA256/12 4044s ok 755 /checksum/SHA256/13 4044s ok 756 /checksum/SHA256/14 4044s ok 757 /checksum/SHA256/15 4044s ok 758 /checksum/SHA256/16 4044s ok 759 /checksum/SHA256/17 4044s ok 760 /checksum/SHA256/18 4044s ok 761 /checksum/SHA256/19 4044s ok 762 /checksum/SHA256/20 4044s ok 763 /checksum/SHA256/21 4044s ok 764 /checksum/SHA256/22 4044s ok 765 /checksum/SHA256/23 4044s ok 766 /checksum/SHA256/24 4044s ok 767 /checksum/SHA256/25 4044s ok 768 /checksum/SHA256/26 4044s ok 769 /checksum/SHA256/27 4044s ok 770 /checksum/SHA256/28 4044s ok 771 /checksum/SHA256/29 4044s ok 772 /checksum/SHA256/30 4044s ok 773 /checksum/SHA256/31 4044s ok 774 /checksum/SHA256/32 4044s ok 775 /checksum/SHA256/33 4044s ok 776 /checksum/SHA256/34 4044s ok 777 /checksum/SHA256/35 4044s ok 778 /checksum/SHA256/36 4044s ok 779 /checksum/SHA256/37 4044s ok 780 /checksum/SHA256/38 4044s ok 781 /checksum/SHA256/39 4044s ok 782 /checksum/SHA256/40 4044s ok 783 /checksum/SHA256/41 4044s ok 784 /checksum/SHA256/42 4044s ok 785 /checksum/SHA256/43 4044s ok 786 /checksum/SHA256/44 4044s ok 787 /checksum/SHA256/45 4044s ok 788 /checksum/SHA256/46 4044s ok 789 /checksum/SHA256/47 4044s ok 790 /checksum/SHA256/48 4044s ok 791 /checksum/SHA256/49 4044s ok 792 /checksum/SHA256/50 4044s ok 793 /checksum/SHA256/51 4044s ok 794 /checksum/SHA256/52 4044s ok 795 /checksum/SHA256/53 4044s ok 796 /checksum/SHA256/54 4044s ok 797 /checksum/SHA256/55 4044s ok 798 /checksum/SHA256/56 4044s ok 799 /checksum/SHA256/57 4044s ok 800 /checksum/SHA256/58 4044s ok 801 /checksum/SHA256/59 4044s ok 802 /checksum/SHA256/60 4044s ok 803 /checksum/SHA256/61 4044s ok 804 /checksum/SHA256/62 4044s ok 805 /checksum/SHA256/63 4044s ok 806 /checksum/SHA256/64 4044s ok 807 /checksum/SHA256/65 4044s ok 808 /checksum/SHA256/66 4044s ok 809 /checksum/SHA256/67 4044s ok 810 /checksum/SHA256/68 4044s ok 811 /checksum/SHA256/69 4044s ok 812 /checksum/SHA256/70 4044s ok 813 /checksum/SHA256/71 4044s ok 814 /checksum/SHA256/72 4044s ok 815 /checksum/SHA256/73 4044s ok 816 /checksum/SHA256/74 4044s ok 817 /checksum/SHA256/75 4044s ok 818 /checksum/SHA256/76 4044s ok 819 /checksum/SHA256/77 4044s ok 820 /checksum/SHA256/78 4044s ok 821 /checksum/SHA256/79 4044s ok 822 /checksum/SHA256/80 4044s ok 823 /checksum/SHA256/81 4044s ok 824 /checksum/SHA256/82 4044s ok 825 /checksum/SHA256/83 4044s ok 826 /checksum/SHA256/84 4044s ok 827 /checksum/SHA256/85 4044s ok 828 /checksum/SHA256/86 4044s ok 829 /checksum/SHA256/87 4044s ok 830 /checksum/SHA256/88 4044s ok 831 /checksum/SHA256/89 4044s ok 832 /checksum/SHA256/90 4044s ok 833 /checksum/SHA256/91 4044s ok 834 /checksum/SHA256/92 4044s ok 835 /checksum/SHA256/93 4044s ok 836 /checksum/SHA256/94 4044s ok 837 /checksum/SHA256/95 4044s ok 838 /checksum/SHA256/96 4044s ok 839 /checksum/SHA256/97 4044s ok 840 /checksum/SHA256/98 4044s ok 841 /checksum/SHA256/99 4044s ok 842 /checksum/SHA256/100 4044s ok 843 /checksum/SHA256/101 4044s ok 844 /checksum/SHA256/102 4044s ok 845 /checksum/SHA256/103 4044s ok 846 /checksum/SHA256/104 4044s ok 847 /checksum/SHA256/105 4044s ok 848 /checksum/SHA256/106 4044s ok 849 /checksum/SHA256/107 4044s ok 850 /checksum/SHA256/108 4044s ok 851 /checksum/SHA256/109 4044s ok 852 /checksum/SHA256/110 4044s ok 853 /checksum/SHA256/111 4044s ok 854 /checksum/SHA256/112 4044s ok 855 /checksum/SHA256/113 4044s ok 856 /checksum/SHA256/114 4044s ok 857 /checksum/SHA256/115 4044s ok 858 /checksum/SHA256/116 4044s ok 859 /checksum/SHA256/117 4044s ok 860 /checksum/SHA256/118 4044s ok 861 /checksum/SHA256/119 4044s ok 862 /checksum/SHA256/120 4044s ok 863 /checksum/SHA256/121 4044s ok 864 /checksum/SHA256/122 4044s ok 865 /checksum/SHA256/123 4044s ok 866 /checksum/SHA256/124 4044s ok 867 /checksum/SHA256/125 4044s ok 868 /checksum/SHA256/126 4044s ok 869 /checksum/SHA256/127 4044s ok 870 /checksum/SHA256/128 4044s ok 871 /checksum/SHA256/129 4044s ok 872 /checksum/SHA256/130 4044s ok 873 /checksum/SHA256/131 4044s ok 874 /checksum/SHA256/132 4044s ok 875 /checksum/SHA256/133 4044s ok 876 /checksum/SHA256/134 4044s ok 877 /checksum/SHA256/135 4044s ok 878 /checksum/SHA256/136 4044s ok 879 /checksum/SHA256/137 4044s ok 880 /checksum/SHA256/138 4044s ok 881 /checksum/SHA256/139 4044s ok 882 /checksum/SHA256/140 4044s ok 883 /checksum/SHA256/141 4044s ok 884 /checksum/SHA256/142 4044s ok 885 /checksum/SHA256/143 4044s ok 886 /checksum/SHA256/144 4044s ok 887 /checksum/SHA256/145 4044s ok 888 /checksum/SHA256/146 4044s ok 889 /checksum/SHA256/147 4044s ok 890 /checksum/SHA256/148 4044s ok 891 /checksum/SHA256/149 4044s ok 892 /checksum/SHA256/150 4044s ok 893 /checksum/SHA256/151 4044s ok 894 /checksum/SHA256/152 4044s ok 895 /checksum/SHA256/153 4044s ok 896 /checksum/SHA256/154 4044s ok 897 /checksum/SHA256/155 4044s ok 898 /checksum/SHA256/156 4044s ok 899 /checksum/SHA256/157 4044s ok 900 /checksum/SHA256/158 4044s ok 901 /checksum/SHA256/159 4044s ok 902 /checksum/SHA256/160 4044s ok 903 /checksum/SHA256/161 4044s ok 904 /checksum/SHA256/162 4044s ok 905 /checksum/SHA256/163 4044s ok 906 /checksum/SHA256/164 4044s ok 907 /checksum/SHA256/165 4044s ok 908 /checksum/SHA256/166 4044s ok 909 /checksum/SHA256/167 4044s ok 910 /checksum/SHA256/168 4044s ok 911 /checksum/SHA256/169 4044s ok 912 /checksum/SHA256/170 4044s ok 913 /checksum/SHA256/171 4044s ok 914 /checksum/SHA256/172 4044s ok 915 /checksum/SHA256/173 4044s ok 916 /checksum/SHA256/174 4044s ok 917 /checksum/SHA256/175 4044s ok 918 /checksum/SHA256/176 4044s ok 919 /checksum/SHA256/177 4044s ok 920 /checksum/SHA256/178 4044s ok 921 /checksum/SHA256/179 4044s ok 922 /checksum/SHA256/180 4044s ok 923 /checksum/SHA256/181 4044s ok 924 /checksum/SHA256/182 4044s ok 925 /checksum/SHA256/183 4044s ok 926 /checksum/SHA256/string 4044s ok 927 /checksum/SHA256/bytes 4044s # Start of reset tests 4044s ok 928 /checksum/SHA256/reset/0 4044s ok 929 /checksum/SHA256/reset/1 4044s ok 930 /checksum/SHA256/reset/2 4044s ok 931 /checksum/SHA256/reset/3 4044s ok 932 /checksum/SHA256/reset/4 4044s ok 933 /checksum/SHA256/reset/5 4044s ok 934 /checksum/SHA256/reset/6 4044s ok 935 /checksum/SHA256/reset/7 4044s ok 936 /checksum/SHA256/reset/8 4044s ok 937 /checksum/SHA256/reset/9 4044s ok 938 /checksum/SHA256/reset/10 4044s ok 939 /checksum/SHA256/reset/11 4044s ok 940 /checksum/SHA256/reset/12 4044s ok 941 /checksum/SHA256/reset/13 4044s ok 942 /checksum/SHA256/reset/14 4044s ok 943 /checksum/SHA256/reset/15 4044s ok 944 /checksum/SHA256/reset/16 4044s ok 945 /checksum/SHA256/reset/17 4044s ok 946 /checksum/SHA256/reset/18 4044s ok 947 /checksum/SHA256/reset/19 4044s ok 948 /checksum/SHA256/reset/20 4044s ok 949 /checksum/SHA256/reset/21 4044s ok 950 /checksum/SHA256/reset/22 4044s ok 951 /checksum/SHA256/reset/23 4044s ok 952 /checksum/SHA256/reset/24 4044s ok 953 /checksum/SHA256/reset/25 4044s ok 954 /checksum/SHA256/reset/26 4044s ok 955 /checksum/SHA256/reset/27 4044s ok 956 /checksum/SHA256/reset/28 4044s ok 957 /checksum/SHA256/reset/29 4044s ok 958 /checksum/SHA256/reset/30 4044s ok 959 /checksum/SHA256/reset/31 4044s ok 960 /checksum/SHA256/reset/32 4044s ok 961 /checksum/SHA256/reset/33 4044s ok 962 /checksum/SHA256/reset/34 4044s ok 963 /checksum/SHA256/reset/35 4044s ok 964 /checksum/SHA256/reset/36 4044s ok 965 /checksum/SHA256/reset/37 4044s ok 966 /checksum/SHA256/reset/38 4044s ok 967 /checksum/SHA256/reset/39 4044s ok 968 /checksum/SHA256/reset/40 4044s ok 969 /checksum/SHA256/reset/41 4044s ok 970 /checksum/SHA256/reset/42 4044s ok 971 /checksum/SHA256/reset/43 4044s ok 972 /checksum/SHA256/reset/44 4044s ok 973 /checksum/SHA256/reset/45 4044s ok 974 /checksum/SHA256/reset/46 4044s ok 975 /checksum/SHA256/reset/47 4044s ok 976 /checksum/SHA256/reset/48 4044s ok 977 /checksum/SHA256/reset/49 4044s ok 978 /checksum/SHA256/reset/50 4044s ok 979 /checksum/SHA256/reset/51 4044s ok 980 /checksum/SHA256/reset/52 4044s ok 981 /checksum/SHA256/reset/53 4044s ok 982 /checksum/SHA256/reset/54 4044s ok 983 /checksum/SHA256/reset/55 4044s ok 984 /checksum/SHA256/reset/56 4044s ok 985 /checksum/SHA256/reset/57 4044s ok 986 /checksum/SHA256/reset/58 4044s ok 987 /checksum/SHA256/reset/59 4044s ok 988 /checksum/SHA256/reset/60 4044s ok 989 /checksum/SHA256/reset/61 4044s ok 990 /checksum/SHA256/reset/62 4044s ok 991 /checksum/SHA256/reset/63 4044s ok 992 /checksum/SHA256/reset/64 4044s ok 993 /checksum/SHA256/reset/65 4044s ok 994 /checksum/SHA256/reset/66 4044s ok 995 /checksum/SHA256/reset/67 4044s ok 996 /checksum/SHA256/reset/68 4044s ok 997 /checksum/SHA256/reset/69 4044s ok 998 /checksum/SHA256/reset/70 4044s ok 999 /checksum/SHA256/reset/71 4044s ok 1000 /checksum/SHA256/reset/72 4044s ok 1001 /checksum/SHA256/reset/73 4044s ok 1002 /checksum/SHA256/reset/74 4044s ok 1003 /checksum/SHA256/reset/75 4044s ok 1004 /checksum/SHA256/reset/76 4044s ok 1005 /checksum/SHA256/reset/77 4044s ok 1006 /checksum/SHA256/reset/78 4044s ok 1007 /checksum/SHA256/reset/79 4044s ok 1008 /checksum/SHA256/reset/80 4044s ok 1009 /checksum/SHA256/reset/81 4044s ok 1010 /checksum/SHA256/reset/82 4044s ok 1011 /checksum/SHA256/reset/83 4044s ok 1012 /checksum/SHA256/reset/84 4044s ok 1013 /checksum/SHA256/reset/85 4044s ok 1014 /checksum/SHA256/reset/86 4044s ok 1015 /checksum/SHA256/reset/87 4044s ok 1016 /checksum/SHA256/reset/88 4044s ok 1017 /checksum/SHA256/reset/89 4044s ok 1018 /checksum/SHA256/reset/90 4044s ok 1019 /checksum/SHA256/reset/91 4044s ok 1020 /checksum/SHA256/reset/92 4044s ok 1021 /checksum/SHA256/reset/93 4044s ok 1022 /checksum/SHA256/reset/94 4044s ok 1023 /checksum/SHA256/reset/95 4044s ok 1024 /checksum/SHA256/reset/96 4044s ok 1025 /checksum/SHA256/reset/97 4044s ok 1026 /checksum/SHA256/reset/98 4044s ok 1027 /checksum/SHA256/reset/99 4044s ok 1028 /checksum/SHA256/reset/100 4044s ok 1029 /checksum/SHA256/reset/101 4044s ok 1030 /checksum/SHA256/reset/102 4044s ok 1031 /checksum/SHA256/reset/103 4044s ok 1032 /checksum/SHA256/reset/104 4044s ok 1033 /checksum/SHA256/reset/105 4044s ok 1034 /checksum/SHA256/reset/106 4044s ok 1035 /checksum/SHA256/reset/107 4044s ok 1036 /checksum/SHA256/reset/108 4044s ok 1037 /checksum/SHA256/reset/109 4044s ok 1038 /checksum/SHA256/reset/110 4044s ok 1039 /checksum/SHA256/reset/111 4044s ok 1040 /checksum/SHA256/reset/112 4044s ok 1041 /checksum/SHA256/reset/113 4044s ok 1042 /checksum/SHA256/reset/114 4044s ok 1043 /checksum/SHA256/reset/115 4044s ok 1044 /checksum/SHA256/reset/116 4044s ok 1045 /checksum/SHA256/reset/117 4044s # Executing: glib/checksum.test 4044s ok 1046 /checksum/SHA256/reset/118 4044s ok 1047 /checksum/SHA256/reset/119 4044s ok 1048 /checksum/SHA256/reset/120 4044s ok 1049 /checksum/SHA256/reset/121 4044s ok 1050 /checksum/SHA256/reset/122 4044s ok 1051 /checksum/SHA256/reset/123 4044s ok 1052 /checksum/SHA256/reset/124 4044s ok 1053 /checksum/SHA256/reset/125 4044s ok 1054 /checksum/SHA256/reset/126 4044s ok 1055 /checksum/SHA256/reset/127 4044s ok 1056 /checksum/SHA256/reset/128 4044s ok 1057 /checksum/SHA256/reset/129 4044s ok 1058 /checksum/SHA256/reset/130 4044s ok 1059 /checksum/SHA256/reset/131 4044s ok 1060 /checksum/SHA256/reset/132 4044s ok 1061 /checksum/SHA256/reset/133 4044s ok 1062 /checksum/SHA256/reset/134 4044s ok 1063 /checksum/SHA256/reset/135 4044s ok 1064 /checksum/SHA256/reset/136 4044s ok 1065 /checksum/SHA256/reset/137 4044s ok 1066 /checksum/SHA256/reset/138 4044s ok 1067 /checksum/SHA256/reset/139 4044s ok 1068 /checksum/SHA256/reset/140 4044s ok 1069 /checksum/SHA256/reset/141 4044s ok 1070 /checksum/SHA256/reset/142 4044s ok 1071 /checksum/SHA256/reset/143 4044s ok 1072 /checksum/SHA256/reset/144 4044s ok 1073 /checksum/SHA256/reset/145 4044s ok 1074 /checksum/SHA256/reset/146 4044s ok 1075 /checksum/SHA256/reset/147 4044s ok 1076 /checksum/SHA256/reset/148 4044s ok 1077 /checksum/SHA256/reset/149 4044s ok 1078 /checksum/SHA256/reset/150 4044s ok 1079 /checksum/SHA256/reset/151 4044s ok 1080 /checksum/SHA256/reset/152 4044s ok 1081 /checksum/SHA256/reset/153 4044s ok 1082 /checksum/SHA256/reset/154 4044s ok 1083 /checksum/SHA256/reset/155 4044s ok 1084 /checksum/SHA256/reset/156 4044s ok 1085 /checksum/SHA256/reset/157 4044s ok 1086 /checksum/SHA256/reset/158 4044s ok 1087 /checksum/SHA256/reset/159 4044s ok 1088 /checksum/SHA256/reset/160 4044s ok 1089 /checksum/SHA256/reset/161 4044s ok 1090 /checksum/SHA256/reset/162 4044s ok 1091 /checksum/SHA256/reset/163 4044s ok 1092 /checksum/SHA256/reset/164 4044s ok 1093 /checksum/SHA256/reset/165 4044s ok 1094 /checksum/SHA256/reset/166 4044s ok 1095 /checksum/SHA256/reset/167 4044s ok 1096 /checksum/SHA256/reset/168 4044s ok 1097 /checksum/SHA256/reset/169 4044s ok 1098 /checksum/SHA256/reset/170 4044s ok 1099 /checksum/SHA256/reset/171 4044s ok 1100 /checksum/SHA256/reset/172 4044s ok 1101 /checksum/SHA256/reset/173 4044s ok 1102 /checksum/SHA256/reset/174 4044s ok 1103 /checksum/SHA256/reset/175 4044s ok 1104 /checksum/SHA256/reset/176 4044s ok 1105 /checksum/SHA256/reset/177 4044s ok 1106 /checksum/SHA256/reset/178 4044s ok 1107 /checksum/SHA256/reset/179 4044s ok 1108 /checksum/SHA256/reset/180 4044s ok 1109 /checksum/SHA256/reset/181 4044s ok 1110 /checksum/SHA256/reset/182 4044s ok 1111 /checksum/SHA256/reset/183 4044s # End of reset tests 4044s # End of SHA256 tests 4044s # Start of SHA384 tests 4044s ok 1112 /checksum/SHA384/0 4044s ok 1113 /checksum/SHA384/1 4044s ok 1114 /checksum/SHA384/2 4044s ok 1115 /checksum/SHA384/3 4044s ok 1116 /checksum/SHA384/4 4044s ok 1117 /checksum/SHA384/5 4044s ok 1118 /checksum/SHA384/6 4044s ok 1119 /checksum/SHA384/7 4044s ok 1120 /checksum/SHA384/8 4044s ok 1121 /checksum/SHA384/9 4044s ok 1122 /checksum/SHA384/10 4044s ok 1123 /checksum/SHA384/11 4044s ok 1124 /checksum/SHA384/12 4044s ok 1125 /checksum/SHA384/13 4044s ok 1126 /checksum/SHA384/14 4044s ok 1127 /checksum/SHA384/15 4044s ok 1128 /checksum/SHA384/16 4044s ok 1129 /checksum/SHA384/17 4044s ok 1130 /checksum/SHA384/18 4044s ok 1131 /checksum/SHA384/19 4044s ok 1132 /checksum/SHA384/20 4044s ok 1133 /checksum/SHA384/21 4044s ok 1134 /checksum/SHA384/22 4044s ok 1135 /checksum/SHA384/23 4044s ok 1136 /checksum/SHA384/24 4044s ok 1137 /checksum/SHA384/25 4044s ok 1138 /checksum/SHA384/26 4044s ok 1139 /checksum/SHA384/27 4044s ok 1140 /checksum/SHA384/28 4044s ok 1141 /checksum/SHA384/29 4044s ok 1142 /checksum/SHA384/30 4044s ok 1143 /checksum/SHA384/31 4044s ok 1144 /checksum/SHA384/32 4044s ok 1145 /checksum/SHA384/33 4044s ok 1146 /checksum/SHA384/34 4044s ok 1147 /checksum/SHA384/35 4044s ok 1148 /checksum/SHA384/36 4044s ok 1149 /checksum/SHA384/37 4044s ok 1150 /checksum/SHA384/38 4044s ok 1151 /checksum/SHA384/39 4044s ok 1152 /checksum/SHA384/40 4044s ok 1153 /checksum/SHA384/41 4044s ok 1154 /checksum/SHA384/42 4044s ok 1155 /checksum/SHA384/43 4044s ok 1156 /checksum/SHA384/44 4044s ok 1157 /checksum/SHA384/45 4044s ok 1158 /checksum/SHA384/46 4044s ok 1159 /checksum/SHA384/47 4044s ok 1160 /checksum/SHA384/48 4044s ok 1161 /checksum/SHA384/49 4044s ok 1162 /checksum/SHA384/50 4044s ok 1163 /checksum/SHA384/51 4044s ok 1164 /checksum/SHA384/52 4044s ok 1165 /checksum/SHA384/53 4044s ok 1166 /checksum/SHA384/54 4044s ok 1167 /checksum/SHA384/55 4044s ok 1168 /checksum/SHA384/56 4044s ok 1169 /checksum/SHA384/57 4044s ok 1170 /checksum/SHA384/58 4044s ok 1171 /checksum/SHA384/59 4044s ok 1172 /checksum/SHA384/60 4044s ok 1173 /checksum/SHA384/61 4044s ok 1174 /checksum/SHA384/62 4044s ok 1175 /checksum/SHA384/63 4044s ok 1176 /checksum/SHA384/64 4044s ok 1177 /checksum/SHA384/65 4044s ok 1178 /checksum/SHA384/66 4044s ok 1179 /checksum/SHA384/67 4044s ok 1180 /checksum/SHA384/68 4044s ok 1181 /checksum/SHA384/69 4044s ok 1182 /checksum/SHA384/70 4044s ok 1183 /checksum/SHA384/71 4044s ok 1184 /checksum/SHA384/72 4044s ok 1185 /checksum/SHA384/73 4044s ok 1186 /checksum/SHA384/74 4044s ok 1187 /checksum/SHA384/75 4044s ok 1188 /checksum/SHA384/76 4044s ok 1189 /checksum/SHA384/77 4044s ok 1190 /checksum/SHA384/78 4044s ok 1191 /checksum/SHA384/79 4044s ok 1192 /checksum/SHA384/80 4044s ok 1193 /checksum/SHA384/81 4044s ok 1194 /checksum/SHA384/82 4044s ok 1195 /checksum/SHA384/83 4044s ok 1196 /checksum/SHA384/84 4044s ok 1197 /checksum/SHA384/85 4044s ok 1198 /checksum/SHA384/86 4044s ok 1199 /checksum/SHA384/87 4044s ok 1200 /checksum/SHA384/88 4044s ok 1201 /checksum/SHA384/89 4044s ok 1202 /checksum/SHA384/90 4044s ok 1203 /checksum/SHA384/91 4044s ok 1204 /checksum/SHA384/92 4044s ok 1205 /checksum/SHA384/93 4044s ok 1206 /checksum/SHA384/94 4044s ok 1207 /checksum/SHA384/95 4044s ok 1208 /checksum/SHA384/96 4044s ok 1209 /checksum/SHA384/97 4044s ok 1210 /checksum/SHA384/98 4044s ok 1211 /checksum/SHA384/99 4044s ok 1212 /checksum/SHA384/100 4044s ok 1213 /checksum/SHA384/101 4044s ok 1214 /checksum/SHA384/102 4044s ok 1215 /checksum/SHA384/103 4044s ok 1216 /checksum/SHA384/104 4044s ok 1217 /checksum/SHA384/105 4044s ok 1218 /checksum/SHA384/106 4044s ok 1219 /checksum/SHA384/107 4044s ok 1220 /checksum/SHA384/108 4044s ok 1221 /checksum/SHA384/109 4044s ok 1222 /checksum/SHA384/110 4044s ok 1223 /checksum/SHA384/111 4044s ok 1224 /checksum/SHA384/112 4044s ok 1225 /checksum/SHA384/113 4044s ok 1226 /checksum/SHA384/114 4044s ok 1227 /checksum/SHA384/115 4044s ok 1228 /checksum/SHA384/116 4044s ok 1229 /checksum/SHA384/117 4044s ok 1230 /checksum/SHA384/118 4044s ok 1231 /checksum/SHA384/119 4044s ok 1232 /checksum/SHA384/120 4044s ok 1233 /checksum/SHA384/121 4044s ok 1234 /checksum/SHA384/122 4044s ok 1235 /checksum/SHA384/123 4044s ok 1236 /checksum/SHA384/124 4044s ok 1237 /checksum/SHA384/125 4044s ok 1238 /checksum/SHA384/126 4044s ok 1239 /checksum/SHA384/127 4044s ok 1240 /checksum/SHA384/128 4044s ok 1241 /checksum/SHA384/129 4044s ok 1242 /checksum/SHA384/130 4044s ok 1243 /checksum/SHA384/131 4044s ok 1244 /checksum/SHA384/132 4044s ok 1245 /checksum/SHA384/133 4044s ok 1246 /checksum/SHA384/134 4044s ok 1247 /checksum/SHA384/135 4044s ok 1248 /checksum/SHA384/136 4044s ok 1249 /checksum/SHA384/137 4044s ok 1250 /checksum/SHA384/138 4044s ok 1251 /checksum/SHA384/139 4044s ok 1252 /checksum/SHA384/140 4044s ok 1253 /checksum/SHA384/141 4044s ok 1254 /checksum/SHA384/142 4044s ok 1255 /checksum/SHA384/143 4044s ok 1256 /checksum/SHA384/144 4044s ok 1257 /checksum/SHA384/145 4044s ok 1258 /checksum/SHA384/146 4044s ok 1259 /checksum/SHA384/147 4044s ok 1260 /checksum/SHA384/148 4044s ok 1261 /checksum/SHA384/149 4044s ok 1262 /checksum/SHA384/150 4044s ok 1263 /checksum/SHA384/151 4044s ok 1264 /checksum/SHA384/152 4044s ok 1265 /checksum/SHA384/153 4044s ok 1266 /checksum/SHA384/154 4044s ok 1267 /checksum/SHA384/155 4044s ok 1268 /checksum/SHA384/156 4044s ok 1269 /checksum/SHA384/157 4044s ok 1270 /checksum/SHA384/158 4044s ok 1271 /checksum/SHA384/159 4044s ok 1272 /checksum/SHA384/160 4044s ok 1273 /checksum/SHA384/161 4044s ok 1274 /checksum/SHA384/162 4044s ok 1275 /checksum/SHA384/163 4044s ok 1276 /checksum/SHA384/164 4044s ok 1277 /checksum/SHA384/165 4044s ok 1278 /checksum/SHA384/166 4044s ok 1279 /checksum/SHA384/167 4044s ok 1280 /checksum/SHA384/168 4044s ok 1281 /checksum/SHA384/169 4044s ok 1282 /checksum/SHA384/170 4044s ok 1283 /checksum/SHA384/171 4044s ok 1284 /checksum/SHA384/172 4044s ok 1285 /checksum/SHA384/173 4044s ok 1286 /checksum/SHA384/174 4044s ok 1287 /checksum/SHA384/175 4044s ok 1288 /checksum/SHA384/176 4044s ok 1289 /checksum/SHA384/177 4044s ok 1290 /checksum/SHA384/178 4044s ok 1291 /checksum/SHA384/179 4044s ok 1292 /checksum/SHA384/180 4044s ok 1293 /checksum/SHA384/181 4044s ok 1294 /checksum/SHA384/182 4044s ok 1295 /checksum/SHA384/183 4044s ok 1296 /checksum/SHA384/string 4044s ok 1297 /checksum/SHA384/bytes 4044s # Start of reset tests 4044s ok 1298 /checksum/SHA384/reset/0 4044s ok 1299 /checksum/SHA384/reset/1 4044s ok 1300 /checksum/SHA384/reset/2 4044s ok 1301 /checksum/SHA384/reset/3 4044s ok 1302 /checksum/SHA384/reset/4 4044s ok 1303 /checksum/SHA384/reset/5 4044s ok 1304 /checksum/SHA384/reset/6 4044s ok 1305 /checksum/SHA384/reset/7 4044s ok 1306 /checksum/SHA384/reset/8 4044s ok 1307 /checksum/SHA384/reset/9 4044s ok 1308 /checksum/SHA384/reset/10 4044s ok 1309 /checksum/SHA384/reset/11 4044s ok 1310 /checksum/SHA384/reset/12 4044s ok 1311 /checksum/SHA384/reset/13 4044s ok 1312 /checksum/SHA384/reset/14 4044s ok 1313 /checksum/SHA384/reset/15 4044s ok 1314 /checksum/SHA384/reset/16 4044s ok 1315 /checksum/SHA384/reset/17 4044s ok 1316 /checksum/SHA384/reset/18 4044s ok 1317 /checksum/SHA384/reset/19 4044s ok 1318 /checksum/SHA384/reset/20 4044s ok 1319 /checksum/SHA384/reset/21 4044s ok 1320 /checksum/SHA384/reset/22 4044s ok 1321 /checksum/SHA384/reset/23 4044s ok 1322 /checksum/SHA384/reset/24 4044s ok 1323 /checksum/SHA384/reset/25 4044s ok 1324 /checksum/SHA384/reset/26 4044s ok 1325 /checksum/SHA384/reset/27 4044s ok 1326 /checksum/SHA384/reset/28 4044s ok 1327 /checksum/SHA384/reset/29 4044s ok 1328 /checksum/SHA384/reset/30 4044s ok 1329 /checksum/SHA384/reset/31 4044s ok 1330 /checksum/SHA384/reset/32 4044s ok 1331 /checksum/SHA384/reset/33 4044s ok 1332 /checksum/SHA384/reset/34 4044s ok 1333 /checksum/SHA384/reset/35 4044s ok 1334 /checksum/SHA384/reset/36 4044s ok 1335 /checksum/SHA384/reset/37 4044s ok 1336 /checksum/SHA384/reset/38 4044s ok 1337 /checksum/SHA384/reset/39 4044s ok 1338 /checksum/SHA384/reset/40 4044s ok 1339 /checksum/SHA384/reset/41 4044s ok 1340 /checksum/SHA384/reset/42 4044s ok 1341 /checksum/SHA384/reset/43 4044s ok 1342 /checksum/SHA384/reset/44 4044s ok 1343 /checksum/SHA384/reset/45 4044s ok 1344 /checksum/SHA384/reset/46 4044s ok 1345 /checksum/SHA384/reset/47 4044s ok 1346 /checksum/SHA384/reset/48 4044s ok 1347 /checksum/SHA384/reset/49 4044s ok 1348 /checksum/SHA384/reset/50 4044s ok 1349 /checksum/SHA384/reset/51 4044s ok 1350 /checksum/SHA384/reset/52 4044s ok 1351 /checksum/SHA384/reset/53 4044s ok 1352 /checksum/SHA384/reset/54 4044s ok 1353 /checksum/SHA384/reset/55 4044s ok 1354 /checksum/SHA384/reset/56 4044s ok 1355 /checksum/SHA384/reset/57 4044s ok 1356 /checksum/SHA384/reset/58 4044s ok 1357 /checksum/SHA384/reset/59 4044s ok 1358 /checksum/SHA384/reset/60 4044s ok 1359 /checksum/SHA384/reset/61 4044s ok 1360 /checksum/SHA384/reset/62 4044s ok 1361 /checksum/SHA384/reset/63 4044s ok 1362 /checksum/SHA384/reset/64 4044s ok 1363 /checksum/SHA384/reset/65 4044s ok 1364 /checksum/SHA384/reset/66 4044s ok 1365 /checksum/SHA384/reset/67 4044s ok 1366 /checksum/SHA384/reset/68 4044s ok 1367 /checksum/SHA384/reset/69 4044s ok 1368 /checksum/SHA384/reset/70 4044s ok 1369 /checksum/SHA384/reset/71 4044s ok 1370 /checksum/SHA384/reset/72 4044s ok 1371 /checksum/SHA384/reset/73 4044s ok 1372 /checksum/SHA384/reset/74 4044s ok 1373 /checksum/SHA384/reset/75 4044s ok 1374 /checksum/SHA384/reset/76 4044s ok 1375 /checksum/SHA384/reset/77 4044s ok 1376 /checksum/SHA384/reset/78 4044s ok 1377 /checksum/SHA384/reset/79 4044s ok 1378 /checksum/SHA384/reset/80 4044s ok 1379 /checksum/SHA384/reset/81 4044s ok 1380 /checksum/SHA384/reset/82 4044s ok 1381 /checksum/SHA384/reset/83 4044s ok 1382 /checksum/SHA384/reset/84 4044s ok 1383 /checksum/SHA384/reset/85 4044s ok 1384 /checksum/SHA384/reset/86 4044s ok 1385 /checksum/SHA384/reset/87 4044s ok 1386 /checksum/SHA384/reset/88 4044s ok 1387 /checksum/SHA384/reset/89 4044s ok 1388 /checksum/SHA384/reset/90 4044s ok 1389 /checksum/SHA384/reset/91 4044s ok 1390 /checksum/SHA384/reset/92 4044s ok 1391 /checksum/SHA384/reset/93 4044s ok 1392 /checksum/SHA384/reset/94 4044s ok 1393 /checksum/SHA384/reset/95 4044s ok 1394 /checksum/SHA384/reset/96 4044s ok 1395 /checksum/SHA384/reset/97 4044s ok 1396 /checksum/SHA384/reset/98 4044s ok 1397 /checksum/SHA384/reset/99 4044s ok 1398 /checksum/SHA384/reset/100 4044s ok 1399 /checksum/SHA384/reset/101 4044s ok 1400 /checksum/SHA384/reset/102 4044s ok 1401 /checksum/SHA384/reset/103 4044s ok 1402 /checksum/SHA384/reset/104 4044s ok 1403 /checksum/SHA384/reset/105 4044s ok 1404 /checksum/SHA384/reset/106 4044s ok 1405 /checksum/SHA384/reset/107 4044s ok 1406 /checksum/SHA384/reset/108 4044s ok 1407 /checksum/SHA384/reset/109 4044s ok 1408 /checksum/SHA384/reset/110 4044s ok 1409 /checksum/SHA384/reset/111 4044s ok 1410 /checksum/SHA384/reset/112 4044s ok 1411 /checksum/SHA384/reset/113 4044s ok 1412 /checksum/SHA384/reset/114 4044s ok 1413 /checksum/SHA384/reset/115 4044s ok 1414 /checksum/SHA384/reset/116 4044s ok 1415 /checksum/SHA384/reset/117 4044s ok 1416 /checksum/SHA384/reset/118 4044s ok 1417 /checksum/SHA384/reset/119 4044s ok 1418 /checksum/SHA384/reset/120 4044s ok 1419 /checksum/SHA384/reset/121 4044s ok 1420 /checksum/SHA384/reset/122 4044s ok 1421 /checksum/SHA384/reset/123 4044s ok 1422 /checksum/SHA384/reset/124 4044s ok 1423 /checksum/SHA384/reset/125 4044s ok 1424 /checksum/SHA384/reset/126 4044s ok 1425 /checksum/SHA384/reset/127 4044s ok 1426 /checksum/SHA384/reset/128 4044s ok 1427 /checksum/SHA384/reset/129 4044s ok 1428 /checksum/SHA384/reset/130 4044s ok 1429 /checksum/SHA384/reset/131 4044s ok 1430 /checksum/SHA384/reset/132 4044s ok 1431 /checksum/SHA384/reset/133 4044s ok 1432 /checksum/SHA384/reset/134 4044s ok 1433 /checksum/SHA384/reset/135 4044s ok 1434 /checksum/SHA384/reset/136 4044s ok 1435 /checksum/SHA384/reset/137 4044s ok 1436 /checksum/SHA384/reset/138 4044s ok 1437 /checksum/SHA384/reset/139 4044s ok 1438 /checksum/SHA384/reset/140 4044s ok 1439 /checksum/SHA384/reset/141 4044s ok 1440 /checksum/SHA384/reset/142 4044s ok 1441 /checksum/SHA384/reset/143 4044s ok 1442 /checksum/SHA384/reset/144 4044s ok 1443 /checksum/SHA384/reset/145 4044s ok 1444 /checksum/SHA384/reset/146 4044s ok 1445 /checksum/SHA384/reset/147 4044s ok 1446 /checksum/SHA384/reset/148 4044s ok 1447 /checksum/SHA384/reset/149 4044s ok 1448 /checksum/SHA384/reset/150 4044s ok 1449 /checksum/SHA384/reset/151 4044s ok 1450 /checksum/SHA384/reset/152 4044s ok 1451 /checksum/SHA384/reset/153 4044s ok 1452 /checksum/SHA384/reset/154 4044s ok 1453 /checksum/SHA384/reset/155 4044s ok 1454 /checksum/SHA384/reset/156 4044s ok 1455 /checksum/SHA384/reset/157 4044s ok 1456 /checksum/SHA384/reset/158 4044s ok 1457 /checksum/SHA384/reset/159 4044s ok 1458 /checksum/SHA384/reset/160 4044s ok 1459 /checksum/SHA384/reset/161 4044s ok 1460 /checksum/SHA384/reset/162 4044s ok 1461 /checksum/SHA384/reset/163 4044s ok 1462 /checksum/SHA384/reset/164 4044s ok 1463 /checksum/SHA384/reset/165 4044s ok 1464 /checksum/SHA384/reset/166 4044s ok 1465 /checksum/SHA384/reset/167 4044s ok 1466 /checksum/SHA384/reset/168 4044s ok 1467 /checksum/SHA384/reset/169 4044s ok 1468 /checksum/SHA384/reset/170 4044s ok 1469 /checksum/SHA384/reset/171 4044s ok 1470 /checksum/SHA384/reset/172 4044s ok 1471 /checksum/SHA384/reset/173 4044s ok 1472 /checksum/SHA384/reset/174 4044s ok 1473 /checksum/SHA384/reset/175 4044s ok 1474 /checksum/SHA384/reset/176 4044s ok 1475 /checksum/SHA384/reset/177 4044s ok 1476 /checksum/SHA384/reset/178 4044s ok 1477 /checksum/SHA384/reset/179 4044s ok 1478 /checksum/SHA384/reset/180 4044s ok 1479 /checksum/SHA384/reset/181 4044s ok 1480 /checksum/SHA384/reset/182 4044s ok 1481 /checksum/SHA384/reset/183 4044s # End of reset tests 4044s # End of SHA384 tests 4044s # Start of SHA512 tests 4044s ok 1482 /checksum/SHA512/0 4044s ok 1483 /checksum/SHA512/1 4044s ok 1484 /checksum/SHA512/2 4044s ok 1485 /checksum/SHA512/3 4044s ok 1486 /checksum/SHA512/4 4044s ok 1487 /checksum/SHA512/5 4044s ok 1488 /checksum/SHA512/6 4044s ok 1489 /checksum/SHA512/7 4044s ok 1490 /checksum/SHA512/8 4044s ok 1491 /checksum/SHA512/9 4044s ok 1492 /checksum/SHA512/10 4044s ok 1493 /checksum/SHA512/11 4044s ok 1494 /checksum/SHA512/12 4044s ok 1495 /checksum/SHA512/13 4044s ok 1496 /checksum/SHA512/14 4044s ok 1497 /checksum/SHA512/15 4044s ok 1498 /checksum/SHA512/16 4044s ok 1499 /checksum/SHA512/17 4044s ok 1500 /checksum/SHA512/18 4044s ok 1501 /checksum/SHA512/19 4044s ok 1502 /checksum/SHA512/20 4044s ok 1503 /checksum/SHA512/21 4044s ok 1504 /checksum/SHA512/22 4044s ok 1505 /checksum/SHA512/23 4044s ok 1506 /checksum/SHA512/24 4044s ok 1507 /checksum/SHA512/25 4044s ok 1508 /checksum/SHA512/26 4044s ok 1509 /checksum/SHA512/27 4044s ok 1510 /checksum/SHA512/28 4044s ok 1511 /checksum/SHA512/29 4044s ok 1512 /checksum/SHA512/30 4044s ok 1513 /checksum/SHA512/31 4044s ok 1514 /checksum/SHA512/32 4044s ok 1515 /checksum/SHA512/33 4044s ok 1516 /checksum/SHA512/34 4044s ok 1517 /checksum/SHA512/35 4044s ok 1518 /checksum/SHA512/36 4044s ok 1519 /checksum/SHA512/37 4044s ok 1520 /checksum/SHA512/38 4044s ok 1521 /checksum/SHA512/39 4044s ok 1522 /checksum/SHA512/40 4044s ok 1523 /checksum/SHA512/41 4044s ok 1524 /checksum/SHA512/42 4044s ok 1525 /checksum/SHA512/43 4044s ok 1526 /checksum/SHA512/44 4044s ok 1527 /checksum/SHA512/45 4044s ok 1528 /checksum/SHA512/46 4044s ok 1529 /checksum/SHA512/47 4044s ok 1530 /checksum/SHA512/48 4044s ok 1531 /checksum/SHA512/49 4044s ok 1532 /checksum/SHA512/50 4044s ok 1533 /checksum/SHA512/51 4044s ok 1534 /checksum/SHA512/52 4044s ok 1535 /checksum/SHA512/53 4044s ok 1536 /checksum/SHA512/54 4044s ok 1537 /checksum/SHA512/55 4044s ok 1538 /checksum/SHA512/56 4044s ok 1539 /checksum/SHA512/57 4044s ok 1540 /checksum/SHA512/58 4044s ok 1541 /checksum/SHA512/59 4044s ok 1542 /checksum/SHA512/60 4044s ok 1543 /checksum/SHA512/61 4044s ok 1544 /checksum/SHA512/62 4044s ok 1545 /checksum/SHA512/63 4044s ok 1546 /checksum/SHA512/64 4044s ok 1547 /checksum/SHA512/65 4044s ok 1548 /checksum/SHA512/66 4044s ok 1549 /checksum/SHA512/67 4044s ok 1550 /checksum/SHA512/68 4044s ok 1551 /checksum/SHA512/69 4044s ok 1552 /checksum/SHA512/70 4044s ok 1553 /checksum/SHA512/71 4044s ok 1554 /checksum/SHA512/72 4044s ok 1555 /checksum/SHA512/73 4044s ok 1556 /checksum/SHA512/74 4044s ok 1557 /checksum/SHA512/75 4044s ok 1558 /checksum/SHA512/76 4044s ok 1559 /checksum/SHA512/77 4044s ok 1560 /checksum/SHA512/78 4044s ok 1561 /checksum/SHA512/79 4044s ok 1562 /checksum/SHA512/80 4044s ok 1563 /checksum/SHA512/81 4044s ok 1564 /checksum/SHA512/82 4044s ok 1565 /checksum/SHA512/83 4044s ok 1566 /checksum/SHA512/84 4044s ok 1567 /checksum/SHA512/85 4044s ok 1568 /checksum/SHA512/86 4044s ok 1569 /checksum/SHA512/87 4044s ok 1570 /checksum/SHA512/88 4044s ok 1571 /checksum/SHA512/89 4044s ok 1572 /checksum/SHA512/90 4044s ok 1573 /checksum/SHA512/91 4044s ok 1574 /checksum/SHA512/92 4044s ok 1575 /checksum/SHA512/93 4044s ok 1576 /checksum/SHA512/94 4044s ok 1577 /checksum/SHA512/95 4044s ok 1578 /checksum/SHA512/96 4044s ok 1579 /checksum/SHA512/97 4044s ok 1580 /checksum/SHA512/98 4044s ok 1581 /checksum/SHA512/99 4044s ok 1582 /checksum/SHA512/100 4044s ok 1583 /checksum/SHA512/101 4044s ok 1584 /checksum/SHA512/102 4044s ok 1585 /checksum/SHA512/103 4044s ok 1586 /checksum/SHA512/104 4044s ok 1587 /checksum/SHA512/105 4044s ok 1588 /checksum/SHA512/106 4044s ok 1589 /checksum/SHA512/107 4044s ok 1590 /checksum/SHA512/108 4044s ok 1591 /checksum/SHA512/109 4044s ok 1592 /checksum/SHA512/110 4044s ok 1593 /checksum/SHA512/111 4044s ok 1594 /checksum/SHA512/112 4044s ok 1595 /checksum/SHA512/113 4044s ok 1596 /checksum/SHA512/114 4044s ok 1597 /checksum/SHA512/115 4044s ok 1598 /checksum/SHA512/116 4044s ok 1599 /checksum/SHA512/117 4044s ok 1600 /checksum/SHA512/118 4044s ok 1601 /checksum/SHA512/119 4044s ok 1602 /checksum/SHA512/120 4044s ok 1603 /checksum/SHA512/121 4044s ok 1604 /checksum/SHA512/122 4044s ok 1605 /checksum/SHA512/123 4044s ok 1606 /checksum/SHA512/124 4044s ok 1607 /checksum/SHA512/125 4044s ok 1608 /checksum/SHA512/126 4044s ok 1609 /checksum/SHA512/127 4044s ok 1610 /checksum/SHA512/128 4044s ok 1611 /checksum/SHA512/129 4044s ok 1612 /checksum/SHA512/130 4044s ok 1613 /checksum/SHA512/131 4044s ok 1614 /checksum/SHA512/132 4044s ok 1615 /checksum/SHA512/133 4044s ok 1616 /checksum/SHA512/134 4044s ok 1617 /checksum/SHA512/135 4044s ok 1618 /checksum/SHA512/136 4044s ok 1619 /checksum/SHA512/137 4044s ok 1620 /checksum/SHA512/138 4044s ok 1621 /checksum/SHA512/139 4044s ok 1622 /checksum/SHA512/140 4044s ok 1623 /checksum/SHA512/141 4044s ok 1624 /checksum/SHA512/142 4044s ok 1625 /checksum/SHA512/143 4044s ok 1626 /checksum/SHA512/144 4044s ok 1627 /checksum/SHA512/145 4044s ok 1628 /checksum/SHA512/146 4044s ok 1629 /checksum/SHA512/147 4044s ok 1630 /checksum/SHA512/148 4044s ok 1631 /checksum/SHA512/149 4044s ok 1632 /checksum/SHA512/150 4044s ok 1633 /checksum/SHA512/151 4044s ok 1634 /checksum/SHA512/152 4044s ok 1635 /checksum/SHA512/153 4044s ok 1636 /checksum/SHA512/154 4044s ok 1637 /checksum/SHA512/155 4044s ok 1638 /checksum/SHA512/156 4044s ok 1639 /checksum/SHA512/157 4044s ok 1640 /checksum/SHA512/158 4044s ok 1641 /checksum/SHA512/159 4044s ok 1642 /checksum/SHA512/160 4044s ok 1643 /checksum/SHA512/161 4044s ok 1644 /checksum/SHA512/162 4044s ok 1645 /checksum/SHA512/163 4044s ok 1646 /checksum/SHA512/164 4044s ok 1647 /checksum/SHA512/165 4044s ok 1648 /checksum/SHA512/166 4044s ok 1649 /checksum/SHA512/167 4044s ok 1650 /checksum/SHA512/168 4044s ok 1651 /checksum/SHA512/169 4044s ok 1652 /checksum/SHA512/170 4044s ok 1653 /checksum/SHA512/171 4044s ok 1654 /checksum/SHA512/172 4044s ok 1655 /checksum/SHA512/173 4044s ok 1656 /checksum/SHA512/174 4044s ok 1657 /checksum/SHA512/175 4044s ok 1658 /checksum/SHA512/176 4044s ok 1659 /checksum/SHA512/177 4044s ok 1660 /checksum/SHA512/178 4044s ok 1661 /checksum/SHA512/179 4044s ok 1662 /checksum/SHA512/180 4044s ok 1663 /checksum/SHA512/181 4044s ok 1664 /checksum/SHA512/182 4044s ok 1665 /checksum/SHA512/183 4044s ok 1666 /checksum/SHA512/string 4044s ok 1667 /checksum/SHA512/bytes 4044s # Start of reset tests 4044s ok 1668 /checksum/SHA512/reset/0 4044s ok 1669 /checksum/SHA512/reset/1 4044s ok 1670 /checksum/SHA512/reset/2 4044s ok 1671 /checksum/SHA512/reset/3 4044s ok 1672 /checksum/SHA512/reset/4 4044s ok 1673 /checksum/SHA512/reset/5 4044s ok 1674 /checksum/SHA512/reset/6 4044s ok 1675 /checksum/SHA512/reset/7 4044s ok 1676 /checksum/SHA512/reset/8 4044s ok 1677 /checksum/SHA512/reset/9 4044s ok 1678 /checksum/SHA512/reset/10 4044s ok 1679 /checksum/SHA512/reset/11 4044s ok 1680 /checksum/SHA512/reset/12 4044s ok 1681 /checksum/SHA512/reset/13 4044s ok 1682 /checksum/SHA512/reset/14 4044s ok 1683 /checksum/SHA512/reset/15 4044s ok 1684 /checksum/SHA512/reset/16 4044s ok 1685 /checksum/SHA512/reset/17 4044s ok 1686 /checksum/SHA512/reset/18 4044s ok 1687 /checksum/SHA512/reset/19 4044s ok 1688 /checksum/SHA512/reset/20 4044s ok 1689 /checksum/SHA512/reset/21 4044s ok 1690 /checksum/SHA512/reset/22 4044s ok 1691 /checksum/SHA512/reset/23 4044s ok 1692 /checksum/SHA512/reset/24 4044s ok 1693 /checksum/SHA512/reset/25 4044s ok 1694 /checksum/SHA512/reset/26 4044s ok 1695 /checksum/SHA512/reset/27 4044s ok 1696 /checksum/SHA512/reset/28 4044s ok 1697 /checksum/SHA512/reset/29 4044s ok 1698 /checksum/SHA512/reset/30 4044s ok 1699 /checksum/SHA512/reset/31 4044s ok 1700 /checksum/SHA512/reset/32 4044s ok 1701 /checksum/SHA512/reset/33 4044s ok 1702 /checksum/SHA512/reset/34 4044s ok 1703 /checksum/SHA512/reset/35 4044s ok 1704 /checksum/SHA512/reset/36 4044s ok 1705 /checksum/SHA512/reset/37 4044s ok 1706 /checksum/SHA512/reset/38 4044s ok 1707 /checksum/SHA512/reset/39 4044s ok 1708 /checksum/SHA512/reset/40 4044s ok 1709 /checksum/SHA512/reset/41 4044s ok 1710 /checksum/SHA512/reset/42 4044s ok 1711 /checksum/SHA512/reset/43 4044s ok 1712 /checksum/SHA512/reset/44 4044s ok 1713 /checksum/SHA512/reset/45 4044s ok 1714 /checksum/SHA512/reset/46 4044s ok 1715 /checksum/SHA512/reset/47 4044s ok 1716 /checksum/SHA512/reset/48 4044s ok 1717 /checksum/SHA512/reset/49 4044s ok 1718 /checksum/SHA512/reset/50 4044s ok 1719 /checksum/SHA512/reset/51 4044s ok 1720 /checksum/SHA512/reset/52 4044s ok 1721 /checksum/SHA512/reset/53 4044s ok 1722 /checksum/SHA512/reset/54 4044s ok 1723 /checksum/SHA512/reset/55 4044s ok 1724 /checksum/SHA512/reset/56 4044s ok 1725 /checksum/SHA512/reset/57 4044s ok 1726 /checksum/SHA512/reset/58 4044s ok 1727 /checksum/SHA512/reset/59 4044s ok 1728 /checksum/SHA512/reset/60 4044s ok 1729 /checksum/SHA512/reset/61 4044s ok 1730 /checksum/SHA512/reset/62 4044s ok 1731 /checksum/SHA512/reset/63 4044s ok 1732 /checksum/SHA512/reset/64 4044s ok 1733 /checksum/SHA512/reset/65 4044s ok 1734 /checksum/SHA512/reset/66 4044s ok 1735 /checksum/SHA512/reset/67 4044s ok 1736 /checksum/SHA512/reset/68 4044s ok 1737 /checksum/SHA512/reset/69 4044s ok 1738 /checksum/SHA512/reset/70 4044s ok 1739 /checksum/SHA512/reset/71 4044s ok 1740 /checksum/SHA512/reset/72 4044s ok 1741 /checksum/SHA512/reset/73 4044s ok 1742 /checksum/SHA512/reset/74 4044s ok 1743 /checksum/SHA512/reset/75 4044s ok 1744 /checksum/SHA512/reset/76 4044s ok 1745 /checksum/SHA512/reset/77 4044s ok 1746 /checksum/SHA512/reset/78 4044s ok 1747 /checksum/SHA512/reset/79 4044s ok 1748 /checksum/SHA512/reset/80 4044s ok 1749 /checksum/SHA512/reset/81 4044s ok 1750 /checksum/SHA512/reset/82 4044s ok 1751 /checksum/SHA512/reset/83 4044s ok 1752 /checksum/SHA512/reset/84 4044s ok 1753 /checksum/SHA512/reset/85 4044s ok 1754 /checksum/SHA512/reset/86 4044s ok 1755 /checksum/SHA512/reset/87 4044s ok 1756 /checksum/SHA512/reset/88 4044s ok 1757 /checksum/SHA512/reset/89 4044s ok 1758 /checksum/SHA512/reset/90 4044s ok 1759 /checksum/SHA512/reset/91 4044s ok 1760 /checksum/SHA512/reset/92 4044s ok 1761 /checksum/SHA512/reset/93 4044s ok 1762 /checksum/SHA512/reset/94 4044s ok 1763 /checksum/SHA512/reset/95 4044s ok 1764 /checksum/SHA512/reset/96 4044s ok 1765 /checksum/SHA512/reset/97 4044s ok 1766 /checksum/SHA512/reset/98 4044s ok 1767 /checksum/SHA512/reset/99 4044s ok 1768 /checksum/SHA512/reset/100 4044s ok 1769 /checksum/SHA512/reset/101 4044s ok 1770 /checksum/SHA512/reset/102 4044s ok 1771 /checksum/SHA512/reset/103 4044s ok 1772 /checksum/SHA512/reset/104 4044s ok 1773 /checksum/SHA512/reset/105 4044s ok 1774 /checksum/SHA512/reset/106 4044s ok 1775 /checksum/SHA512/reset/107 4044s ok 1776 /checksum/SHA512/reset/108 4044s ok 1777 /checksum/SHA512/reset/109 4044s ok 1778 /checksum/SHA512/reset/110 4044s ok 1779 /checksum/SHA512/reset/111 4044s ok 1780 /checksum/SHA512/reset/112 4044s ok 1781 /checksum/SHA512/reset/113 4044s ok 1782 /checksum/SHA512/reset/114 4044s ok 1783 /checksum/SHA512/reset/115 4044s ok 1784 /checksum/SHA512/reset/116 4044s ok 1785 /checksum/SHA512/reset/117 4044s ok 1786 /checksum/SHA512/reset/118 4044s ok 1787 /checksum/SHA512/reset/119 4044s ok 1788 /checksum/SHA512/reset/120 4044s ok 1789 /checksum/SHA512/reset/121 4044s ok 1790 /checksum/SHA512/reset/122 4044s ok 1791 /checksum/SHA512/reset/123 4044s ok 1792 /checksum/SHA512/reset/124 4044s ok 1793 /checksum/SHA512/reset/125 4044s ok 1794 /checksum/SHA512/reset/126 4044s ok 1795 /checksum/SHA512/reset/127 4044s ok 1796 /checksum/SHA512/reset/128 4044s ok 1797 /checksum/SHA512/reset/129 4044s ok 1798 /checksum/SHA512/reset/130 4044s ok 1799 /checksum/SHA512/reset/131 4044s ok 1800 /checksum/SHA512/reset/132 4044s ok 1801 /checksum/SHA512/reset/133 4044s ok 1802 /checksum/SHA512/reset/134 4044s ok 1803 /checksum/SHA512/reset/135 4044s ok 1804 /checksum/SHA512/reset/136 4044s ok 1805 /checksum/SHA512/reset/137 4044s ok 1806 /checksum/SHA512/reset/138 4044s ok 1807 /checksum/SHA512/reset/139 4044s ok 1808 /checksum/SHA512/reset/140 4044s ok 1809 /checksum/SHA512/reset/141 4044s ok 1810 /checksum/SHA512/reset/142 4044s ok 1811 /checksum/SHA512/reset/143 4044s ok 1812 /checksum/SHA512/reset/144 4044s ok 1813 /checksum/SHA512/reset/145 4044s ok 1814 /checksum/SHA512/reset/146 4044s ok 1815 /checksum/SHA512/reset/147 4044s ok 1816 /checksum/SHA512/reset/148 4044s ok 1817 /checksum/SHA512/reset/149 4044s ok 1818 /checksum/SHA512/reset/150 4044s ok 1819 /checksum/SHA512/reset/151 4044s ok 1820 /checksum/SHA512/reset/152 4044s ok 1821 /checksum/SHA512/reset/153 4044s ok 1822 /checksum/SHA512/reset/154 4044s ok 1823 /checksum/SHA512/reset/155 4044s ok 1824 /checksum/SHA512/reset/156 4044s ok 1825 /checksum/SHA512/reset/157 4044s ok 1826 /checksum/SHA512/reset/158 4044s ok 1827 /checksum/SHA512/reset/159 4044s ok 1828 /checksum/SHA512/reset/160 4044s ok 1829 /checksum/SHA512/reset/161 4044s ok 1830 /checksum/SHA512/reset/162 4044s ok 1831 /checksum/SHA512/reset/163 4044s ok 1832 /checksum/SHA512/reset/164 4044s ok 1833 /checksum/SHA512/reset/165 4044s ok 1834 /checksum/SHA512/reset/166 4044s ok 1835 /checksum/SHA512/reset/167 4044s ok 1836 /checksum/SHA512/reset/168 4044s ok 1837 /checksum/SHA512/reset/169 4044s ok 1838 /checksum/SHA512/reset/170 4044s ok 1839 /checksum/SHA512/reset/171 4044s ok 1840 /checksum/SHA512/reset/172 4044s ok 1841 /checksum/SHA512/reset/173 4044s ok 1842 /checksum/SHA512/reset/174 4044s ok 1843 /checksum/SHA512/reset/175 4044s ok 1844 /checksum/SHA512/reset/176 4044s ok 1845 /checksum/SHA512/reset/177 4044s ok 1846 /checksum/SHA512/reset/178 4044s ok 1847 /checksum/SHA512/reset/179 4044s ok 1848 /checksum/SHA512/reset/180 4044s ok 1849 /checksum/SHA512/reset/181 4044s ok 1850 /checksum/SHA512/reset/182 4044s ok 1851 /checksum/SHA512/reset/183 4044s # End of reset tests 4044s # End of SHA512 tests 4044s # End of checksum tests 4044s ok - glib/checksum.test 4044s # Running test: glib/atomic-c-17.test 4044s TAP version 14 4044s # random seed: R02S60b40e266c8528205c6f476bd7a796e9 4044s 1..2 4044s # Start of atomic tests 4044s ok 1 /atomic/types 4044s ok 2 /atomic/threaded 4044s # End of atomic tests 4044s ok - glib/atomic-c-17.test 4044s # Running test: glib/bindinggroup.test 4044s TAP version 14 4044s # random seed: R02S200f7d15b7b747646bdc0cee2294d8ff 4044s 1..11 4044s # Start of GObject tests 4044s # Start of BindingGroup tests 4044s ok 1 /GObject/BindingGroup/invalid 4044s ok 2 /GObject/BindingGroup/default 4044s ok 3 /GObject/BindingGroup/bidirectional 4044s ok 4 /GObject/BindingGroup/transform 4044s ok 5 /GObject/BindingGroup/transform-closures 4044s ok 6 /GObject/BindingGroup/same-object 4044s ok 7 /GObject/BindingGroup/weak-ref-source 4044s ok 8 /GObject/BindingGroup/weak-ref-target 4044s ok 9 /GObject/BindingGroup/properties 4044s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 4044s ok 11 /GObject/BindingGroup/empty-closures 4044s # End of BindingGroup tests 4044s # End of GObject tests 4044s ok - glib/bindinggroup.test 4044s # Running test: glib/defaultiface.test 4044s ok - glib/defaultiface.test 4044s TAP version 14 4044s # random seed: R02Sabcffff515f9a22efa008883ec991a8e 4044s 1..2 4044s # Start of gobject tests 4044s ok 1 /gobject/static-iface 4044s ok 2 /gobject/dynamic-iface 4044s # End of gobject tests 4044s # Running test: glib/gdbus-connection-slow.test 4044s TAP version 14 4044s # random seed: R02S31dfd7afdaff5b02c0605e79f79b2c2b 4044s 1..2 4044s # Start of gdbus tests 4044s # Start of connection tests 4044s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/flush/.dirs/home 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/flush/.dirs/cache 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/flush/.dirs/system-config2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/flush/.dirs/config 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/flush/.dirs/system-data2 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/flush/.dirs/data 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/flush/.dirs/state 4044s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/flush/.dirs/runtime 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s ok 1 /gdbus/connection/flush 4045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/large_message/.dirs/home 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/large_message/.dirs/cache 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/large_message/.dirs/system-config2 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/large_message/.dirs/config 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/large_message/.dirs/system-data2 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/large_message/.dirs/data 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/large_message/.dirs/state 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_36P7J3/gdbus/connection/large_message/.dirs/runtime 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4045s ok - glib/gdbus-connection-slow.test 4045s # Running test: glib/error.test 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s ok 2 /gdbus/connection/large_message 4045s # End of connection tests 4045s # End of gdbus tests 4045s TAP version 14 4045s # random seed: R02S7418fca39e6032c293c9d7f4b3e3bfcb 4045s 1..3 4045s # Start of error tests 4045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_41CJK3/error/from-errno/.dirs/home 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_41CJK3/error/from-errno/.dirs/cache 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_41CJK3/error/from-errno/.dirs/system-config1:/tmp/test_error_41CJK3/error/from-errno/.dirs/system-config2 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_41CJK3/error/from-errno/.dirs/config 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_41CJK3/error/from-errno/.dirs/system-data1:/tmp/test_error_41CJK3/error/from-errno/.dirs/system-data2 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_41CJK3/error/from-errno/.dirs/data 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_41CJK3/error/from-errno/.dirs/state 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_41CJK3/error/from-errno/.dirs/runtime 4045s ok 1 /error/from-errno 4045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_41CJK3/error/from-file-error/.dirs/home 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_41CJK3/error/from-file-error/.dirs/cache 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_41CJK3/error/from-file-error/.dirs/system-config1:/tmp/test_error_41CJK3/error/from-file-error/.dirs/system-config2 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_41CJK3/error/from-file-error/.dirs/config 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_41CJK3/error/from-file-error/.dirs/system-data1:/tmp/test_error_41CJK3/error/from-file-error/.dirs/system-data2 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_41CJK3/error/from-file-error/.dirs/data 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_41CJK3/error/from-file-error/.dirs/state 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_41CJK3/error/from-file-error/.dirs/runtime 4045s ok 2 /error/from-file-error 4045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_41CJK3/error/from-win32-error/.dirs/home 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_41CJK3/error/from-win32-error/.dirs/cache 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_41CJK3/error/from-win32-error/.dirs/system-config1:/tmp/test_error_41CJK3/error/from-win32-error/.dirs/system-config2 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_41CJK3/error/from-win32-error/.dirs/config 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_41CJK3/error/from-win32-error/.dirs/system-data1:/tmp/test_error_41CJK3/error/from-win32-error/.dirs/system-data2 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_41CJK3/error/from-win32-error/.dirs/data 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_41CJK3/error/from-win32-error/.dirs/state 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_41CJK3/error/from-win32-error/.dirs/runtime 4045s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 4045s # End of error tests 4045s ok - glib/error.test 4045s # Running test: glib/buffered-output-stream.test 4045s ok - glib/buffered-output-stream.test 4045s # Running test: glib/basic-signals.test 4045s ok - glib/basic-signals.test 4045s # Running test: glib/simple-proxy.test 4045s TAP version 14 4045s # random seed: R02Sd208695d0ee4dbd6a1938cc85f82b2f9 4045s 1..5 4045s # Start of buffered-output-stream tests 4045s ok 1 /buffered-output-stream/write 4045s ok 2 /buffered-output-stream/grow 4045s ok 3 /buffered-output-stream/seek 4045s ok 4 /buffered-output-stream/truncate 4045s # End of buffered-output-stream tests 4045s # Start of filter-output-stream tests 4045s ok 5 /filter-output-stream/close 4045s # End of filter-output-stream tests 4045s TAP version 14 4045s # random seed: R02S9d9ad929c017bf623e4a6191d59ec2e4 4045s 1..1 4045s # Start of gobject tests 4045s ok 1 /gobject/basic-signals 4045s # End of gobject tests 4045s ok - glib/simple-proxy.test 4045s # Running test: glib/gdbus-bz627724.test 4045s ok - glib/gdbus-bz627724.test 4045s # Running test: glib/g-icon.test 4045s TAP version 14 4045s # random seed: R02Sfe276dcfa1648ea718a87dd814ce768a 4045s 1..3 4045s # Start of static-proxy tests 4045s ok 1 /static-proxy/uri 4045s ok 2 /static-proxy/socks 4045s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string *.eee.xx:8000 4045s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 10.0.0.1:8000 4045s ok 3 /static-proxy/ignore 4045s # End of static-proxy tests 4045s TAP version 14 4045s # random seed: R02S1c3117e451c4f4aa3350e24ab18815e1 4045s 1..1 4045s # Start of gdbus tests 4045s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_NPMJK3/gdbus/bz627724/.dirs/home 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_NPMJK3/gdbus/bz627724/.dirs/cache 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_NPMJK3/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_NPMJK3/gdbus/bz627724/.dirs/system-config2 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_NPMJK3/gdbus/bz627724/.dirs/config 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_NPMJK3/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_NPMJK3/gdbus/bz627724/.dirs/system-data2 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_NPMJK3/gdbus/bz627724/.dirs/data 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_NPMJK3/gdbus/bz627724/.dirs/state 4045s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_NPMJK3/gdbus/bz627724/.dirs/runtime 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4045s ok 1 /gdbus/bz627724 4045s # End of gdbus tests 4045s TAP version 14 4045s # random seed: R02S79b326747fb47f92769a8e6d17077f2f 4045s 1..6 4045s # Start of icons tests 4045s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4045s ok - glib/g-icon.test 4045s # Running test: glib/readwrite.test 4045s ok 1 /icons/to-string 4045s ok 2 /icons/serialize 4045s ok 3 /icons/themed 4045s ok 4 /icons/emblemed 4045s ok 5 /icons/file 4045s ok 6 /icons/bytes 4045s # End of icons tests 4045s TAP version 14 4045s # random seed: R02Scb38fd90feab0f0738b03a5344cd0bc9 4045s 1..3 4045s # Start of readwrite tests 4045s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4045s ok 1 /readwrite/test_g_file_open_readwrite 4045s ok 2 /readwrite/test_g_file_create_readwrite 4045s ok 3 /readwrite/test_g_file_replace_readwrite 4045s # End of readwrite tests 4045s ok - glib/readwrite.test 4045s # Running test: glib/1bit-mutex.test 4045s TAP version 14 4045s # random seed: R02Sa5871f733cafc3538c1628ae5884c540 4045s 1..2 4045s # Start of glib tests 4045s # Start of 1bit-mutex tests 4049s ok 1 /glib/1bit-mutex/int 4049s # slow test /glib/1bit-mutex/int executed in 3.60 secs 4049s # Executing: glib/1bit-mutex.test 4052s ok 2 /glib/1bit-mutex/pointer 4052s # slow test /glib/1bit-mutex/pointer executed in 3.59 secs 4052s # End of 1bit-mutex tests 4052s # End of glib tests 4052s ok - glib/1bit-mutex.test 4052s # Running test: glib/file-enumerator.test 4052s TAP version 14 4052s # random seed: R02S5317f322bce7c4aba2072101f26301b6 4052s 1..1 4052s # Start of file-enumerator tests 4052s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4052s ok 1 /file-enumerator/close-on-dispose 4052s # End of file-enumerator tests 4052s ok - glib/file-enumerator.test 4052s # Running test: glib/print.test 4052s ok - glib/print.test 4052s # Running test: glib/macros-c-11.test 4052s ok - glib/macros-c-11.test 4052s # Running test: glib/registered-type-info.test 4052s ok - glib/registered-type-info.test 4052s # Running test: glib/gobject-query.py.test 4052s TAP version 14 4052s # random seed: R02S289c40442440863354b41357086bfa00 4052s 1..1 4052s ok 1 /print-console # SKIP Testing console output only supported on Windows 4052s TAP version 14 4052s # random seed: R02S065740653cd5b5dccd7ee1471c694eec 4052s 1..4 4052s # Start of C tests 4052s ok 1 /C/standard-11 4052s # End of C tests 4052s # Start of alignof tests 4052s ok 2 /alignof/fallback 4052s # End of alignof tests 4052s # Start of assert tests 4052s ok 3 /assert/static 4052s # End of assert tests 4052s # Start of struct tests 4052s ok 4 /struct/sizeof_member 4052s # End of struct tests 4052s TAP version 14 4052s # random seed: R02Sfc6679c9b2b12c562400dbc5594ce49c 4052s 1..1 4052s # Start of registered-type-info tests 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_JH4BK3/registered-type-info/boxed/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_JH4BK3/registered-type-info/boxed/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_JH4BK3/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_JH4BK3/registered-type-info/boxed/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_JH4BK3/registered-type-info/boxed/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_JH4BK3/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_JH4BK3/registered-type-info/boxed/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_JH4BK3/registered-type-info/boxed/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_JH4BK3/registered-type-info/boxed/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_JH4BK3/registered-type-info/boxed/.dirs/runtime 4052s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4052s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 4052s # Expecting CClosure to not be boxed 4052s # Expecting TypeCValue to not be boxed 4052s # Expecting InitiallyUnownedClass to not be boxed 4052s # Expecting BookmarkFile to be boxed 4052s # Expecting Closure to be boxed 4052s # Expecting Object to not be boxed 4052s ok 1 /registered-type-info/boxed 4052s # End of registered-type-info tests 4052s TAP version 13 4052s ok 1 __main__.TestGobjectQuery.test_froots 4052s # gobject-query: /usr/bin/gobject-query 4052s # tmpdir: /tmp/tmpfn131c49 4052s # Running: ['/usr/bin/gobject-query', 'froots'] 4052s # Return code: 0 4052s # Output: 4052s # ├void 4052s # ├GInterface 4052s # │ └GTypePlugin 4052s # ├gchar 4052s # ├guchar 4052s # ├gboolean 4052s # ├gint 4052s # ├guint 4052s # ├glong 4052s # ├gulong 4052s # ├gint64 4052s # ├guint64 4052s # ├GEnum 4052s # ├GFlags 4052s # ├gfloat 4052s # ├gdouble 4052s # ├gchararray 4052s # ├gpointer 4052s # │ └GType 4052s # ├GBoxed 4052s # │ └GValueArray 4052s # ├GParam 4052s # │ ├GParamChar 4052s # │ ├GParamUChar 4052s # │ ├GParamBoolean 4052s # │ ├GParamInt 4052s # │ ├GParamUInt 4052s # │ ├GParamLong 4052s # │ ├GParamULong 4052s # │ ├GParamInt64 4052s # │ ├GParamUInt64 4052s # │ ├GParamUnichar 4052s # │ ├GParamEnum 4052s # │ ├GParamFlags 4052s # │ ├GParamFloat 4052s # │ ├GParamDouble 4052s # │ ├GParamString 4052s # │ ├GParamParam 4052s # │ ├GParamBoxed 4052s # │ ├GParamPointer 4052s # │ ├GParamValueArray 4052s # │ ├GParamObject 4052s # │ ├GParamOverride 4052s # │ ├GParamGType 4052s # │ └GParamVariant 4052s # ├GObject 4052s # └GVariant 4052s # Error: 4052s ok 2 __main__.TestGobjectQuery.test_help 4052s # gobject-query: /usr/bin/gobject-query 4052s # tmpdir: /tmp/tmph6pi39pe 4052s # Running: ['/usr/bin/gobject-query', '--help'] 4052s # Return code: 0 4052s # Output: 4052s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 4052s # -r specify root type 4052s # -n don't descend type tree 4052s # -h show help 4052s # -b specify indent string 4052s # -i specify incremental indent string 4052s # -s specify line spacing 4052s # qualifiers: 4052s # froots iterate over fundamental roots 4052s # tree print type tree 4052s # Error: 4052s ok 3 __main__.TestGobjectQuery.test_tree 4052s # gobject-query: /usr/bin/gobject-query 4052s # tmpdir: /tmp/tmposufd7mv 4052s # Running: ['/usr/bin/gobject-query', 'tree'] 4052s # Return code: 0 4052s # Output: 4052s # GObject 4052s # Error: 4052s ok 4 __main__.TestGobjectQuery.test_version 4052s # gobject-query: /usr/bin/gobject-query 4052s # tmpdir: /tmp/tmpjj7dmnn0 4052s # Running: ['/usr/bin/gobject-query', '--version'] 4052s # Return code: 0 4052s # Output: 4052s # 2.86.3 4052s # Error: 4052s 1..4 4052s ok - glib/gobject-query.py.test 4052s # Running test: glib/sandbox.test 4052s TAP version 14 4052s # random seed: R02Sdf37289f63e3d3c45ef33dec6df0c615 4052s 1..4 4052s # Start of sandbox tests 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_LAF5J3/sandbox/none/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_LAF5J3/sandbox/none/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_LAF5J3/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_LAF5J3/sandbox/none/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_LAF5J3/sandbox/none/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_LAF5J3/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_LAF5J3/sandbox/none/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_LAF5J3/sandbox/none/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_LAF5J3/sandbox/none/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_LAF5J3/sandbox/none/.dirs/runtime 4052s ok 1 /sandbox/none 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_LAF5J3/sandbox/snap/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_LAF5J3/sandbox/snap/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_LAF5J3/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_LAF5J3/sandbox/snap/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_LAF5J3/sandbox/snap/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_LAF5J3/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_LAF5J3/sandbox/snap/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_LAF5J3/sandbox/snap/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_LAF5J3/sandbox/snap/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_LAF5J3/sandbox/snap/.dirs/runtime 4052s # Created snap.yaml in /tmp/test_sandbox_LAF5J3/snap/current/meta/snap.yaml 4052s ok 2 /sandbox/snap 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_LAF5J3/sandbox/classic-snap/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_LAF5J3/sandbox/classic-snap/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_LAF5J3/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_LAF5J3/sandbox/classic-snap/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_LAF5J3/sandbox/classic-snap/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_LAF5J3/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_LAF5J3/sandbox/classic-snap/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_LAF5J3/sandbox/classic-snap/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_LAF5J3/sandbox/classic-snap/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_LAF5J3/sandbox/classic-snap/.dirs/runtime 4052s ok - glib/sandbox.test 4052s # Created snap.yaml in /tmp/test_sandbox_LAF5J3/snap/current/meta/snap.yaml 4052s ok 3 /sandbox/classic-snap 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/runtime 4052s # Creating .flatpak-info in /tmp/test_sandbox_LAF5J3/sandbox/flatpak/.dirs/runtime/.flatpak-info 4052s ok 4 /sandbox/flatpak 4052s # End of sandbox tests 4052s # Running test: glib/async-close-output-stream.test 4052s TAP version 14 4052s # random seed: R02S30ff3ae8abfcce01a88de09905284a1a 4052s 1..3 4052s # Start of close-async tests 4052s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 4052s ok 1 /close-async/without-flush 4052s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 4052s ok 2 /close-async/with-flush 4052s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 4052s ok 3 /close-async/with-async-flush 4052s # End of close-async tests 4052s ok - glib/async-close-output-stream.test 4052s # Running test: glib/value.test 4052s TAP version 14 4052s # random seed: R02S5bae7971b3872b9e780bad069216629f 4052s 1..9 4052s # Start of value tests 4052s ok 1 /value/basic 4052s ok 2 /value/collection 4052s ok 3 /value/copying 4052s ok 4 /value/enum-transformation 4052s ok 5 /value/gtype 4052s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 4052s ok 6 /value/string 4052s # Next: GObject object in GValue of GObject to GValue of GObject 4052s # Next: GObject object in GValue of GObject to GValue of TestInterface 4052s # Next: GObject object in GValue of GObject to GValue of TestObjectA 4052s # Next: GObject object in GValue of GObject to GValue of TestObjectB 4052s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 4052s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 4052s # Next: TestObjectA object in GValue of GObject to GValue of GObject 4052s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 4052s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 4052s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 4052s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 4052s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 4052s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 4052s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 4052s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 4052s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 4052s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 4052s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 4052s ok - glib/value.test 4052s # Running test: glib/socket-listener.test 4052s # Next: TestObjectB object in GValue of GObject to GValue of GObject 4052s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 4052s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 4052s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 4052s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 4052s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 4052s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 4052s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 4052s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 4052s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 4052s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 4052s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 4052s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 4052s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 4052s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 4052s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 4052s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 4052s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 4052s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 4052s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 4052s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 4052s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 4052s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 4052s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 4052s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 4052s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 4052s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 4052s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 4052s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 4052s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 4052s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 4052s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 4052s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 4052s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 4052s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 4052s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 4052s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 4052s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 4052s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 4052s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 4052s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 4052s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 4052s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 4052s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 4052s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 4052s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 4052s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 4052s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 4052s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 4052s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 4052s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 4052s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 4052s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 4052s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 4052s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 4052s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 4052s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 4052s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 4052s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 4052s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 4052s ok 7 /value/transform-object 4052s # Start of array tests 4052s ok 8 /value/array/basic 4052s ok 9 /value/array/sort-with-data 4052s # End of array tests 4052s # End of value tests 4052s TAP version 14 4052s # random seed: R02Sa345ae1fa7960aa39d039b5eca73dc2a 4052s 1..4 4052s # Start of socket-listener tests 4052s ok 1 /socket-listener/event-signal 4052s # Start of accept tests 4052s # /socket-listener/accept/multi-simultaneously summary: Test that accepting multiple pending connections on the same GMainContext iteration works 4052s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3739 4052s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 4052s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc63d13686530 and GSocketClientAsyncConnectData 0xc63d136819c0 4052s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 4052s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc63d13688bc0 and GSocketClientAsyncConnectData 0xc63d13688a10 4052s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 4052s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc63d136893e0 and GSocketClientAsyncConnectData 0xc63d13689160 4052s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 4052s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc63d13689c60 and GSocketClientAsyncConnectData 0xc63d136899e0 4052s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 4052s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc63d1368a480 and GSocketClientAsyncConnectData 0xc63d1368a200 4052s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 4052s ok - glib/socket-listener.test 4052s # Running test: glib/gnotification.test 4052s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 4052s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc63d1368c980 for GSocketClientAsyncConnectData 0xc63d136819c0 4052s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 4052s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 4052s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc63d1368eaf0 for GSocketClientAsyncConnectData 0xc63d13688a10 4052s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 4052s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 4052s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc63d1368f2a0 for GSocketClientAsyncConnectData 0xc63d13689160 4052s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 4052s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 4052s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc63d1368f940 for GSocketClientAsyncConnectData 0xc63d136899e0 4052s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 4052s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 4052s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc63d1368c020 for GSocketClientAsyncConnectData 0xc63d1368a200 4052s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 4052s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 4052s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 4052s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 4052s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 4052s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 4052s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 4052s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 4052s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 4052s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 4052s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 4052s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 4052s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 4052s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 4052s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 4052s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 4052s ok 2 /socket-listener/accept/multi-simultaneously 4052s # End of accept tests 4052s # Start of add-any-inet-port tests 4052s # /socket-listener/add-any-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 4052s # Test 0 4052s # Test 1 4052s # Test 2 4052s # Test 3 4052s # Test 4 4052s # Test 5 4052s # Test 6 4052s # Test 7 4052s # Test 8 4052s # Test 9 4052s # Test 10 4052s ok 3 /socket-listener/add-any-inet-port/listen-failures 4052s # End of add-any-inet-port tests 4052s # Start of add-inet-port tests 4052s # /socket-listener/add-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 4052s # Test 0 4052s # Test 1 4052s # Test 2 4052s # Test 3 4052s # Test 4 4052s # Test 5 4052s # Test 6 4052s # Test 7 4052s # Test 8 4052s # Test 9 4052s # Test 10 4052s ok 4 /socket-listener/add-inet-port/listen-failures 4052s # End of add-inet-port tests 4052s # End of socket-listener tests 4052s TAP version 14 4052s # random seed: R02Sef9262f94f587781cd016ef1264f0220 4052s 1..2 4052s # Start of gnotification tests 4052s ok - glib/gnotification.test 4052s ok 1 /gnotification/basic 4052s ok 2 /gnotification/properties 4052s # End of gnotification tests 4052s # Running test: glib/gdbus-subscribe.test 4052s TAP version 14 4052s # random seed: R02S55d9eba665c96cec702a90d3e7a1a0fe 4052s 1..24 4052s # Start of gdbus tests 4052s # Start of subscribe tests 4052s # Start of conn tests 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/simple/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/simple/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/simple/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/simple/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/simple/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/simple/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/simple/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/simple/.dirs/runtime 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 4052s # Step 0: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 1: adding subscription 4052s # Sender: (any) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 2: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 2 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 4052s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 1 /gdbus/subscribe/conn/simple 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 4052s # Step 0: adding subscription 4052s # Sender: (any) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 1: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 2: emitting signal 4052s # Sender: service 2 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 3: emitting signal 4052s # Sender: service 4052s # Destination: subscriber :1.0 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 4: emitting signal 4052s # Sender: service 2 4052s # Destination: subscriber :1.0 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 1 4052s # Signal received from service 2 :1.2 4052s # Signal received from service 2 :1.2 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 2 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 3 4052s # Signal received from service 2 :1.2 4052s # Signal received from service 2 :1.2 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 4 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 4052s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 4052s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 4052s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/match_twice/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/match_twice/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/match_twice/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/match_twice/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/match_twice/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/match_twice/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/match_twice/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/match_twice/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 4052s # Step 0: adding subscription 4052s # Sender: service :1.1 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 1: adding subscription 4052s # Sender: (any) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: (any) 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 2: adding subscription 4052s # Sender: (any) 4052s # Path: (any) 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 3: adding subscription 4052s # Sender: service :1.1 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 4: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 4 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 4 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 4 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 4 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 3 /gdbus/subscribe/conn/match_twice 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 4052s # Step 0: adding subscription 4052s # Sender: service :1.1 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 1: emitting signal 4052s # Sender: attacker 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 2: emitting signal 4052s # Sender: attacker 4052s # Destination: subscriber :1.0 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 3: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 3 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 4052s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 4052s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 4052s # Step 0: adding subscription 4052s # Sender: :0.this.had.better.not.exist 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 1: emitting signal 4052s # Sender: attacker 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 2: emitting signal 4052s # Sender: attacker 4052s # Destination: subscriber :1.0 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 4052s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /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 4052s # Step 0: claiming bus name 4052s # Name: org.gtk.Test.AlreadyOwned 4052s # Owner: service 4052s # Step 1: adding subscription 4052s # Sender: org.gtk.Test.AlreadyOwned 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 2: adding subscription 4052s # Sender: org.gtk.Test.OwnedLater 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 3: emitting signal 4052s # Sender: attacker 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 4: emitting signal 4052s # Sender: attacker 4052s # Destination: subscriber :1.0 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 5: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 6: claiming bus name 4052s # Name: org.gtk.Test.OwnedLater 4052s # Owner: service 4052s # Step 7: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 5 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 7 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via connection 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 7 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 4052s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 4052s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 4052s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 4052s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 4052s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 4052s # Step 0: adding subscription 4052s # Sender: org.freedesktop.DBus 4052s # Path: /org/freedesktop/DBus 4052s # Interface: org.freedesktop.DBus 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Waiting for AddMatch to be processed 4052s # Step 1: emitting signal 4052s # Sender: attacker 4052s # Destination: (broadcast) 4052s # Path: /org/freedesktop/DBus 4052s # Interface: org.freedesktop.DBus 4052s # Member: NameOwnerChanged 4052s # String argument 0: would I lie to you? 4052s # Waiting for signal to reach message bus 4052s # Step 2: emitting signal 4052s # Sender: attacker 4052s # Destination: subscriber :1.0 4052s # Path: /org/freedesktop/DBus 4052s # Interface: org.freedesktop.DBus 4052s # Member: NameOwnerChanged 4052s # Waiting for signal to reach message bus 4052s # Step 3: claiming bus name 4052s # Name: org.gtk.Test.OwnedLater 4052s # Owner: service 4052s # Signal received from message bus org.freedesktop.DBus 4052s # Signal received from (unused) org.freedesktop.DBus via connection 4052s # Path: /org/freedesktop/DBus 4052s # Interface: org.freedesktop.DBus 4052s # Member: NameOwnerChanged 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 4052s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 4052s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 4052s # Step 0: claiming bus name 4052s # Name: org.gtk.Test.AlreadyOwned 4052s # Owner: service 4052s # Step 1: adding subscription 4052s # Sender: org.gtk.Test.AlreadyOwned 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via connection 4052s # Immediately unsubscribing 4052s # Waiting for AddMatch to be processed 4052s # Step 2: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 4052s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 4052s # End of conn tests 4052s # Start of proxy tests 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/simple/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/simple/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/simple/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/simple/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/simple/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/simple/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/simple/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/simple/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 4052s # Step 0: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 1: adding subscription 4052s # Sender: (any) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Cannot subscribe via proxy: no bus name 4052s # Waiting for AddMatch to be processed 4052s # Step 2: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 4052s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 9 /gdbus/subscribe/proxy/simple 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 4052s # Step 0: adding subscription 4052s # Sender: (any) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Cannot subscribe via proxy: no bus name 4052s # Waiting for AddMatch to be processed 4052s # Step 1: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 2: emitting signal 4052s # Sender: service 2 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 3: emitting signal 4052s # Sender: service 4052s # Destination: subscriber :1.0 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 4: emitting signal 4052s # Sender: service 2 4052s # Destination: subscriber :1.0 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 4052s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 4052s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 4052s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/match_twice/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/match_twice/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/match_twice/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/match_twice/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/match_twice/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/match_twice/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 4052s # Step 0: adding subscription 4052s # Sender: service :1.1 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via proxy 4052s # Waiting for AddMatch to be processed 4052s # Step 1: adding subscription 4052s # Sender: (any) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: (any) 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Cannot subscribe via proxy: no bus name 4052s # Waiting for AddMatch to be processed 4052s # Step 2: adding subscription 4052s # Sender: (any) 4052s # Path: (any) 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Cannot subscribe via proxy: no bus name 4052s # Waiting for AddMatch to be processed 4052s # Step 3: adding subscription 4052s # Sender: service :1.1 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via proxy 4052s # Waiting for AddMatch to be processed 4052s # Step 4: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via proxy 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 4 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via proxy 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 4 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 11 /gdbus/subscribe/proxy/match_twice 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 4052s # Step 0: adding subscription 4052s # Sender: service :1.1 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via proxy 4052s # Waiting for AddMatch to be processed 4052s # Step 1: emitting signal 4052s # Sender: attacker 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 2: emitting signal 4052s # Sender: attacker 4052s # Destination: subscriber :1.0 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 3: emitting signal 4052s # Sender: service 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Signal received from service :1.1 4052s # Signal received from service :1.1 via proxy 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Sent in step: 3 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 4052s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 4052s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 4052s # Step 0: adding subscription 4052s # Sender: :0.this.had.better.not.exist 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: (any) 4052s # String argument 0: (any) 4052s # Flags: 0 4052s # Subscribing via proxy 4052s # Waiting for AddMatch to be processed 4052s # Step 1: emitting signal 4052s # Sender: attacker 4052s # Destination: (broadcast) 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Step 2: emitting signal 4052s # Sender: attacker 4052s # Destination: subscriber :1.0 4052s # Path: /org/gtk/GDBus/ExampleInterface 4052s # Interface: org.gtk.GDBus.ExampleInterface 4052s # Member: Foo 4052s # Argument 0: (not a string) 4052s # Waiting for signal to reach message bus 4052s # Received Finished signal from subscriber :1.0 4052s # Received Finished signal from service :1.1 4052s # Received Finished signal from service 2 :1.2 4052s # Received Finished signal from attacker :1.3 4052s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 4052s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 4052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 4052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4052s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4052s # subscriber is :1.0 4052s # service is :1.1 4052s # service 2 is :1.2 4052s # attacker is :1.3 4052s # Waiting for AddMatch to be processed 4052s # /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 4052s # Step 0: claiming bus name 4053s # Name: org.gtk.Test.AlreadyOwned 4053s # Owner: service 4053s # Step 1: adding subscription 4053s # Sender: org.gtk.Test.AlreadyOwned 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 2: adding subscription 4053s # Sender: org.gtk.Test.OwnedLater 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 3: emitting signal 4053s # Sender: attacker 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 4: emitting signal 4053s # Sender: attacker 4053s # Destination: subscriber :1.0 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 5: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 6: claiming bus name 4053s # Name: org.gtk.Test.OwnedLater 4053s # Owner: service 4053s # Step 7: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 5 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 7 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 7 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 4053s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4053s # subscriber is :1.0 4053s # service is :1.1 4053s # service 2 is :1.2 4053s # attacker is :1.3 4053s # Waiting for AddMatch to be processed 4053s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 4053s # Step 0: adding subscription 4053s # Sender: org.freedesktop.DBus 4053s # Path: /org/freedesktop/DBus 4053s # Interface: org.freedesktop.DBus 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 1: emitting signal 4053s # Sender: attacker 4053s # Destination: (broadcast) 4053s # Path: /org/freedesktop/DBus 4053s # Interface: org.freedesktop.DBus 4053s # Member: NameOwnerChanged 4053s # String argument 0: would I lie to you? 4053s # Waiting for signal to reach message bus 4053s # Step 2: emitting signal 4053s # Sender: attacker 4053s # Destination: subscriber :1.0 4053s # Path: /org/freedesktop/DBus 4053s # Interface: org.freedesktop.DBus 4053s # Member: NameOwnerChanged 4053s # Waiting for signal to reach message bus 4053s # Step 3: claiming bus name 4053s # Name: org.gtk.Test.OwnedLater 4053s # Owner: service 4053s # Signal received from message bus org.freedesktop.DBus 4053s # Signal received from (unused) org.freedesktop.DBus via proxy 4053s # Path: /org/freedesktop/DBus 4053s # Interface: org.freedesktop.DBus 4053s # Member: NameOwnerChanged 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 4053s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4053s # subscriber is :1.0 4053s # service is :1.1 4053s # service 2 is :1.2 4053s # attacker is :1.3 4053s # Waiting for AddMatch to be processed 4053s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 4053s # Step 0: claiming bus name 4053s # Name: org.gtk.Test.AlreadyOwned 4053s # Owner: service 4053s # Step 1: adding subscription 4053s # Sender: org.gtk.Test.AlreadyOwned 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 2: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 2 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 4053s # End of proxy tests 4053s # Start of parallel tests 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/simple/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/simple/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/simple/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/simple/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/simple/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/simple/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/simple/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/simple/.dirs/runtime 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4053s # subscriber is :1.0 4053s # service is :1.1 4053s # service 2 is :1.2 4053s # attacker is :1.3 4053s # Waiting for AddMatch to be processed 4053s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 4053s # Step 0: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 1: adding subscription 4053s # Sender: (any) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Cannot subscribe via proxy: no bus name 4053s # Waiting for AddMatch to be processed 4053s # Step 2: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 2 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 4053s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 4053s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 17 /gdbus/subscribe/parallel/simple 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4053s # subscriber is :1.0 4053s # service is :1.1 4053s # service 2 is :1.2 4053s # attacker is :1.3 4053s # Waiting for AddMatch to be processed 4053s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 4053s # Step 0: adding subscription 4053s # Sender: (any) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Cannot subscribe via proxy: no bus name 4053s # Waiting for AddMatch to be processed 4053s # Step 1: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 2: emitting signal 4053s # Sender: service 2 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 3: emitting signal 4053s # Sender: service 4053s # Destination: subscriber :1.0 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 4: emitting signal 4053s # Sender: service 2 4053s # Destination: subscriber :1.0 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 1 4053s # Signal received from service 2 :1.2 4053s # Signal received from service 2 :1.2 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 2 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 3 4053s # Signal received from service 2 :1.2 4053s # Signal received from service 2 :1.2 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 4 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 4053s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 4053s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 4053s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 4053s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/match_twice/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/match_twice/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/match_twice/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/match_twice/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/match_twice/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/match_twice/.dirs/runtime 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4053s # subscriber is :1.0 4053s # service is :1.1 4053s # service 2 is :1.2 4053s # attacker is :1.3 4053s # Waiting for AddMatch to be processed 4053s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 4053s # Step 0: adding subscription 4053s # Sender: service :1.1 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 1: adding subscription 4053s # Sender: (any) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: (any) 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Cannot subscribe via proxy: no bus name 4053s # Waiting for AddMatch to be processed 4053s # Step 2: adding subscription 4053s # Sender: (any) 4053s # Path: (any) 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Cannot subscribe via proxy: no bus name 4053s # Waiting for AddMatch to be processed 4053s # Step 3: adding subscription 4053s # Sender: service :1.1 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 4: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 4 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 4 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 4 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 4 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 4 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 4 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 4053s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 19 /gdbus/subscribe/parallel/match_twice 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4053s # subscriber is :1.0 4053s # service is :1.1 4053s # service 2 is :1.2 4053s # attacker is :1.3 4053s # Waiting for AddMatch to be processed 4053s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 4053s # Step 0: adding subscription 4053s # Sender: service :1.1 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 1: emitting signal 4053s # Sender: attacker 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 2: emitting signal 4053s # Sender: attacker 4053s # Destination: subscriber :1.0 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 3: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 3 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 3 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 4053s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 4053s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 4053s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4053s # subscriber is :1.0 4053s # service is :1.1 4053s # service 2 is :1.2 4053s # attacker is :1.3 4053s # Waiting for AddMatch to be processed 4053s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 4053s # Step 0: adding subscription 4053s # Sender: :0.this.had.better.not.exist 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 1: emitting signal 4053s # Sender: attacker 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 2: emitting signal 4053s # Sender: attacker 4053s # Destination: subscriber :1.0 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 4053s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 4053s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4053s # subscriber is :1.0 4053s # service is :1.1 4053s # service 2 is :1.2 4053s # attacker is :1.3 4053s # Waiting for AddMatch to be processed 4053s # /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 4053s # Step 0: claiming bus name 4053s # Name: org.gtk.Test.AlreadyOwned 4053s # Owner: service 4053s # Step 1: adding subscription 4053s # Sender: org.gtk.Test.AlreadyOwned 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 2: adding subscription 4053s # Sender: org.gtk.Test.OwnedLater 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 3: emitting signal 4053s # Sender: attacker 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 4: emitting signal 4053s # Sender: attacker 4053s # Destination: subscriber :1.0 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 5: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Step 6: claiming bus name 4053s # Name: org.gtk.Test.OwnedLater 4053s # Owner: service 4053s # Step 7: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 5 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 5 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 7 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 7 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via connection 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 7 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 7 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 4053s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 4053s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 4053s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 4053s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 4053s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 4053s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 4053s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4053s # subscriber is :1.0 4053s # service is :1.1 4053s # service 2 is :1.2 4053s # attacker is :1.3 4053s # Waiting for AddMatch to be processed 4053s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 4053s # Step 0: adding subscription 4053s # Sender: org.freedesktop.DBus 4053s # Path: /org/freedesktop/DBus 4053s # Interface: org.freedesktop.DBus 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 1: emitting signal 4053s # Sender: attacker 4053s # Destination: (broadcast) 4053s # Path: /org/freedesktop/DBus 4053s # Interface: org.freedesktop.DBus 4053s # Member: NameOwnerChanged 4053s # String argument 0: would I lie to you? 4053s # Waiting for signal to reach message bus 4053s # Step 2: emitting signal 4053s # Sender: attacker 4053s # Destination: subscriber :1.0 4053s # Path: /org/freedesktop/DBus 4053s # Interface: org.freedesktop.DBus 4053s # Member: NameOwnerChanged 4053s # Waiting for signal to reach message bus 4053s # Step 3: claiming bus name 4053s # Name: org.gtk.Test.OwnedLater 4053s # Owner: service 4053s # Signal received from message bus org.freedesktop.DBus 4053s # Signal received from (unused) org.freedesktop.DBus via connection 4053s # Path: /org/freedesktop/DBus 4053s # Interface: org.freedesktop.DBus 4053s # Member: NameOwnerChanged 4053s # Signal received from message bus org.freedesktop.DBus 4053s # Signal received from (unused) org.freedesktop.DBus via proxy 4053s # Path: /org/freedesktop/DBus 4053s # Interface: org.freedesktop.DBus 4053s # Member: NameOwnerChanged 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 4053s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 4053s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 4053s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 4053s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_OOS3J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4053s # subscriber is :1.0 4053s # service is :1.1 4053s # service 2 is :1.2 4053s # attacker is :1.3 4053s # Waiting for AddMatch to be processed 4053s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 4053s # Step 0: claiming bus name 4053s # Name: org.gtk.Test.AlreadyOwned 4053s # Owner: service 4053s # Step 1: adding subscription 4053s # Sender: org.gtk.Test.AlreadyOwned 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: (any) 4053s # String argument 0: (any) 4053s # Flags: 0 4053s # Subscribing via connection 4053s # Immediately unsubscribing 4053s # Subscribing via proxy 4053s # Waiting for AddMatch to be processed 4053s # Step 2: emitting signal 4053s # Sender: service 4053s # Destination: (broadcast) 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Waiting for signal to reach message bus 4053s # Signal received from service :1.1 4053s # Signal received from service :1.1 via proxy 4053s # Path: /org/gtk/GDBus/ExampleInterface 4053s # Interface: org.gtk.GDBus.ExampleInterface 4053s # Member: Foo 4053s # Argument 0: (not a string) 4053s # Sent in step: 2 4053s # Received Finished signal from subscriber :1.0 4053s # Received Finished signal from service :1.1 4053s # Received Finished signal from service 2 :1.2 4053s # Received Finished signal from attacker :1.3 4053s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 4053s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 4053s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 4053s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4053s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 4053s # End of parallel tests 4053s # End of subscribe tests 4053s # End of gdbus tests 4053s ok - glib/gdbus-subscribe.test 4053s # Running test: glib/option-argv0.test 4053s ok - glib/option-argv0.test 4053s TAP version 14 4053s # random seed: R02Safde8c9450d971710011a6056c6396c1 4053s 1..1 4053s # Start of option tests 4053s ok 1 /option/argv0 4053s # End of option tests 4053s # Running test: glib/vfs.test 4053s ok - glib/vfs.test 4053s # Running test: glib/pathbuf.test 4053s TAP version 14 4053s # random seed: R02Safbe3c208d73c8c357f2789d2f6aa94c 4053s 1..3 4053s # Start of gvfs tests 4053s ok 1 /gvfs/local 4053s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4053s ok 2 /gvfs/register-scheme 4053s # Start of resource tests 4053s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 4053s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 4053s ok 3 /gvfs/resource/malformed-escaping 4053s # End of resource tests 4053s # End of gvfs tests 4053s TAP version 14 4053s # random seed: R02Seed9c9700074d0b60323a98b1598eda4 4053s 1..3 4053s # Start of pathbuf tests 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/init/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/init/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_4L3LK3/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_4L3LK3/pathbuf/init/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/init/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_4L3LK3/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_4L3LK3/pathbuf/init/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/init/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/init/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_4L3LK3/pathbuf/init/.dirs/runtime 4053s # Initializing empty path buf 4053s # Initializing with empty path 4053s # Initializing with full path 4053s # Initializing with no path 4053s # Allocating GPathBuf on the heap 4053s ok 1 /pathbuf/init 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/push-pop/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/push-pop/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_4L3LK3/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_4L3LK3/pathbuf/push-pop/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/push-pop/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_4L3LK3/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_4L3LK3/pathbuf/push-pop/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/push-pop/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/push-pop/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_4L3LK3/pathbuf/push-pop/.dirs/runtime 4053s # Pushing relative path component 4053s # Pushing absolute path component 4053s # Popping a path component 4053s # Can't pop the last element of a path buffer 4053s ok 2 /pathbuf/push-pop 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/filename-extension/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/filename-extension/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_4L3LK3/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_4L3LK3/pathbuf/filename-extension/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/filename-extension/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_4L3LK3/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_4L3LK3/pathbuf/filename-extension/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/filename-extension/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_4L3LK3/pathbuf/filename-extension/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_4L3LK3/pathbuf/filename-extension/.dirs/runtime 4053s ok 3 /pathbuf/filename-extension 4053s # End of pathbuf tests 4053s ok - glib/pathbuf.test 4053s # Running test: glib/gdbus-close-pending.test 4053s TAP version 14 4053s # random seed: R02S43750b1558cfdba63c2768f5d16f939b 4053s 1..2 4053s # Start of gdbus tests 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/close-pending/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/close-pending/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_XQNMK3/gdbus/close-pending/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/close-pending/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_XQNMK3/gdbus/close-pending/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/close-pending/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/close-pending/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/close-pending/.dirs/runtime 4053s ok 1 /gdbus/close-pending 4053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/unref-pending/.dirs/home 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/unref-pending/.dirs/cache 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_XQNMK3/gdbus/unref-pending/.dirs/system-config2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/unref-pending/.dirs/config 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_XQNMK3/gdbus/unref-pending/.dirs/system-data2 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/unref-pending/.dirs/data 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/unref-pending/.dirs/state 4053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_XQNMK3/gdbus/unref-pending/.dirs/runtime 4053s ok - glib/gdbus-close-pending.test 4053s # Running test: glib/trash.test 4053s ok - glib/trash.test 4053s # Running test: glib/unix-mounts.test 4053s ok 2 /gdbus/unref-pending 4053s # End of gdbus tests 4053s TAP version 14 4053s # random seed: R02S2212ef8293cbfcaba56bb77a6111b048 4053s 1..3 4053s # Start of trash tests 4053s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 4053s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4053s # File: /tmp/test-trashIBKDK3 (parent st_dev: 64769) 4053s # Home: /home/ubuntu (st_dev: 64769) 4053s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 4053s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 4053s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 4053s ok 3 /trash/long-filename 4053s # End of trash tests 4053s TAP version 14 4053s # random seed: R02Sc1c8864f3139c0c505e93c1ecca76ff3 4053s 1..4 4053s # Start of unix-mounts tests 4053s ok 1 /unix-mounts/is-system-fs-type 4053s ok 2 /unix-mounts/is-system-device-path 4053s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 4053s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 4053s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 4053s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 4053s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 4053s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 4053s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 4053s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 4053s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 4053s ok 3 /unix-mounts/get-mount-points 4053s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 4053s ok 4 /unix-mounts/get-mount-entries 4053s # End of unix-mounts tests 4053s ok - glib/unix-mounts.test 4053s # Running test: glib/thread-pool-slow.test 4053s TAP version 14 4053s # random seed: R02Sd6dbec7ffe0ec35e03f88354f44e03ef 4053s 1..7 4053s # Start of threadpool tests 4053s ok 1 /threadpool/functions 4054s ok 2 /threadpool/stop-unused 4054s # slow test /threadpool/stop-unused executed in 0.51 secs 4054s ok 3 /threadpool/pools 4054s # [unsorted] ===> pushed new thread with id:74, number of threads:1, unprocessed:1 4054s # [unsorted] ===> pushed new thread with id:42, number of threads:2, unprocessed:2 4054s # [unsorted] ===> pushed new thread with id:100, number of threads:3, unprocessed:3 4054s # [unsorted] ===> pushed new thread with id:57, number of threads:4, unprocessed:4 4054s # [unsorted] ===> pushed new thread with id:10, number of threads:5, unprocessed:5 4054s # [unsorted] ===> pushed new thread with id:46, number of threads:6, unprocessed:5 4054s # [unsorted] ===> pushed new thread with id:48, number of threads:7, unprocessed:5 4054s # [unsorted] ===> pushed new thread with id:22, number of threads:8, unprocessed:5 4054s # [unsorted] ===> pushed new thread with id:62, number of threads:9, unprocessed:5 4054s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:5 4054s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:5 4054s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:5 4054s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:6 4054s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:7 4054s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:8 4054s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:9 4054s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:10 4054s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:11 4054s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:12 4054s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:13 4054s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:14 4054s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:15 4054s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:16 4054s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:17 4054s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:18 4054s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:19 4054s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:20 4054s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:21 4054s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:22 4054s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:23 4054s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:24 4054s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:25 4054s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:26 4054s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:27 4054s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:28 4054s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:29 4054s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:30 4054s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:31 4054s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:32 4054s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:33 4054s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:34 4054s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:35 4054s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:36 4054s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:37 4054s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:38 4054s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:39 4054s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:40 4054s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:41 4054s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:42 4054s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:43 4054s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:44 4054s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:45 4054s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:46 4054s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:47 4054s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:48 4054s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:49 4054s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:50 4054s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:51 4054s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:52 4054s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:53 4054s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:54 4054s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:55 4054s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:56 4054s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:57 4054s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:58 4054s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:59 4054s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:60 4054s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:61 4054s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:62 4054s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:63 4054s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:64 4054s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:65 4054s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:66 4054s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:67 4054s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:68 4054s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:69 4054s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:70 4054s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:71 4054s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:72 4054s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:73 4054s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:74 4054s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:75 4054s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:76 4054s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:77 4054s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:78 4054s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:79 4054s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:80 4054s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:81 4054s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:82 4054s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:83 4054s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:84 4054s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:85 4054s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:86 4054s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:87 4054s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:88 4054s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:89 4054s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:90 4054s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:91 4054s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:92 4054s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:93 4054s ok 4 /threadpool/no-sort 4054s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:1 4054s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:2 4054s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:3 4054s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:4 4054s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:5 4054s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:6 4054s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:7 4054s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:8 4054s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:9 4054s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:10 4054s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:11 4054s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:12 4054s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:13 4054s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:14 4054s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:15 4054s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:16 4054s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:17 4054s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:18 4054s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:19 4054s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:20 4054s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:21 4054s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:22 4054s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:23 4054s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:24 4054s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:25 4054s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:26 4054s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:27 4054s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:28 4054s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:29 4054s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:30 4054s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:31 4054s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:32 4054s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:33 4054s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:34 4054s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:35 4054s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:36 4054s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:37 4054s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:38 4054s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:39 4054s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:40 4054s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:41 4054s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:42 4054s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:43 4054s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:44 4054s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:45 4054s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:46 4054s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:47 4054s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:48 4054s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:49 4054s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:50 4054s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:51 4054s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:52 4054s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:53 4054s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:54 4054s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:55 4054s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:56 4054s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:57 4054s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:58 4054s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:59 4054s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:60 4054s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:61 4054s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:62 4054s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:63 4054s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:64 4054s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:65 4054s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:66 4054s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:67 4054s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:68 4054s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:69 4054s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:70 4054s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:71 4054s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:72 4054s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:73 4054s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:74 4054s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:75 4054s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:76 4054s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:77 4054s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:78 4054s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:79 4054s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:80 4054s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:81 4054s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:82 4054s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:83 4054s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:84 4054s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:85 4054s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:86 4054s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:87 4054s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:88 4054s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:89 4054s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:90 4054s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:91 4054s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:92 4054s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:93 4054s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:94 4054s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:95 4054s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:96 4054s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:97 4054s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:98 4054s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:99 4054s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:100 4054s # Starting thread pool processing 4054s ok 5 /threadpool/sort 4054s # Executing: glib/thread-pool-slow.test 4054s ok 6 /threadpool/stop-unused-multiple 4054s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 4054s # Pool idle thread count: 0, unprocessed jobs: 43 4055s # Pool idle thread count: 0, unprocessed jobs: 0 4055s # Pool idle thread count: 0, unprocessed jobs: 0 4055s # Pool idle thread count: 10, unprocessed jobs: 0 4055s # Pool idle thread count: 10, unprocessed jobs: 0 4056s # Pool idle thread count: 10, unprocessed jobs: 0 4056s # Pool idle thread count: 10, unprocessed jobs: 0 4056s # Pool idle thread count: 10, unprocessed jobs: 0 4056s # Pool idle thread count: 10, unprocessed jobs: 0 4057s # Pool idle thread count: 10, unprocessed jobs: 0 4057s # Pool idle thread count: 10, unprocessed jobs: 0 4057s # Pool idle thread count: 10, unprocessed jobs: 0 4057s # Pool idle thread count: 10, unprocessed jobs: 0 4058s # Pool idle thread count: 10, unprocessed jobs: 0 4058s # Pool idle thread count: 10, unprocessed jobs: 0 4058s # Pool idle thread count: 10, unprocessed jobs: 0 4058s # Pool idle thread count: 10, unprocessed jobs: 0 4059s # Pool idle thread count: 10, unprocessed jobs: 0 4059s # Pool idle thread count: 10, unprocessed jobs: 0 4059s # Executing: glib/thread-pool-slow.test 4059s # Pool idle thread count: 10, unprocessed jobs: 0 4059s # Pool idle thread count: 10, unprocessed jobs: 0 4060s # Pool idle thread count: 10, unprocessed jobs: 0 4060s # Pool idle thread count: 10, unprocessed jobs: 0 4060s # Pool idle thread count: 10, unprocessed jobs: 0 4060s # Pool idle thread count: 10, unprocessed jobs: 0 4061s # Pool idle thread count: 10, unprocessed jobs: 0 4061s # Pool idle thread count: 10, unprocessed jobs: 0 4061s # Pool idle thread count: 10, unprocessed jobs: 0 4061s # Pool idle thread count: 10, unprocessed jobs: 0 4062s # Pool idle thread count: 10, unprocessed jobs: 0 4062s # Pool idle thread count: 10, unprocessed jobs: 0 4062s # Pool idle thread count: 10, unprocessed jobs: 0 4062s # Pool idle thread count: 10, unprocessed jobs: 0 4063s # Pool idle thread count: 10, unprocessed jobs: 0 4063s # Pool idle thread count: 10, unprocessed jobs: 0 4063s # Pool idle thread count: 10, unprocessed jobs: 2 4063s # Pool idle thread count: 10, unprocessed jobs: 2 4063s # Pool idle thread count: 8, unprocessed jobs: 0 4063s # Pool idle thread count: 8, unprocessed jobs: 0 4064s # Pool idle thread count: 10, unprocessed jobs: 0 4064s # Pool idle thread count: 10, unprocessed jobs: 0 4064s # Executing: glib/thread-pool-slow.test 4064s # Pool idle thread count: 10, unprocessed jobs: 0 4064s # Pool idle thread count: 10, unprocessed jobs: 0 4065s # Pool idle thread count: 10, unprocessed jobs: 0 4065s # Pool idle thread count: 10, unprocessed jobs: 0 4065s # Pool idle thread count: 2, unprocessed jobs: 0 4065s # Pool idle thread count: 2, unprocessed jobs: 0 4066s # Pool idle thread count: 2, unprocessed jobs: 0 4066s # Pool idle thread count: 2, unprocessed jobs: 0 4066s # Pool idle thread count: 2, unprocessed jobs: 0 4066s # Pool idle thread count: 2, unprocessed jobs: 0 4067s # Pool idle thread count: 2, unprocessed jobs: 0 4067s # Pool idle thread count: 2, unprocessed jobs: 0 4067s # Pool idle thread count: 2, unprocessed jobs: 0 4067s # Pool idle thread count: 2, unprocessed jobs: 0 4068s # Pool idle thread count: 2, unprocessed jobs: 0 4068s # Pool idle thread count: 2, unprocessed jobs: 0 4068s # Pool idle thread count: 2, unprocessed jobs: 0 4068s # Pool idle thread count: 2, unprocessed jobs: 0 4069s # Pool idle thread count: 2, unprocessed jobs: 0 4069s # Pool idle thread count: 2, unprocessed jobs: 0 4069s # Executing: glib/thread-pool-slow.test 4069s # Pool idle thread count: 2, unprocessed jobs: 0 4069s # Pool idle thread count: 2, unprocessed jobs: 0 4070s # Pool idle thread count: 2, unprocessed jobs: 0 4070s # Pool idle thread count: 2, unprocessed jobs: 0 4070s # Pool idle thread count: 2, unprocessed jobs: 0 4070s # Pool idle thread count: 2, unprocessed jobs: 0 4071s # Pool idle thread count: 2, unprocessed jobs: 0 4071s # Pool idle thread count: 2, unprocessed jobs: 0 4071s # Pool idle thread count: 2, unprocessed jobs: 0 4071s # Pool idle thread count: 2, unprocessed jobs: 0 4072s # Pool idle thread count: 2, unprocessed jobs: 0 4072s # Pool idle thread count: 2, unprocessed jobs: 0 4072s # Pool idle thread count: 2, unprocessed jobs: 0 4072s # Pool idle thread count: 2, unprocessed jobs: 0 4073s # Pool idle thread count: 2, unprocessed jobs: 0 4073s # Pool idle thread count: 2, unprocessed jobs: 0 4073s # Pool idle thread count: 2, unprocessed jobs: 0 4073s # Pool idle thread count: 2, unprocessed jobs: 0 4074s ok - glib/thread-pool-slow.test 4074s ok 7 /threadpool/idle-time 4074s # slow test /threadpool/idle-time executed in 19.52 secs 4074s # End of threadpool tests 4074s # Running test: glib/markup-parse.test 4074s TAP version 14 4074s # random seed: R02S44664664f076a99d09ef132cb645869c 4074s 1..71 4074s # Start of markup tests 4074s # Start of parse tests 4074s ok 1 /markup/parse/valid-11.gmarkup 4074s ok 2 /markup/parse/fail-24.gmarkup 4074s ok 3 /markup/parse/fail-53.gmarkup 4074s ok 4 /markup/parse/valid-4.gmarkup 4074s ok 5 /markup/parse/fail-7.gmarkup 4074s ok 6 /markup/parse/fail-19.gmarkup 4074s ok 7 /markup/parse/fail-1.gmarkup 4074s ok 8 /markup/parse/fail-13.gmarkup 4074s ok 9 /markup/parse/fail-36.gmarkup 4074s ok 10 /markup/parse/fail-48.gmarkup 4074s ok 11 /markup/parse/fail-27.gmarkup 4074s ok 12 /markup/parse/fail-49.gmarkup 4074s ok 13 /markup/parse/fail-52.gmarkup 4074s ok 14 /markup/parse/fail-54.gmarkup 4074s ok - glib/markup-parse.test 4074s # Running test: glib/function-info.test 4074s ok - glib/function-info.test 4074s # Running test: glib/resources.test 4074s ok 15 /markup/parse/valid-12.gmarkup 4074s ok 16 /markup/parse/fail-22.gmarkup 4074s ok 17 /markup/parse/fail-34.gmarkup 4074s ok 18 /markup/parse/valid-15.gmarkup 4074s ok 19 /markup/parse/fail-5.gmarkup 4074s ok 20 /markup/parse/fail-20.gmarkup 4074s ok 21 /markup/parse/fail-30.gmarkup 4074s ok 22 /markup/parse/valid-10.gmarkup 4074s ok 23 /markup/parse/valid-5.gmarkup 4074s ok 24 /markup/parse/fail-18.gmarkup 4074s ok 25 /markup/parse/fail-31.gmarkup 4074s ok 26 /markup/parse/valid-3.gmarkup 4074s ok 27 /markup/parse/valid-14.gmarkup 4074s ok 28 /markup/parse/fail-44.gmarkup 4074s ok 29 /markup/parse/fail-40.gmarkup 4074s ok 30 /markup/parse/fail-47.gmarkup 4074s ok 31 /markup/parse/fail-9.gmarkup 4074s ok 32 /markup/parse/valid-13.gmarkup 4074s ok 33 /markup/parse/fail-46.gmarkup 4074s ok 34 /markup/parse/fail-33.gmarkup 4074s ok 35 /markup/parse/valid-7.gmarkup 4074s ok 36 /markup/parse/fail-23.gmarkup 4074s ok 37 /markup/parse/fail-3.gmarkup 4074s ok 38 /markup/parse/fail-37.gmarkup 4074s ok 39 /markup/parse/fail-51.gmarkup 4074s ok 40 /markup/parse/fail-14.gmarkup 4074s ok 41 /markup/parse/fail-45.gmarkup 4074s ok 42 /markup/parse/fail-42.gmarkup 4074s ok 43 /markup/parse/valid-17.gmarkup 4074s ok 44 /markup/parse/fail-21.gmarkup 4074s ok 45 /markup/parse/fail-10.gmarkup 4074s ok 46 /markup/parse/fail-17.gmarkup 4074s ok 47 /markup/parse/valid-2.gmarkup 4074s ok 48 /markup/parse/fail-25.gmarkup 4074s ok 49 /markup/parse/fail-29.gmarkup 4074s ok 50 /markup/parse/fail-8.gmarkup 4074s ok 51 /markup/parse/fail-38.gmarkup 4074s ok 52 /markup/parse/fail-15.gmarkup 4074s ok 53 /markup/parse/valid-1.gmarkup 4074s ok 54 /markup/parse/fail-43.gmarkup 4074s ok 55 /markup/parse/valid-9.gmarkup 4074s ok 56 /markup/parse/fail-11.gmarkup 4074s ok 57 /markup/parse/fail-28.gmarkup 4074s ok 58 /markup/parse/valid-16.gmarkup 4074s ok 59 /markup/parse/valid-8.gmarkup 4074s ok 60 /markup/parse/fail-35.gmarkup 4074s ok 61 /markup/parse/fail-26.gmarkup 4074s ok 62 /markup/parse/fail-6.gmarkup 4074s ok 63 /markup/parse/fail-16.gmarkup 4074s ok 64 /markup/parse/valid-6.gmarkup 4074s ok 65 /markup/parse/fail-4.gmarkup 4074s ok 66 /markup/parse/fail-32.gmarkup 4074s ok 67 /markup/parse/fail-50.gmarkup 4074s ok 68 /markup/parse/fail-39.gmarkup 4074s ok 69 /markup/parse/fail-12.gmarkup 4074s ok 70 /markup/parse/fail-2.gmarkup 4074s ok 71 /markup/parse/fail-41.gmarkup 4074s # End of parse tests 4074s # End of markup tests 4074s TAP version 14 4074s # random seed: R02S89e93b2571e3c505f3478396738ae947 4074s 1..1 4074s # Start of function-info tests 4074s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_TOEHK3/function-info/invoker/.dirs/home 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_TOEHK3/function-info/invoker/.dirs/cache 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_TOEHK3/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_TOEHK3/function-info/invoker/.dirs/system-config2 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_TOEHK3/function-info/invoker/.dirs/config 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_TOEHK3/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_TOEHK3/function-info/invoker/.dirs/system-data2 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_TOEHK3/function-info/invoker/.dirs/data 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_TOEHK3/function-info/invoker/.dirs/state 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_TOEHK3/function-info/invoker/.dirs/runtime 4074s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4074s # /function-info/invoker summary: Test preparing a function invoker 4074s ok 1 /function-info/invoker 4074s # End of function-info tests 4074s TAP version 14 4074s # random seed: R02Sd1c91d24f59666f17a0edcb7ad2ce6ba 4074s 1..19 4074s # Start of resource tests 4074s ok 1 /resource/file 4074s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4074s ok 2 /resource/file-path 4074s ok 3 /resource/data 4074s ok 4 /resource/data_unaligned 4074s ok 5 /resource/data-corrupt 4074s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 4074s ok 6 /resource/data-corrupt-compression 4074s ok 7 /resource/data-empty 4074s ok 8 /resource/registered 4074s ok 9 /resource/manual 4074s ok 10 /resource/manual2 4074s ok 11 /resource/automatic 4074s ok 12 /resource/module 4074s ok 13 /resource/binary-linked 4074s ok 14 /resource/64k 4074s GLib-GIO-Message: 01:04:01.848: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 4074s GLib-GIO-Message: 01:04:01.848: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 4074s GLib-GIO-Message: 01:04:01.848: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 4074s ok 15 /resource/overlay 4074s ok 16 /resource/digits 4074s ok 17 /resource/has-children 4074s # Start of uri tests 4074s ok 18 /resource/uri/query-info 4074s ok 19 /resource/uri/file 4074s # End of uri tests 4074s # End of resource tests 4074s TAP version 14 4074s # random seed: R02Saff8021d41e8c17e73da80ff4e5798f4 4074s 1..4 4074s # Start of C tests 4074s ok 1 /C/standard-89 4074s # End of C tests 4074s # Start of alignof tests 4074s ok 2 /alignof/fallback 4074s # End of alignof tests 4074s # Start of assert tests 4074s ok 3 /assert/static 4074s # End of assert tests 4074s # Start of struct tests 4074s ok 4 /struct/sizeof_member 4074s # End of struct tests 4074s ok - glib/resources.test 4074s # Running test: glib/macros-c-89.test 4074s ok - glib/macros-c-89.test 4074s # Running test: glib/filter-streams.test 4074s ok - glib/filter-streams.test 4074s TAP version 14 4074s # random seed: R02S9183df8943814a6205b3378b61a763b7 4074s 1..4 4074s # Start of filter-stream tests 4074s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 4074s ok 1 /filter-stream/input 4074s ok 2 /filter-stream/output 4074s ok 3 /filter-stream/async-input 4074s ok 4 /filter-stream/async-output 4074s # End of filter-stream tests 4074s # Running test: glib/asyncqueue.test 4074s TAP version 14 4074s # random seed: R02S474e88eaa3cdf0e26d09b122b7dec074 4074s 1..7 4074s # Start of asyncqueue tests 4074s ok 1 /asyncqueue/basics 4074s ok 2 /asyncqueue/sort 4074s ok 3 /asyncqueue/destroy 4074s ok 4 /asyncqueue/threads 4074s # Executing: glib/asyncqueue.test 4074s ok 5 /asyncqueue/timed 4074s ok 6 /asyncqueue/remove 4074s ok 7 /asyncqueue/push_front 4074s # End of asyncqueue tests 4074s ok - glib/asyncqueue.test 4074s # Running test: glib/thread-pool.test 4074s TAP version 14 4074s # random seed: R02Sd46bdfc68e431696d9ba39e3c524db0a 4074s 1..6 4074s # Start of thread_pool tests 4074s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3712 4074s ok 1 /thread_pool/pool_fail 4074s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 4074s ok 2 /thread_pool/shared 4074s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 4074s ok 3 /thread_pool/exclusive 4074s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 4074s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 4074s ok 4 /thread_pool/create_shared_after_exclusive 4074s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 4074s ok 5 /thread_pool/create_full 4074s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 4074s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 4074s ok 6 /thread_pool/create_exclusive_after_shared 4074s ok - glib/thread-pool.test 4074s # Running test: glib/portal-support-flatpak-full.test 4074s # End of thread_pool tests 4074s ok - glib/portal-support-flatpak-full.test 4074s # Running test: glib/gdbus-threading.test 4074s TAP version 14 4074s # random seed: R02S6cd465074ec3c12f16de675e06c4792e 4074s 1..1 4074s # Start of portal-support tests 4074s # Start of flatpak tests 4074s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/home 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/cache 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/system-config2 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/config 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/system-data2 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/data 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/state 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/runtime 4074s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_22A5J3/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 4074s ok 1 /portal-support/flatpak/full 4074s # End of flatpak tests 4074s # End of portal-support tests 4074s ok - glib/gdbus-threading.test 4074s # Running test: glib/type-flags.test 4074s TAP version 14 4074s # random seed: R02S0e09ad6b88a73ddcdfcb1ccdbd54f45c 4074s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 4074s TAP version 14 4074s ok - glib/type-flags.test 4074s # random seed: R02S3ab0dadbf0ee68e2b1dc7e98b5e727fe 4074s 1..4 4074s # Start of type tests 4074s # Start of flags tests 4074s ok 1 /type/flags/interface 4074s ok 2 /type/flags/final 4074s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 4074s ok 3 /type/flags/deprecated 4074s # Start of final tests 4074s ok 4 /type/flags/final/instance-check 4074s # End of final tests 4074s # End of flags tests 4074s # End of type tests 4074s # Running test: glib/gdbus-proxy-well-known-name.test 4074s TAP version 14 4074s # random seed: R02Sc9ce607aa70fc53216209b1deb87479a 4074s 1..1 4074s # Start of gdbus tests 4074s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_EUO5J3/gdbus/proxy-well-known-name/.dirs/home 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_EUO5J3/gdbus/proxy-well-known-name/.dirs/cache 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_EUO5J3/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_EUO5J3/gdbus/proxy-well-known-name/.dirs/system-config2 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_EUO5J3/gdbus/proxy-well-known-name/.dirs/config 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_EUO5J3/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_EUO5J3/gdbus/proxy-well-known-name/.dirs/system-data2 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_EUO5J3/gdbus/proxy-well-known-name/.dirs/data 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_EUO5J3/gdbus/proxy-well-known-name/.dirs/state 4074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_EUO5J3/gdbus/proxy-well-known-name/.dirs/runtime 4074s ok - glib/gdbus-proxy-well-known-name.test 4074s # Running test: glib/permission.test 4074s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4074s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4074s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4074s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4074s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4074s ok 1 /gdbus/proxy-well-known-name 4074s # End of gdbus tests 4074s TAP version 14 4074s # random seed: R02Sad7e6c27ac95631de99c986654ac4f43 4074s 1..1 4074s # Start of permission tests 4074s ok 1 /permission/simple 4074s # End of permission tests 4074s ok - glib/permission.test 4074s # Running test: glib/network-address.test 4074s TAP version 14 4074s # random seed: R02S89181114ade9e53aa847ca6f8ba4ae85 4074s 1..72 4074s # Start of network-address tests 4074s ok 1 /network-address/basic 4074s ok 2 /network-address/scope-id 4074s ok 3 /network-address/uri-scope-id 4074s ok 4 /network-address/to-string 4074s # Start of parse-host tests 4074s ok 5 /network-address/parse-host/0 4074s ok 6 /network-address/parse-host/1 4074s ok 7 /network-address/parse-host/2 4074s ok 8 /network-address/parse-host/3 4074s ok 9 /network-address/parse-host/4 4074s ok 10 /network-address/parse-host/5 4074s ok 11 /network-address/parse-host/6 4074s ok 12 /network-address/parse-host/7 4074s ok 13 /network-address/parse-host/8 4074s ok 14 /network-address/parse-host/9 4074s ok 15 /network-address/parse-host/10 4074s ok 16 /network-address/parse-host/11 4074s ok 17 /network-address/parse-host/12 4074s ok 18 /network-address/parse-host/13 4074s # End of parse-host tests 4074s # Start of parse-uri tests 4074s ok 19 /network-address/parse-uri/0 4074s ok 20 /network-address/parse-uri/1 4074s ok 21 /network-address/parse-uri/2 4074s ok 22 /network-address/parse-uri/3 4074s ok 23 /network-address/parse-uri/4 4074s ok 24 /network-address/parse-uri/5 4074s ok 25 /network-address/parse-uri/6 4074s ok 26 /network-address/parse-uri/7 4074s ok 27 /network-address/parse-uri/8 4074s ok 28 /network-address/parse-uri/9 4074s # End of parse-uri tests 4074s # Start of resolve-address tests 4074s # Input: 192.168.1.2 4074s ok 29 /network-address/resolve-address/0 4074s # Input: fe80::42 4074s ok 30 /network-address/resolve-address/1 4074s # Input: 192.168.1.2:80 4074s ok 31 /network-address/resolve-address/2 4074s # Input: [fe80::42] 4074s ok 32 /network-address/resolve-address/3 4074s # Input: [fe80::42]:80 4074s ok 33 /network-address/resolve-address/4 4074s # Input: 192.168.258 4074s ok 34 /network-address/resolve-address/5 4074s # Input: 192.11010306 4074s ok 35 /network-address/resolve-address/6 4074s # Input: 3232235778 4074s ok 36 /network-address/resolve-address/7 4074s # Input: 0300.0250.0001.0001 4074s ok 37 /network-address/resolve-address/8 4074s # Input: 0xC0.0xA8.0x01.0x02 4074s ok 38 /network-address/resolve-address/9 4074s # Input: 0xc0.0xa8.0x01.0x02 4074s ok 39 /network-address/resolve-address/10 4074s # Input: 0xc0a80102 4074s ok 40 /network-address/resolve-address/11 4074s # End of resolve-address tests 4074s # Start of loopback tests 4074s ok 41 /network-address/loopback/basic 4074s ok 42 /network-address/loopback/sync 4074s ok 43 /network-address/loopback/async 4074s # End of loopback tests 4074s # Start of localhost tests 4074s ok 44 /network-address/localhost/async 4074s ok 45 /network-address/localhost/sync 4074s # End of localhost tests 4074s # Start of happy-eyeballs tests 4074s ok 46 /network-address/happy-eyeballs/basic 4075s ok 47 /network-address/happy-eyeballs/parallel 4075s ok 48 /network-address/happy-eyeballs/slow-ipv4 4075s ok 49 /network-address/happy-eyeballs/slow-ipv6 4075s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 4076s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 4076s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 4076s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 4076s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 4076s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 4076s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 4076s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 4076s # /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. 4076s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 4076s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 4076s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 4076s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 4076s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 4076s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 4076s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 4076s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 4076s ok 57 /network-address/happy-eyeballs/both-error 4076s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 4076s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 4076s ok 58 /network-address/happy-eyeballs/both-error-delays-1 4076s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 4076s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 4076s ok 59 /network-address/happy-eyeballs/both-error-delays-2 4076s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 4076s ok 60 /network-address/happy-eyeballs/both-error-delays-3 4076s # End of happy-eyeballs tests 4076s # End of network-address tests 4076s # Start of gresolver tests 4076s # Start of resolve-address tests 4076s # Input: 192.168.1.2 4076s ok 61 /gresolver/resolve-address/0 4076s # Input: fe80::42 4076s ok 62 /gresolver/resolve-address/1 4076s # Input: 192.168.1.2:80 4076s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 192.168.1.2:80 4076s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 4076s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 4076s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 4076s # Error: Error resolving “192.168.1.2:80”: Name or service not known 4076s ok 63 /gresolver/resolve-address/2 4076s # Input: [fe80::42] 4076s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42] 4076s # Error: Error resolving “[fe80::42]”: Name or service not known 4076s ok 64 /gresolver/resolve-address/3 4076s # Input: [fe80::42]:80 4076s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42]:80 4076s # Error: Error resolving “[fe80::42]:80”: Name or service not known 4076s ok 65 /gresolver/resolve-address/4 4076s # Input: 192.168.258 4076s ok - glib/network-address.test 4076s # Running test: glib/portal-support-env-var.test 4076s ok - glib/portal-support-env-var.test 4076s # Running test: glib/debugcontroller.test 4076s ok - glib/debugcontroller.test 4076s # Running test: glib/win32-appinfo.test 4076s # Error: Error resolving “192.168.258”: Name or service not known 4076s ok 66 /gresolver/resolve-address/5 4076s # Input: 192.11010306 4076s # Error: Error resolving “192.11010306”: Name or service not known 4076s ok 67 /gresolver/resolve-address/6 4076s # Input: 3232235778 4076s # Error: Error resolving “3232235778”: Name or service not known 4076s ok 68 /gresolver/resolve-address/7 4076s # Input: 0300.0250.0001.0001 4076s # Error: Error resolving “0300.0250.0001.0001”: Name or service not known 4076s ok 69 /gresolver/resolve-address/8 4076s # Input: 0xC0.0xA8.0x01.0x02 4076s # Error: Error resolving “0xC0.0xA8.0x01.0x02”: Name or service not known 4076s ok 70 /gresolver/resolve-address/9 4076s # Input: 0xc0.0xa8.0x01.0x02 4076s # Error: Error resolving “0xc0.0xa8.0x01.0x02”: Name or service not known 4076s ok 71 /gresolver/resolve-address/10 4076s # Input: 0xc0a80102 4076s # Error: Error resolving “0xc0a80102”: Name or service not known 4076s ok 72 /gresolver/resolve-address/11 4076s # End of resolve-address tests 4076s # End of gresolver tests 4076s TAP version 14 4076s # random seed: R02S609a4e37e79eddc91533dc933871268f 4076s 1..1 4076s # Start of portal-support tests 4076s ok 1 /portal-support/env-var 4076s # End of portal-support tests 4076s TAP version 14 4076s # random seed: R02S5890900b27a2a1c1cd312f0a0357b87a 4076s 1..3 4076s # Start of debug-controller tests 4076s # Start of dbus tests 4076s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 4076s # GLib-GIO-DEBUG: Debug output enabled 4076s # GLib-GIO-DEBUG: Debug output disabled 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s ok 1 /debug-controller/dbus/basic 4076s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s ok 2 /debug-controller/dbus/duplicate 4076s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 4076s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 4076s # End of dbus tests 4076s # End of debug-controller tests 4076s TAP version 14 4076s # random seed: R02S6dbb7e8534a7b1671f97a6b71e475d88 4076s 1..5 4076s # Start of appinfo tests 4076s ok 1 /appinfo/utf16-strfuncs 4076s ok 2 /appinfo/win32-extract-executable 4076s ok 3 /appinfo/win32-rundll32-fixup 4076s ok 4 /appinfo/win32-parse-filename 4076s ok 5 /appinfo/win32-utf16-conversion-fail 4076s # Start of subprocess tests 4076s # End of subprocess tests 4076s # End of appinfo tests 4076s ok - glib/win32-appinfo.test 4076s # Running test: glib/data-input-stream.test 4076s TAP version 14 4076s # random seed: R02S64ed2732073e61a6c796a021a49152ff 4076s 1..10 4076s # Start of data-input-stream tests 4076s ok 1 /data-input-stream/basic 4076s ok 2 /data-input-stream/read-lines-LF 4076s ok 3 /data-input-stream/read-lines-LF-valid-utf8 4076s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 4076s ok 5 /data-input-stream/read-lines-CR 4076s ok 6 /data-input-stream/read-lines-CR-LF 4076s ok 7 /data-input-stream/read-lines-any 4076s ok 8 /data-input-stream/read-until 4076s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 4076s # Test vector 1: {"key": "value"}? and ? 4076s ok 9 /data-input-stream/read-upto 4076s ok 10 /data-input-stream/read-int 4076s # End of data-input-stream tests 4076s ok - glib/data-input-stream.test 4076s # Running test: glib/gdbus-method-invocation.test 4076s TAP version 14 4076s # random seed: R02S90ac4840b927332737b4cb60a5b52b89 4076s 1..1 4076s # Start of gdbus tests 4076s # Start of method-invocation tests 4076s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_ZSXDK3/gdbus/method-invocation/return/.dirs/home 4076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_ZSXDK3/gdbus/method-invocation/return/.dirs/cache 4076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_ZSXDK3/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_ZSXDK3/gdbus/method-invocation/return/.dirs/system-config2 4076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_ZSXDK3/gdbus/method-invocation/return/.dirs/config 4076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_ZSXDK3/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_ZSXDK3/gdbus/method-invocation/return/.dirs/system-data2 4076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_ZSXDK3/gdbus/method-invocation/return/.dirs/data 4076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_ZSXDK3/gdbus/method-invocation/return/.dirs/state 4076s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_ZSXDK3/gdbus/method-invocation/return/.dirs/runtime 4076s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 4076s # Calling org.freedesktop.DBus.Properties.Get 4076s # Calling org.freedesktop.DBus.Properties.Get 4076s # Calling org.freedesktop.DBus.Properties.Get 4076s # Calling org.freedesktop.DBus.Properties.Set 4076s # Calling org.freedesktop.DBus.Properties.GetAll 4076s # Calling org.example.Foo.WrongReturnType 4076s # Calling org.example.Foo.GetFDs 4076s # Calling org.example.Foo.GetFDs 4076s # Calling org.example.Foo.ReturnError 4076s # Calling org.example.Foo.CloseBeforeReturning 4076s ok - glib/gdbus-method-invocation.test 4076s ok 1 /gdbus/method-invocation/return 4076s # End of method-invocation tests 4076s # End of gdbus tests 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4076s # Running test: glib/spawn-path-search.test 4076s TAP version 14 4076s # random seed: R02Sfd7d38db7db73e3e07118266b344749a 4076s 1..7 4076s # Start of spawn tests 4076s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 4076s # 4076s # this is spawn-test-helper from glib/tests 4076s # 4076s ok 1 /spawn/do-not-search 4076s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 4076s # 4076s # this is spawn-test-helper from path-test-subdir 4076s # 4076s ok 2 /spawn/search-path 4076s # /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. 4076s # 4076s # this is spawn-test-helper from path-test-subdir 4076s # 4076s ok 3 /spawn/search-path-from-envp 4076s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 4076s # 4076s # this is spawn-test-helper from path-test-subdir 4076s # 4076s ok 4 /spawn/search-path-ambiguous 4076s # 4076s # this is spawn-test-helper from path-test-subdir 4076s # 4076s ok 5 /spawn/search-path-heap-allocation 4076s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 4076s ok - glib/spawn-path-search.test 4076s # Running test: glib/shell.test 4076s # 4076s # this is spawn-test-helper from glib/tests 4076s # 4076s ok 6 /spawn/search-path-fallback-in-environ 4076s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 4076s # 4076s # this is spawn-test-helper from glib/tests 4076s # 4076s ok 7 /spawn/search-path-fallback-in-envp 4076s # End of spawn tests 4076s TAP version 14 4076s # random seed: R02S543000e5ebcb5b3ef386ce11260a0cad 4076s 1..52 4076s # Start of shell tests 4076s # Start of cmdline tests 4076s test cmdline: foo bar 4076s ok 1 /shell/cmdline/0 4076s test cmdline: foo 'bar' 4076s ok 2 /shell/cmdline/1 4076s test cmdline: foo "bar" 4076s ok 3 /shell/cmdline/2 4076s test cmdline: foo '' 'bar' 4076s ok 4 /shell/cmdline/3 4076s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 4076s ok 5 /shell/cmdline/4 4076s test cmdline: foo blah foo bar baz 4076s ok 6 /shell/cmdline/5 4076s ok - glib/shell.test 4076s test cmdline: foo ' spaces more spaces lots of spaces in this ' 4076s ok 7 /shell/cmdline/6 4076s test cmdline: foo \ 4076s bar 4076s ok 8 /shell/cmdline/7 4076s test cmdline: foo '' '' 4076s ok 9 /shell/cmdline/8 4076s test cmdline: foo \" la la la 4076s ok 10 /shell/cmdline/9 4076s test cmdline: foo \ foo woo woo\ 4076s ok 11 /shell/cmdline/10 4076s test cmdline: foo "yada yada \$\"" 4076s ok 12 /shell/cmdline/11 4076s test cmdline: foo "c:\\" 4076s ok 13 /shell/cmdline/12 4076s test cmdline: foo # bla bla bla 4076s bar 4076s ok 14 /shell/cmdline/13 4076s test cmdline: foo a#b 4076s ok 15 /shell/cmdline/14 4076s test cmdline: #foo 4076s ok 16 /shell/cmdline/15 4076s test cmdline: foo bar \ 4076s ok 17 /shell/cmdline/16 4076s test cmdline: foo 'bar baz 4076s ok 18 /shell/cmdline/17 4076s test cmdline: foo '"bar" baz 4076s ok 19 /shell/cmdline/18 4076s test cmdline: 4076s ok 20 /shell/cmdline/19 4076s test cmdline: 4076s ok 21 /shell/cmdline/20 4076s test cmdline: # foo bar 4076s ok 22 /shell/cmdline/21 4076s test cmdline: # 4076s ok 23 /shell/cmdline/22 4076s test cmdline: foo '/bar/summer'\''09 tours.pdf' 4076s ok 24 /shell/cmdline/23 4076s # End of cmdline tests 4076s # Start of quote tests 4076s ok 25 /shell/quote/0 4076s ok 26 /shell/quote/1 4076s ok 27 /shell/quote/2 4076s ok 28 /shell/quote/3 4076s ok 29 /shell/quote/4 4076s ok 30 /shell/quote/5 4076s ok 31 /shell/quote/6 4076s # End of quote tests 4076s # Start of unquote tests 4076s ok 32 /shell/unquote/0 4076s ok 33 /shell/unquote/1 4076s ok 34 /shell/unquote/2 4076s ok 35 /shell/unquote/3 4076s ok 36 /shell/unquote/4 4076s ok 37 /shell/unquote/5 4076s ok 38 /shell/unquote/6 4076s ok 39 /shell/unquote/7 4076s ok 40 /shell/unquote/8 4076s ok 41 /shell/unquote/9 4076s ok 42 /shell/unquote/10 4076s ok 43 /shell/unquote/11 4076s ok 44 /shell/unquote/12 4076s ok 45 /shell/unquote/13 4076s ok 46 /shell/unquote/14 4076s ok 47 /shell/unquote/15 4076s ok 48 /shell/unquote/16 4076s ok 49 /shell/unquote/17 4076s ok 50 /shell/unquote/18 4076s ok 51 /shell/unquote/19 4076s ok 52 /shell/unquote/20 4076s # End of unquote tests 4076s # End of shell tests 4076s # Running test: glib/refcount-macro.test 4076s ok - glib/refcount-macro.test 4076s TAP version 14 4076s # random seed: R02S7f8441e76ad06c078a1d06b62abc51a3 4076s 1..4 4076s # Start of refcount tests 4076s ok 1 /refcount/grefcount 4076s ok 2 /refcount/gatomicrefcount 4076s # Start of grefcount tests 4076s ok 3 /refcount/grefcount/saturation 4076s # End of grefcount tests 4076s # Start of gatomicrefcount tests 4076s ok 4 /refcount/gatomicrefcount/saturation 4076s # End of gatomicrefcount tests 4076s # End of refcount tests 4076s # Running test: glib/socket.test 4076s TAP version 14 4076s # random seed: R02Sefa5fb064cc2ab2a24c4773cb53b0a65 4076s 1..30 4076s # Start of socket tests 4077s ok 1 /socket/ipv4_sync 4077s # slow test /socket/ipv4_sync executed in 1.00 secs 4078s ok 2 /socket/ipv4_async 4078s # slow test /socket/ipv4_async executed in 1.00 secs 4078s ok 3 /socket/ipv6_sync 4078s ok 4 /socket/ipv6_async 4078s ok 5 /socket/ipv6_v4mapped 4079s ok 6 /socket/close_graceful 4079s # slow test /socket/close_graceful executed in 1.00 secs 4079s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 4079s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 4079s ok 8 /socket/fd_reuse 4079s ok 9 /socket/address 4079s ok 10 /socket/unix-from-fd 4079s ok 11 /socket/unix-connection 4079s ok 12 /socket/unix-connection-ancillary-data 4079s ok 13 /socket/source-postmortem 4079s ok 14 /socket/read_write 4079s ok 15 /socket/read_writev 4079s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 4079s # Executing: glib/socket.test 4079s ok 16 /socket/receive_bytes 4079s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 4079s ok 17 /socket/receive_bytes_from 4079s # Start of ipv4_sync tests 4079s ok 18 /socket/ipv4_sync/datagram 4079s # Start of datagram tests 4080s ok 19 /socket/ipv4_sync/datagram/timeouts 4080s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 4080s # End of datagram tests 4080s # End of ipv4_sync tests 4080s # Start of ipv6_sync tests 4080s ok 20 /socket/ipv6_sync/datagram 4080s # Start of datagram tests 4081s ok 21 /socket/ipv6_sync/datagram/timeouts 4081s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 4081s # End of datagram tests 4081s # End of ipv6_sync tests 4081s # Start of reuse tests 4081s ok 22 /socket/reuse/tcp 4081s ok 23 /socket/reuse/udp 4081s # End of reuse tests 4081s # Start of get_available tests 4082s ok 24 /socket/get_available/datagram 4082s ok 25 /socket/get_available/stream 4082s # End of get_available tests 4082s # Start of credentials tests 4082s # Supported on this OS: GCredentials:linux-ucred:pid=0 4082s ok 26 /socket/credentials/tcp_client 4082s # Supported on this OS: GCredentials:linux-ucred:pid=0 4082s ok 27 /socket/credentials/tcp_server 4082s # Supported on this OS: GCredentials:linux-ucred:pid=3891,uid=1000,gid=1000 4082s ok 28 /socket/credentials/unix_socketpair 4082s # End of credentials tests 4082s # Start of accept tests 4082s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 4082s ok 29 /socket/accept/cancelled 4082s # End of accept tests 4082s # Start of connect tests 4082s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 4082s ok 30 /socket/connect/cancelled 4082s # End of connect tests 4082s # End of socket tests 4082s ok - glib/socket.test 4082s # Running test: glib/utf8-validate.test 4082s TAP version 14 4082s # random seed: R02Sf0a7b5162aa9c2a0a0f117c49d2b9a0f 4082s 1..238 4082s # Start of utf8 tests 4082s # Vector 0 4082s # Vector 1 4082s # Vector 2 4082s # Vector 3 4082s # Vector 4 4082s # Vector 5 4082s # Vector 6 4082s # Vector 7 4082s # Vector 8 4082s # Vector 9 4082s # Vector 10 4082s # Vector 11 4082s # Vector 12 4082s # Vector 13 4082s # Vector 14 4082s # Vector 15 4082s # Vector 16 4082s # Vector 17 4082s # Vector 18 4082s # Vector 19 4082s # Vector 20 4082s # Vector 21 4082s # Vector 22 4082s # Vector 23 4082s # Vector 24 4082s # Vector 25 4082s # Vector 26 4082s # Vector 27 4082s ok 1 /utf8/get-char-validated 4082s # Start of validate tests 4082s ok 2 /utf8/validate/0 4082s ok 3 /utf8/validate/1 4082s ok 4 /utf8/validate/2 4082s ok 5 /utf8/validate/3 4082s ok 6 /utf8/validate/4 4082s ok 7 /utf8/validate/5 4082s ok 8 /utf8/validate/6 4082s ok 9 /utf8/validate/7 4082s ok 10 /utf8/validate/8 4082s ok 11 /utf8/validate/9 4082s ok 12 /utf8/validate/10 4082s ok 13 /utf8/validate/11 4082s ok 14 /utf8/validate/12 4082s ok 15 /utf8/validate/13 4082s ok 16 /utf8/validate/14 4082s ok 17 /utf8/validate/15 4082s ok 18 /utf8/validate/16 4082s ok 19 /utf8/validate/17 4082s ok 20 /utf8/validate/18 4082s ok 21 /utf8/validate/19 4082s ok 22 /utf8/validate/20 4082s ok 23 /utf8/validate/21 4082s ok 24 /utf8/validate/22 4082s ok 25 /utf8/validate/23 4082s ok 26 /utf8/validate/24 4082s ok 27 /utf8/validate/25 4082s ok 28 /utf8/validate/26 4082s ok 29 /utf8/validate/27 4082s ok 30 /utf8/validate/28 4082s ok 31 /utf8/validate/29 4082s ok 32 /utf8/validate/30 4082s ok 33 /utf8/validate/31 4082s ok 34 /utf8/validate/32 4082s ok 35 /utf8/validate/33 4082s ok 36 /utf8/validate/34 4082s ok 37 /utf8/validate/35 4082s ok 38 /utf8/validate/36 4082s ok 39 /utf8/validate/37 4082s ok 40 /utf8/validate/38 4082s ok 41 /utf8/validate/39 4082s ok 42 /utf8/validate/40 4082s ok 43 /utf8/validate/41 4082s ok 44 /utf8/validate/42 4082s ok 45 /utf8/validate/43 4082s ok 46 /utf8/validate/44 4082s ok 47 /utf8/validate/45 4082s ok 48 /utf8/validate/46 4082s ok 49 /utf8/validate/47 4082s ok 50 /utf8/validate/48 4082s ok 51 /utf8/validate/49 4082s ok 52 /utf8/validate/50 4082s ok 53 /utf8/validate/51 4082s ok 54 /utf8/validate/52 4082s ok 55 /utf8/validate/53 4082s ok 56 /utf8/validate/54 4082s ok 57 /utf8/validate/55 4082s ok 58 /utf8/validate/56 4082s ok 59 /utf8/validate/57 4082s ok 60 /utf8/validate/58 4082s ok 61 /utf8/validate/59 4082s ok 62 /utf8/validate/60 4082s ok 63 /utf8/validate/61 4082s ok 64 /utf8/validate/62 4082s ok 65 /utf8/validate/63 4082s ok 66 /utf8/validate/64 4082s ok 67 /utf8/validate/65 4082s ok 68 /utf8/validate/66 4082s ok 69 /utf8/validate/67 4082s ok 70 /utf8/validate/68 4082s ok 71 /utf8/validate/69 4082s ok 72 /utf8/validate/70 4082s ok 73 /utf8/validate/71 4082s ok 74 /utf8/validate/72 4082s ok 75 /utf8/validate/73 4082s ok 76 /utf8/validate/74 4082s ok 77 /utf8/validate/75 4082s ok 78 /utf8/validate/76 4082s ok 79 /utf8/validate/77 4082s ok 80 /utf8/validate/78 4082s ok 81 /utf8/validate/79 4082s ok 82 /utf8/validate/80 4082s ok 83 /utf8/validate/81 4082s ok 84 /utf8/validate/82 4082s ok 85 /utf8/validate/83 4082s ok 86 /utf8/validate/84 4082s ok 87 /utf8/validate/85 4082s ok 88 /utf8/validate/86 4082s ok 89 /utf8/validate/87 4082s ok 90 /utf8/validate/88 4082s ok 91 /utf8/validate/89 4082s ok 92 /utf8/validate/90 4082s ok 93 /utf8/validate/91 4082s ok 94 /utf8/validate/92 4082s ok 95 /utf8/validate/93 4082s ok 96 /utf8/validate/94 4082s ok 97 /utf8/validate/95 4082s ok 98 /utf8/validate/96 4082s ok 99 /utf8/validate/97 4082s ok 100 /utf8/validate/98 4082s ok 101 /utf8/validate/99 4082s ok 102 /utf8/validate/100 4082s ok 103 /utf8/validate/101 4082s ok 104 /utf8/validate/102 4082s ok 105 /utf8/validate/103 4082s ok 106 /utf8/validate/104 4082s ok 107 /utf8/validate/105 4082s ok 108 /utf8/validate/106 4082s ok 109 /utf8/validate/107 4082s ok 110 /utf8/validate/108 4082s ok 111 /utf8/validate/109 4082s ok 112 /utf8/validate/110 4082s ok 113 /utf8/validate/111 4082s ok 114 /utf8/validate/112 4082s ok 115 /utf8/validate/113 4082s ok 116 /utf8/validate/114 4082s ok 117 /utf8/validate/115 4082s ok 118 /utf8/validate/116 4082s ok 119 /utf8/validate/117 4082s ok 120 /utf8/validate/118 4082s ok 121 /utf8/validate/119 4082s ok 122 /utf8/validate/120 4082s ok 123 /utf8/validate/121 4082s ok 124 /utf8/validate/122 4082s ok 125 /utf8/validate/123 4082s ok 126 /utf8/validate/124 4082s ok 127 /utf8/validate/125 4082s ok 128 /utf8/validate/126 4082s ok 129 /utf8/validate/127 4082s ok 130 /utf8/validate/128 4082s ok 131 /utf8/validate/129 4082s ok 132 /utf8/validate/130 4082s ok 133 /utf8/validate/131 4082s ok 134 /utf8/validate/132 4082s ok 135 /utf8/validate/133 4082s ok 136 /utf8/validate/134 4082s ok 137 /utf8/validate/135 4082s ok 138 /utf8/validate/136 4082s ok 139 /utf8/validate/137 4082s ok 140 /utf8/validate/138 4082s ok 141 /utf8/validate/139 4082s ok 142 /utf8/validate/140 4082s ok 143 /utf8/validate/141 4082s ok 144 /utf8/validate/142 4082s ok 145 /utf8/validate/143 4082s ok 146 /utf8/validate/144 4082s ok 147 /utf8/validate/145 4082s ok 148 /utf8/validate/146 4082s ok 149 /utf8/validate/147 4082s ok 150 /utf8/validate/148 4082s ok 151 /utf8/validate/149 4082s ok 152 /utf8/validate/150 4082s ok 153 /utf8/validate/151 4082s ok 154 /utf8/validate/152 4082s ok 155 /utf8/validate/153 4082s ok 156 /utf8/validate/154 4082s ok 157 /utf8/validate/155 4082s ok 158 /utf8/validate/156 4082s ok 159 /utf8/validate/157 4082s ok 160 /utf8/validate/158 4082s ok 161 /utf8/validate/159 4082s ok 162 /utf8/validate/160 4082s ok 163 /utf8/validate/161 4082s ok 164 /utf8/validate/162 4082s ok 165 /utf8/validate/163 4082s ok 166 /utf8/validate/164 4082s ok 167 /utf8/validate/165 4082s ok 168 /utf8/validate/166 4082s ok 169 /utf8/validate/167 4082s ok 170 /utf8/validate/168 4082s ok 171 /utf8/validate/169 4082s ok 172 /utf8/validate/170 4082s ok 173 /utf8/validate/171 4082s ok 174 /utf8/validate/172 4082s ok 175 /utf8/validate/173 4082s ok 176 /utf8/validate/174 4082s ok 177 /utf8/validate/175 4082s ok 178 /utf8/validate/176 4082s ok 179 /utf8/validate/177 4082s ok 180 /utf8/validate/178 4082s ok 181 /utf8/validate/179 4082s ok 182 /utf8/validate/180 4082s ok 183 /utf8/validate/181 4082s ok 184 /utf8/validate/182 4082s ok 185 /utf8/validate/183 4082s ok 186 /utf8/validate/184 4082s ok 187 /utf8/validate/185 4082s ok 188 /utf8/validate/186 4082s ok 189 /utf8/validate/187 4082s ok 190 /utf8/validate/188 4082s ok 191 /utf8/validate/189 4082s ok 192 /utf8/validate/190 4082s ok 193 /utf8/validate/191 4082s ok 194 /utf8/validate/192 4082s ok 195 /utf8/validate/193 4082s ok 196 /utf8/validate/194 4082s ok 197 /utf8/validate/195 4082s ok 198 /utf8/validate/196 4082s ok 199 /utf8/validate/197 4082s ok 200 /utf8/validate/198 4082s ok 201 /utf8/validate/199 4082s ok 202 /utf8/validate/200 4082s ok 203 /utf8/validate/201 4082s ok 204 /utf8/validate/202 4082s ok 205 /utf8/validate/203 4082s ok 206 /utf8/validate/204 4082s ok 207 /utf8/validate/205 4082s ok 208 /utf8/validate/206 4082s ok 209 /utf8/validate/207 4082s ok 210 /utf8/validate/208 4082s ok 211 /utf8/validate/209 4082s ok 212 /utf8/validate/210 4082s ok 213 /utf8/validate/211 4082s ok 214 /utf8/validate/212 4082s ok 215 /utf8/validate/213 4082s ok 216 /utf8/validate/214 4082s ok 217 /utf8/validate/215 4082s ok 218 /utf8/validate/216 4082s ok 219 /utf8/validate/217 4082s ok 220 /utf8/validate/218 4082s ok 221 /utf8/validate/219 4082s ok 222 /utf8/validate/220 4082s ok 223 /utf8/validate/221 4082s ok 224 /utf8/validate/222 4082s ok 225 /utf8/validate/223 4082s ok 226 /utf8/validate/224 4082s ok 227 /utf8/validate/225 4082s ok 228 /utf8/validate/226 4082s ok 229 /utf8/validate/227 4082s ok 230 /utf8/validate/228 4082s ok 231 /utf8/validate/229 4082s ok 232 /utf8/validate/230 4082s ok 233 /utf8/validate/231 4082s ok 234 /utf8/validate/232 4082s ok 235 /utf8/validate/233 4082s ok 236 /utf8/validate/234 4082s ok 237 /utf8/validate/235 4082s ok 238 /utf8/validate/236 4082s # End of validate tests 4082s # End of utf8 tests 4082s TAP version 14 4082s # random seed: R02Sb5ab4abbb46ef51e9d82cc127fbbd204 4082s 1..41 4082s # Start of utils tests 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/language-names/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/language-names/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/language-names/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/language-names/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/language-names/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/language-names/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/language-names/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/language-names/.dirs/runtime 4082s ok 1 /utils/language-names 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/locale-variants/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/locale-variants/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/locale-variants/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/locale-variants/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/locale-variants/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/locale-variants/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/locale-variants/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/locale-variants/.dirs/runtime 4082s # Testing locale ‘en’ 4082s # Testing locale ‘sr@latin’ 4082s # Testing locale ‘fr_BE’ 4082s # Testing locale ‘sr_SR@latin’ 4082s # Testing locale ‘sr_SR@latin.UTF-8’ 4082s # Testing locale ‘sr@latin_invalid’ 4082s # Testing locale ‘sr.UTF-8@latin’ 4082s # Testing locale ‘sr.UTF-8_latin’ 4082s # Testing locale ‘sr.UTF-8@latin_invalid’ 4082s ok 2 /utils/locale-variants 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/version/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/version/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/version/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/version/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/version/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/version/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/version/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/version/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/version/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/version/.dirs/runtime 4082s ok 3 /utils/version 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/appname/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/appname/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/appname/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/appname/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/appname/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/appname/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/appname/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/appname/.dirs/runtime 4082s ok 4 /utils/appname 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/prgname-thread-safety/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/prgname-thread-safety/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/prgname-thread-safety/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/prgname-thread-safety/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/prgname-thread-safety/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/prgname-thread-safety/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/prgname-thread-safety/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/prgname-thread-safety/.dirs/runtime 4082s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 4082s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 4082s ok 5 /utils/prgname-thread-safety 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/tmpdir/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/tmpdir/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/tmpdir/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/tmpdir/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/tmpdir/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/tmpdir/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/tmpdir/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/tmpdir/.dirs/runtime 4082s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 4082s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 4082s Unable to clean up temporary directory /tmp/test_utils-c-89_BVC7J3/utils/tmpdir: No such file or directory 4082s ok 6 /utils/tmpdir 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/basic_bits/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/basic_bits/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/basic_bits/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/basic_bits/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/basic_bits/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/basic_bits/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/basic_bits/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/basic_bits/.dirs/runtime 4082s ok 7 /utils/basic_bits 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/bits/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/bits/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/bits/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/bits/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/bits/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/bits/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/bits/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/bits/.dirs/runtime 4082s ok 8 /utils/bits 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/swap/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/swap/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/swap/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/swap/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/swap/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/swap/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/swap/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/swap/.dirs/runtime 4082s ok 9 /utils/swap 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/find-program/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/find-program/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/find-program/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/find-program/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/find-program/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/find-program/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/find-program/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/find-program/.dirs/runtime 4082s ok 10 /utils/find-program 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/find-program-for-path/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/find-program-for-path/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/find-program-for-path/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/find-program-for-path/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/find-program-for-path/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/find-program-for-path/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/find-program-for-path/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/find-program-for-path/.dirs/runtime 4082s ok 11 /utils/find-program-for-path 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/debug/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/debug/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/debug/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/debug/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/debug/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/debug/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/debug/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/debug/.dirs/runtime 4082s Unable to clean up temporary directory /tmp/test_utils-c-89_BVC7J3/utils/debug: No such file or directory 4082s ok 12 /utils/debug 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/codeset/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/codeset/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/codeset/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/codeset/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/codeset/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/codeset/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/codeset/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/codeset/.dirs/runtime 4082s ok 13 /utils/codeset 4082s ok - glib/utf8-validate.test 4082s # Running test: glib/utils-c-89.test 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/codeset2/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/codeset2/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/codeset2/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/codeset2/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/codeset2/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/codeset2/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/codeset2/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/codeset2/.dirs/runtime 4082s Unable to clean up temporary directory /tmp/test_utils-c-89_BVC7J3/utils/codeset2: No such file or directory 4082s ok 14 /utils/codeset2 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/console-charset/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/console-charset/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/console-charset/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/console-charset/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/console-charset/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/console-charset/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/console-charset/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/console-charset/.dirs/runtime 4082s ok 15 /utils/console-charset 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/gettext/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/gettext/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/gettext/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/gettext/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/gettext/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/gettext/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/gettext/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/gettext/.dirs/runtime 4082s ok 16 /utils/gettext 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/username/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/username/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/username/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/username/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/username/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/username/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/username/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/username/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/username/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/username/.dirs/runtime 4082s ok 17 /utils/username 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/realname/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/realname/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/realname/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/realname/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/realname/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/realname/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/realname/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/realname/.dirs/runtime 4082s ok 18 /utils/realname 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/hostname/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/hostname/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/hostname/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/hostname/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/hostname/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/hostname/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/hostname/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/hostname/.dirs/runtime 4082s ok 19 /utils/hostname 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/os-info/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/os-info/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/os-info/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/os-info/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/os-info/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/os-info/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/os-info/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/os-info/.dirs/runtime 4082s # NAME: Ubuntu 4082s ok 20 /utils/os-info 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/.dirs/runtime 4082s ok 21 /utils/clear-pointer 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer-cast/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer-cast/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/clear-pointer-cast/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer-cast/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/clear-pointer-cast/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer-cast/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer-cast/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer-cast/.dirs/runtime 4082s ok 22 /utils/clear-pointer-cast 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/take-pointer/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/take-pointer/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/take-pointer/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/take-pointer/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/take-pointer/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/take-pointer/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/take-pointer/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/take-pointer/.dirs/runtime 4082s ok 23 /utils/take-pointer 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-source/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-source/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/clear-source/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-source/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/clear-source/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-source/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-source/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/clear-source/.dirs/runtime 4082s ok 24 /utils/clear-source 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/misc-mem/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/misc-mem/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/misc-mem/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/misc-mem/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/misc-mem/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/misc-mem/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/misc-mem/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/misc-mem/.dirs/runtime 4082s ok 25 /utils/misc-mem 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/.dirs/runtime 4082s # /utils/aligned-mem summary: Aligned memory allocator 4082s # Alignment must not be zero 4082s # Alignment must be a power of two 4082s # Alignment must be a multiple of sizeof(void*) 4082s ok 26 /utils/aligned-mem 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/free-sized/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/free-sized/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/free-sized/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/free-sized/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/free-sized/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/free-sized/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/free-sized/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/free-sized/.dirs/runtime 4082s # /utils/free-sized summary: Check that g_free_sized() works 4082s ok 27 /utils/free-sized 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/nullify/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/nullify/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/nullify/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/nullify/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/nullify/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/nullify/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/nullify/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/nullify/.dirs/runtime 4082s ok 28 /utils/nullify 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/atexit/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/atexit/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/atexit/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/atexit/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/atexit/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/atexit/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/atexit/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/atexit/.dirs/runtime 4082s Unable to clean up temporary directory /tmp/test_utils-c-89_BVC7J3/utils/atexit: No such file or directory 4082s ok 29 /utils/atexit 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/check-setuid/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/check-setuid/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/check-setuid/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/check-setuid/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/check-setuid/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/check-setuid/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/check-setuid/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/check-setuid/.dirs/runtime 4082s ok 30 /utils/check-setuid 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/int-limits/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/int-limits/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/int-limits/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/int-limits/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/int-limits/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/int-limits/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/int-limits/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/int-limits/.dirs/runtime 4082s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 4082s ok 31 /utils/int-limits 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-list/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-list/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/clear-list/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-list/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/clear-list/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-list/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-list/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/clear-list/.dirs/runtime 4082s ok 32 /utils/clear-list 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-slist/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-slist/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/clear-slist/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-slist/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/clear-slist/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-slist/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-slist/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/clear-slist/.dirs/runtime 4082s ok 33 /utils/clear-slist 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/steal-handle-id/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/steal-handle-id/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/steal-handle-id/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/steal-handle-id/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/steal-handle-id/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/steal-handle-id/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/steal-handle-id/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/steal-handle-id/.dirs/runtime 4082s ok 34 /utils/steal-handle-id 4082s # Start of user-special-dirs tests 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/desktop/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/desktop/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/desktop/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/desktop/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/desktop/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/desktop/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/desktop/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/desktop/.dirs/runtime 4082s ok 35 /utils/user-special-dirs/desktop 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked/.dirs/runtime 4082s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 4082s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 4082s Unable to clean up temporary directory /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/load-unlocked: No such file or directory 4082s ok 36 /utils/user-special-dirs/load-unlocked 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks/.dirs/runtime 4082s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 4082s Unable to clean up temporary directory /tmp/test_utils-c-89_BVC7J3/utils/user-special-dirs/reload-leaks: No such file or directory 4082s ok 37 /utils/user-special-dirs/reload-leaks 4082s # End of user-special-dirs tests 4082s # Start of clear-pointer tests 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/side-effects/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/side-effects/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/side-effects/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/side-effects/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/side-effects/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/side-effects/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/side-effects/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/clear-pointer/side-effects/.dirs/runtime 4082s ok 38 /utils/clear-pointer/side-effects 4082s # End of clear-pointer tests 4082s # Start of aligned-mem tests 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/alignment/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/alignment/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/alignment/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/alignment/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/alignment/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/alignment/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/alignment/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/alignment/.dirs/runtime 4082s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 4082s ok 39 /utils/aligned-mem/alignment 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/zeroed/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/zeroed/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/zeroed/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/zeroed/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/zeroed/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/zeroed/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/zeroed/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/zeroed/.dirs/runtime 4082s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 4082s ok 40 /utils/aligned-mem/zeroed 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/free-sized/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/free-sized/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/free-sized/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/free-sized/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/free-sized/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/free-sized/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/free-sized/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_BVC7J3/utils/aligned-mem/free-sized/.dirs/runtime 4082s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 4082s ok 41 /utils/aligned-mem/free-sized 4082s # Start of subprocess tests 4082s # End of subprocess tests 4082s # End of aligned-mem tests 4082s # End of utils tests 4082s TAP version 14 4082s # random seed: R02S8efde881c4d3ffe0c464bf53c9bf4aa4 4082s 1..3 4082s # Start of deprecated-properties tests 4082s ok 1 /deprecated-properties/construct 4082s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 4082s ok 2 /deprecated-properties/default-construct 4082s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 4082s ok 3 /deprecated-properties/set 4082s # End of deprecated-properties tests 4082s ok - glib/utils-c-89.test 4082s # Running test: glib/deprecated-properties.test 4082s ok - glib/deprecated-properties.test 4082s # Running test: glib/gdbus-proxy.test 4082s TAP version 14 4082s # random seed: R02Sf509eeefc0c79ad3e6fd16b6b48d0379 4082s 1..5 4082s # Start of gdbus tests 4082s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/.dirs/home 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/.dirs/cache 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/.dirs/system-config2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/.dirs/config 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/.dirs/system-data2 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/.dirs/data 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/.dirs/state 4082s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/.dirs/runtime 4083s ok 1 /gdbus/proxy 4083s # slow test /gdbus/proxy executed in 1.72 secs 4083s # Start of proxy tests 4083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-properties/.dirs/home 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-properties/.dirs/cache 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-properties/.dirs/system-config2 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-properties/.dirs/config 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-properties/.dirs/system-data2 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-properties/.dirs/data 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-properties/.dirs/state 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-properties/.dirs/runtime 4083s ok 2 /gdbus/proxy/no-properties 4083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/wellknown-noauto/.dirs/home 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/wellknown-noauto/.dirs/cache 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/wellknown-noauto/.dirs/system-config2 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/wellknown-noauto/.dirs/config 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/wellknown-noauto/.dirs/system-data2 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/wellknown-noauto/.dirs/data 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/wellknown-noauto/.dirs/state 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/wellknown-noauto/.dirs/runtime 4083s ok 3 /gdbus/proxy/wellknown-noauto 4083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/async/.dirs/home 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/async/.dirs/cache 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/async/.dirs/system-config2 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/async/.dirs/config 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/async/.dirs/system-data2 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/async/.dirs/data 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/async/.dirs/state 4083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/async/.dirs/runtime 4084s # Executing: glib/gdbus-proxy.test 4085s ok 4 /gdbus/proxy/async 4085s # slow test /gdbus/proxy/async executed in 1.72 secs 4085s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-match-rule/.dirs/home 4085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-match-rule/.dirs/cache 4085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-match-rule/.dirs/system-config2 4085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-match-rule/.dirs/config 4085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-match-rule/.dirs/system-data2 4085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-match-rule/.dirs/data 4085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-match-rule/.dirs/state 4085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_IMUMK3/gdbus/proxy/no-match-rule/.dirs/runtime 4085s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 4085s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 4087s ok - glib/gdbus-proxy.test 4087s # Running test: glib/tls-bindings.test 4087s ok 5 /gdbus/proxy/no-match-rule 4087s # slow test /gdbus/proxy/no-match-rule executed in 1.72 secs 4087s # End of proxy tests 4087s # End of gdbus tests 4087s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4087s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4087s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4087s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4087s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4087s TAP version 14 4087s # random seed: R02S831ef77a7ad2c39aeb09a58c63be4d6e 4087s 1..2 4087s # Start of tls-connection tests 4087s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 4087s ok 1 /tls-connection/get-tls-channel-binding 4087s ok 2 /tls-connection/get-dtls-channel-binding 4087s # End of tls-connection tests 4087s ok - glib/tls-bindings.test 4087s # Running test: glib/hash.test 4087s ok - glib/hash.test 4087s # Running test: glib/portal-support-flatpak-network-only.test 4087s TAP version 14 4087s # random seed: R02S5dfef6b779b4908900f4a20c011c5f57 4087s 1..34 4087s # Start of hash tests 4087s ok 1 /hash/misc 4087s ok 2 /hash/one 4087s ok 3 /hash/honeyman 4087s ok 4 /hash/direct 4087s ok 5 /hash/direct2 4087s ok 6 /hash/int 4087s ok 7 /hash/int64 4087s ok 8 /hash/double 4087s ok 9 /hash/string 4087s ok 10 /hash/set 4087s ok 11 /hash/set-ref 4087s ok 12 /hash/ref 4087s ok 13 /hash/remove-all 4087s ok 14 /hash/recursive-remove-all 4087s ok 15 /hash/find 4087s ok 16 /hash/foreach 4087s ok 17 /hash/foreach-steal 4087s ok 18 /hash/steal-extended 4087s ok 19 /hash/steal-all-keys 4087s ok 20 /hash/steal-all-values 4087s ok 21 /hash/lookup-extended 4087s ok 22 /hash/new-similar 4087s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 4087s ok 23 /hash/lookup-null-key 4087s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 4087s ok 24 /hash/destroy-modify 4087s ok 25 /hash/consistency 4087s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 4087s ok 26 /hash/iter-replace 4087s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 4087s ok 27 /hash/set-insert-corruption 4087s ok 28 /hash/set-to-strv 4087s ok 29 /hash/get-keys-as-ptr-array 4087s ok 30 /hash/get-values-as-ptr-array 4087s ok 31 /hash/primes 4087s # Start of int64 tests 4087s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 4087s ok 32 /hash/int64/collisions 4087s # End of int64 tests 4087s # Start of double tests 4087s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 4087s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 4087s ok 33 /hash/double/collisions 4087s # End of double tests 4087s # Start of recursive-remove-all tests 4087s # End of recursive-remove-all tests 4087s # Start of steal-extended tests 4087s ok 34 /hash/steal-extended/optional 4087s # End of steal-extended tests 4087s # End of hash tests 4087s TAP version 14 4087s # random seed: R02S8ca46b0aab30502a0dce51d901498562 4087s 1..1 4087s # Start of portal-support tests 4087s # Start of flatpak tests 4087s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/home 4087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/cache 4087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/system-config2 4087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/config 4087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/system-data2 4087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/data 4087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/state 4087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/runtime 4087s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_JJCOK3/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 4087s ok 1 /portal-support/flatpak/network 4087s # End of flatpak tests 4087s # End of portal-support tests 4087s TAP version 14 4087s # random seed: R02S69bc994fce0a596bb3990e9b7f6bf579 4087s 1..6 4087s # Start of thread tests 4087s ok - glib/portal-support-flatpak-network-only.test 4087s # Running test: glib/thread-deprecated.test 4087s ok 1 /thread/mutex 4087s ok 2 /thread/static-rec-mutex 4089s # Executing: glib/thread-deprecated.test 4092s ok 3 /thread/static-private 4092s # slow test /thread/static-private executed in 4.40 secs 4094s # Executing: glib/thread-deprecated.test 4097s ok 4 /thread/static-rw-lock 4097s # slow test /thread/static-rw-lock executed in 5.00 secs 4097s ok 5 /thread/once 4099s # Executing: glib/thread-deprecated.test 4104s # Executing: glib/thread-deprecated.test 4107s ok - glib/thread-deprecated.test 4107s # Running test: glib/gmenumodel.test 4107s ok 6 /thread/rerun-all 4107s # slow test /thread/rerun-all executed in 10.02 secs 4107s # End of thread tests 4107s TAP version 14 4107s # random seed: R02Sf16960da42cc4c13edcae24452e7bbe6 4107s 1..15 4107s # Start of gmenu tests 4107s ok 1 /gmenu/equality 4108s ok 2 /gmenu/random 4108s # slow test /gmenu/random executed in 0.54 secs 4108s ok 3 /gmenu/attributes 4108s ok 4 /gmenu/links 4108s ok 5 /gmenu/mutable 4108s ok 6 /gmenu/convenience 4108s ok 7 /gmenu/menuitem 4108s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 4108s ok 8 /gmenu/input-validation 4108s # Start of dbus tests 4109s ok 9 /gmenu/dbus/roundtrip 4109s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 4109s # Executing: glib/gmenumodel.test 4109s ok 10 /gmenu/dbus/subscriptions 4110s ok 11 /gmenu/dbus/threaded 4110s # slow test /gmenu/dbus/threaded executed in 0.81 secs 4110s # Start of peer tests 4111s ok 12 /gmenu/dbus/peer/roundtrip 4111s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 4112s ok 13 /gmenu/dbus/peer/subscriptions 4112s # End of peer tests 4112s # Start of export tests 4112s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 4112s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 4112s ok 14 /gmenu/dbus/export/error-handling 4112s # End of export tests 4112s # End of dbus tests 4112s # Start of attributes tests 4112s ok 15 /gmenu/attributes/iterate 4112s # End of attributes tests 4112s # End of gmenu 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 ok - glib/gmenumodel.test 4112s # Running test: glib/credentials.test 4112s TAP version 14 4112s # random seed: R02Sc1aca8f99701b751f1095fefe8d1897a 4112s ok - glib/credentials.test 4112s # Running test: glib/autoptr-gio.test 4112s ok - glib/autoptr-gio.test 4112s # Running test: glib/uri.test 4112s 1..1 4112s # Start of credentials tests 4112s # GCredentials:linux-ucred:pid=4070,uid=1000,gid=1000 4112s # GCredentials:linux-ucred:pid=4070,uid=0,gid=1000 4112s ok 1 /credentials/basic 4112s # End of credentials tests 4112s TAP version 14 4112s # random seed: R02Sd852fd8f8c7f1f9eb6cfc7e2c826576d 4112s 1..1 4112s # Start of autoptr tests 4112s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4112s ok 1 /autoptr/autoptr 4112s # End of autoptr tests 4112s TAP version 14 4112s # random seed: R02S7e746077ef0097d946963dc9e71d3292 4112s 1..24 4112s # Start of uri tests 4112s ok 1 /uri/file-to-uri 4112s ok 2 /uri/file-from-uri 4112s ok 3 /uri/file-roundtrip 4112s ok 4 /uri/list 4112s # Test 0: %2Babc %4F 4112s # Test 1: %2Babc %4F 4112s # Test 2: %00abc %4F 4112s # Test 3: /cursors/none.png 4112s # Test 4: /cursors%2fbad-subdir/none.png 4112s # Test 5: %0 4112s # Test 6: %ra 4112s # Test 7: %2r 4112s # Test 8: Timm Bäder 4112s # Test 9: (null) 4112s ok 5 /uri/unescape-string 4112s ok 6 /uri/unescape-segment 4112s # Test 0: abcdefgABCDEFG._~ 4112s # Test 1: :+ \\?# 4112s # Test 2: a+b:c 4112s # Test 3: a+b:c\303\234 4112s # Test 4: \374;\322 4112s # Test 5: \303\261\303( 4112s ok 7 /uri/escape-string 4112s ok 8 /uri/escape-bytes 4112s ok 9 /uri/scheme 4112s ok 10 /uri/build 4112s ok 11 /uri/split 4112s ok 12 /uri/is_valid 4112s ok 13 /uri/to-string 4112s ok 14 /uri/join 4112s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 4112s # Combination 0 4112s # Combination 1 4112s # Combination 2 4112s # Combination 3 4112s # Combination 4 4112s # Combination 5 4112s # Combination 6 4112s # Combination 7 4112s # Combination 8 4112s # Combination 9 4112s # Combination 10 4112s # Combination 11 4112s # Combination 12 4112s # Combination 13 4112s # Combination 14 4112s # Combination 15 4112s # Combination 16 4112s # Combination 17 4112s # Combination 18 4112s # Combination 19 4112s # Combination 20 4112s # Combination 21 4112s # Combination 22 4112s # Combination 23 4112s # Combination 24 4112s # Combination 25 4112s # Combination 26 4112s # Combination 27 4112s # Combination 28 4112s # Combination 29 4112s # Combination 30 4112s # Combination 31 4112s # Combination 32 4112s # Combination 33 4112s # Combination 34 4112s # Combination 35 4112s # Combination 36 4112s # Combination 37 4112s # Combination 38 4112s # Combination 39 4112s # Combination 40 4112s # Combination 41 4112s # Combination 42 4112s # Combination 43 4112s # Combination 44 4112s # Combination 45 4112s # Combination 46 4112s # Combination 47 4112s # Combination 48 4112s # Combination 49 4112s # Combination 50 4112s # Combination 51 4112s # Combination 52 4112s # Combination 53 4112s # Combination 54 4112s # Combination 55 4112s # Combination 56 4112s # Combination 57 4112s # Combination 58 4112s # Combination 59 4112s # Combination 60 4112s # Combination 61 4112s # Combination 62 4112s # Combination 63 4112s # Combination 64 4112s # Combination 65 4112s # Combination 66 4112s # Combination 67 4112s # Combination 68 4112s # Combination 69 4112s # Combination 70 4112s # Combination 71 4112s # Combination 72 4112s # Combination 73 4112s # Combination 74 4112s # Combination 75 4112s # Combination 76 4112s # Combination 77 4112s # Combination 78 4112s # Combination 79 4112s # Combination 80 4112s # Combination 81 4112s # Combination 82 4112s # Combination 83 4112s # Combination 84 4112s # Combination 85 4112s # Combination 86 4112s # Combination 87 4112s # Combination 88 4112s # Combination 89 4112s # Combination 90 4112s # Combination 91 4112s # Combination 92 4112s # Combination 93 4112s # Combination 94 4112s # Combination 95 4112s # Combination 96 4112s # Combination 97 4112s # Combination 98 4112s # Combination 99 4112s # Combination 100 4112s # Combination 101 4112s # Combination 102 4112s # Combination 103 4112s # Combination 104 4112s # Combination 105 4112s # Combination 106 4112s # Combination 107 4112s # Combination 108 4112s # Combination 109 4112s # Combination 110 4112s # Combination 111 4112s # Combination 112 4112s # Combination 113 4112s # Combination 114 4112s # Combination 115 4112s # Combination 116 4112s # Combination 117 4112s # Combination 118 4112s # Combination 119 4112s # Combination 120 4112s # Combination 121 4112s # Combination 122 4112s # Combination 123 4112s # Combination 124 4112s # Combination 125 4112s # Combination 126 4112s # Combination 127 4112s # Combination 128 4112s # Combination 129 4112s # Combination 130 4112s # Combination 131 4112s # Combination 132 4112s # Combination 133 4112s # Combination 134 4112s # Combination 135 4112s # Combination 136 4112s # Combination 137 4112s # Combination 138 4112s # Combination 139 4112s # Combination 140 4112s # Combination 141 4112s # Combination 142 4112s # Combination 143 4112s # Combination 144 4112s # Combination 145 4112s # Combination 146 4112s # Combination 147 4112s # Combination 148 4112s # Combination 149 4112s # Combination 150 4112s # Combination 151 4112s # Combination 152 4112s # Combination 153 4112s # Combination 154 4112s # Combination 155 4112s # Combination 156 4112s # Combination 157 4112s # Combination 158 4112s # Combination 159 4112s # Combination 160 4112s # Combination 161 4112s # Combination 162 4112s # Combination 163 4112s # Combination 164 4112s # Combination 165 4112s # Combination 166 4112s # Combination 167 4112s # Combination 168 4112s # Combination 169 4112s # Combination 170 4112s # Combination 171 4112s # Combination 172 4112s # Combination 173 4112s # Combination 174 4112s # Combination 175 4112s # Combination 176 4112s # Combination 177 4112s # Combination 178 4112s # Combination 179 4112s # Combination 180 4112s # Combination 181 4112s # Combination 182 4112s # Combination 183 4112s # Combination 184 4112s # Combination 185 4112s # Combination 186 4112s # Combination 187 4112s # Combination 188 4112s # Combination 189 4112s # Combination 190 4112s # Combination 191 4112s # Combination 192 4112s # Combination 193 4112s # Combination 194 4112s # Combination 195 4112s # Combination 196 4112s # Combination 197 4112s # Combination 198 4112s # Combination 199 4112s # Combination 200 4112s # Combination 201 4112s # Combination 202 4112s # Combination 203 4112s # Combination 204 4112s # Combination 205 4112s # Combination 206 4112s # Combination 207 4112s # Combination 208 4112s # Combination 209 4112s # Combination 210 4112s # Combination 211 4112s # Combination 212 4112s # Combination 213 4112s # Combination 214 4112s # Combination 215 4112s # Combination 216 4112s # Combination 217 4112s # Combination 218 4112s # Combination 219 4112s # Combination 220 4112s # Combination 221 4112s # Combination 222 4112s # Combination 223 4112s # Combination 224 4112s # Combination 225 4112s # Combination 226 4112s # Combination 227 4112s # Combination 228 4112s # Combination 229 4112s # Combination 230 4112s # Combination 231 4112s # Combination 232 4112s # Combination 233 4112s # Combination 234 4112s # Combination 235 4112s # Combination 236 4112s # Combination 237 4112s # Combination 238 4112s # Combination 239 4112s # Combination 240 4112s # Combination 241 4112s # Combination 242 4112s # Combination 243 4112s # Combination 244 4112s # Combination 245 4112s # Combination 246 4112s # Combination 247 4112s # Combination 248 4112s # Combination 249 4112s # Combination 250 4112s # Combination 251 4112s # Combination 252 4112s # Combination 253 4112s # Combination 254 4112s # Combination 255 4112s ok 15 /uri/join-split-round-trip 4112s ok 16 /uri/normalize 4112s # Start of unescape-bytes tests 4112s # Test 0: %00%00 4112s # Test 1: /cursors/none.png 4112s # Test 2: /cursors%2fbad-subdir/none.png 4112s # Test 3: %% 4112s # Test 4: % 4112s ok 17 /uri/unescape-bytes/nul-terminated 4112s # Test 0: %00%00 4112s # Test 1: /cursors/none.png 4112s # Test 2: /cursors%2fbad-subdir/none.png 4112s # Test 3: %% 4112s # Test 4: % 4112s ok 18 /uri/unescape-bytes/length 4112s # End of unescape-bytes tests 4112s # Start of parsing tests 4112s # Test 0: foo: 4112s # Test 1: file:/dev/null 4112s # Test 2: file:///dev/null 4112s # Test 3: ftp://user@host/path 4112s # Test 4: ftp://user@host:9999/path 4112s # Test 5: ftp://user:password@host/path 4112s # Test 6: ftp://user:password@host:9999/path 4112s # Test 7: ftp://user:password@host 4112s # Test 8: http://us%65r@host 4112s # Test 9: http://us%40r@host 4112s # Test 10: http://us%3ar@host 4112s # Test 11: http://us%2fr@host 4112s # Test 12: http://us%3fr@host 4112s # Test 13: http://host?query 4112s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 4112s # 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 4112s # Test 16: http://space/%20 4112s # Test 17: http://delims/%3C%3E%23%25%22 4112s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 4112s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 4112s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 4112s # Test 21: http://[3ffe:2a00:100:7031::1] 4112s # Test 22: http://[1080::8:800:200C:417A]/foo 4112s # Test 23: http://[::192.9.5.5]/ipng 4112s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 4112s # Test 25: http://[2010:836B:4179::836B:4179] 4112s # Test 26: http://host/path with spaces 4112s # Test 27: http://host/path 4112s # Test 28: http://host/path 4112s # Test 29: http://host 4112s # Test 30: http://host:999 4112s # Test 31: http://host/pa 4112s # th 4112s # Test 32: http: 4112s # //host/path 4112s # Test 33: http:// host/path 4112s # Test 34: http://host/path? 4112s # Test 35: http://host/path# 4112s # Test 36: http://host/path% 4112s # Test 37: http://h%ost/path 4112s # Test 38: http://host/path%% 4112s # Test 39: http://host/path%%% 4112s # Test 40: http://host/path%/x/ 4112s # Test 41: http://host/path%0x/ 4112s # Test 42: http://host/path%ax 4112s # Test 43: http://host/päth/ 4112s # Test 44: HTTP://////////////// 4112s # Test 45: http://@host 4112s # Test 46: http://:@host 4112s # Test 47: scheme://foo%3Abar._webdav._tcp.local 4112s # Test 48: http://example.com/.. 4112s # Test 49: foo0://host/path 4112s # Test 50: f0.o://host/path 4112s # Test 51: http++://host/path 4112s # Test 52: http-ish://host/path 4112s # Test 53: http://[fe80::dead:beef%]/ 4112s # Test 54: http://[fe80::dead:beef%em1]/ 4112s # Test 55: http://[fe80::dead:beef%em1]/ 4112s # Test 56: http://[fe80::dead:beef%25em1]/ 4112s # Test 57: http://[fe80::dead:beef%25em1%20]/ 4112s # Test 58: http://[fe80::dead:beef%25em%31]/ 4112s # Test 59: http://[fe80::dead:beef%10]/ 4112s # Test 60: http://[fe80::dead:beef%10]/ 4112s # Test 61: http://[fe80::dead:beef%25]/ 4112s # Test 62: http://[fe80::dead:beef%25]/ 4112s # Test 63: http://[192.168.0.1%25em1]/ 4112s # Test 64: http://[fe80::dead:beef%2em1]/ 4112s # Test 65: http://[fe80::dead:beef%2em1]/ 4112s # Test 66: http://[fe80::dead:beef%25em1%00]/ 4112s # Test 67: http://[fe80::dead:beef%25em1%00]/ 4112s # Test 68: http://xn--mixed-üp/ 4112s # Test 69: data:./// 4112s # Test 70: data:/.// 4112s ok 19 /uri/parsing/absolute 4112s ok 20 /uri/parsing/relative 4112s # End of parsing tests 4112s # Start of iter-params tests 4112s # URI 0: p1=foo&p2=bar;p3=baz 4112s # URI 1: p1=foo&p2=bar 4112s # URI 2: p1=foo&&P1=bar 4112s # URI 3: %00=foo 4112s # URI 4: p1=%00 4112s # URI 5: p1=foo&p1=bar 4112s # URI 6: p1=foo&P1=bar 4112s # URI 7: =% 4112s # URI 8: = 4112s # URI 9: foo 4112s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 4112s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 4112s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 4112s ok 21 /uri/iter-params/nul-terminated 4112s # URI 0: p1=foo&p2=bar;p3=baz 4112s # URI 1: p1=foo&p2=bar 4112s # URI 2: p1=foo&&P1=bar 4112s # URI 3: %00=foo 4112s # URI 4: p1=%00 4112s # URI 5: p1=foo&p1=bar 4112s # URI 6: p1=foo&P1=bar 4112s # URI 7: =% 4112s # URI 8: = 4112s # URI 9: foo 4112s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 4112s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 4112s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 4112s ok 22 /uri/iter-params/length 4112s # End of iter-params tests 4112s # Start of parse-params tests 4112s # URI 0: p1=foo&p2=bar;p3=baz 4112s # URI 1: p1=foo&p2=bar 4112s # URI 2: p1=foo&&P1=bar 4112s # URI 3: %00=foo 4112s # URI 4: p1=%00 4112s # URI 5: p1=foo&p1=bar 4112s # URI 6: p1=foo&P1=bar 4112s # URI 7: =% 4112s # URI 8: = 4112s # URI 9: foo 4112s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 4112s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 4112s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 4112s ok 23 /uri/parse-params/nul-terminated 4112s # URI 0: p1=foo&p2=bar;p3=baz 4112s # URI 1: p1=foo&p2=bar 4112s # URI 2: p1=foo&&P1=bar 4112s # URI 3: %00=foo 4112s # URI 4: p1=%00 4112s # URI 5: p1=foo&p1=bar 4112s # URI 6: p1=foo&P1=bar 4112s # URI 7: =% 4112s # URI 8: = 4112s # URI 9: foo 4112s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 4112s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 4112s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 4112s ok 24 /uri/parse-params/length 4112s # End of parse-params tests 4112s # End of uri tests 4112s TAP version 14 4112s # random seed: R02Se6dd23a4f344dc0edb36c875f879ad3c 4112s 1..55 4112s # Start of file tests 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/basic/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/basic/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/basic/.dirs/system-config1:/tmp/test_file_TR1KK3/file/basic/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/basic/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/basic/.dirs/system-data1:/tmp/test_file_TR1KK3/file/basic/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/basic/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/basic/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/basic/.dirs/runtime 4112s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4112s ok 1 /file/basic 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/build-filename/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/build-filename/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/build-filename/.dirs/system-config1:/tmp/test_file_TR1KK3/file/build-filename/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/build-filename/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/build-filename/.dirs/system-data1:/tmp/test_file_TR1KK3/file/build-filename/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/build-filename/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/build-filename/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/build-filename/.dirs/runtime 4112s ok 2 /file/build-filename 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/build-filenamev/.dirs/home 4112s ok - glib/uri.test 4112s # Running test: glib/file.test 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/build-filenamev/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/build-filenamev/.dirs/system-config1:/tmp/test_file_TR1KK3/file/build-filenamev/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/build-filenamev/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/build-filenamev/.dirs/system-data1:/tmp/test_file_TR1KK3/file/build-filenamev/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/build-filenamev/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/build-filenamev/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/build-filenamev/.dirs/runtime 4112s ok 3 /file/build-filenamev 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/parent/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/parent/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/parent/.dirs/system-config1:/tmp/test_file_TR1KK3/file/parent/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/parent/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/parent/.dirs/system-data1:/tmp/test_file_TR1KK3/file/parent/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/parent/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/parent/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/parent/.dirs/runtime 4112s ok 4 /file/parent 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/child/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/child/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/child/.dirs/system-config1:/tmp/test_file_TR1KK3/file/child/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/child/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/child/.dirs/system-data1:/tmp/test_file_TR1KK3/file/child/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/child/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/child/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/child/.dirs/runtime 4112s ok 5 /file/child 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/empty-path/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/empty-path/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/empty-path/.dirs/system-config1:/tmp/test_file_TR1KK3/file/empty-path/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/empty-path/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/empty-path/.dirs/system-data1:/tmp/test_file_TR1KK3/file/empty-path/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/empty-path/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/empty-path/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/empty-path/.dirs/runtime 4112s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 4112s # /file/empty-path summary: Check that creating a file with an empty path results in errors 4112s ok 6 /file/empty-path 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/type/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/type/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/type/.dirs/system-config1:/tmp/test_file_TR1KK3/file/type/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/type/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/type/.dirs/system-data1:/tmp/test_file_TR1KK3/file/type/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/type/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/type/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/type/.dirs/runtime 4112s ok 7 /file/type 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/parse-name/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/parse-name/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/parse-name/.dirs/system-config1:/tmp/test_file_TR1KK3/file/parse-name/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/parse-name/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/parse-name/.dirs/system-data1:/tmp/test_file_TR1KK3/file/parse-name/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/parse-name/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/parse-name/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/parse-name/.dirs/runtime 4112s ok 8 /file/parse-name 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/replace-load/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/replace-load/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/replace-load/.dirs/system-config1:/tmp/test_file_TR1KK3/file/replace-load/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/replace-load/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/replace-load/.dirs/system-data1:/tmp/test_file_TR1KK3/file/replace-load/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/replace-load/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/replace-load/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/replace-load/.dirs/runtime 4112s ok 9 /file/replace-load 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/replace-cancel/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/replace-cancel/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/replace-cancel/.dirs/system-config1:/tmp/test_file_TR1KK3/file/replace-cancel/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/replace-cancel/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/replace-cancel/.dirs/system-data1:/tmp/test_file_TR1KK3/file/replace-cancel/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/replace-cancel/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/replace-cancel/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/replace-cancel/.dirs/runtime 4112s # Bug Reference: https://bugzilla.gnome.org/629301 4112s ok 10 /file/replace-cancel 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/replace-symlink/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/replace-symlink/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/replace-symlink/.dirs/system-config1:/tmp/test_file_TR1KK3/file/replace-symlink/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/replace-symlink/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/replace-symlink/.dirs/system-data1:/tmp/test_file_TR1KK3/file/replace-symlink/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/replace-symlink/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/replace-symlink/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/replace-symlink/.dirs/runtime 4112s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 4112s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 4112s # Using temporary directory /tmp/test_file_TR1KK3/g_file_replace_symlink_KMHLK3 4112s ok 11 /file/replace-symlink 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/async-new-tmp/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/async-new-tmp/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_TR1KK3/file/async-new-tmp/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/async-new-tmp/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_TR1KK3/file/async-new-tmp/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/async-new-tmp/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/async-new-tmp/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/async-new-tmp/.dirs/runtime 4112s ok 12 /file/async-new-tmp 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/async-new-tmp-dir/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/async-new-tmp-dir/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_TR1KK3/file/async-new-tmp-dir/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/async-new-tmp-dir/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_TR1KK3/file/async-new-tmp-dir/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/async-new-tmp-dir/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/async-new-tmp-dir/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/async-new-tmp-dir/.dirs/runtime 4112s ok 13 /file/async-new-tmp-dir 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/async-delete/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/async-delete/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/async-delete/.dirs/system-config1:/tmp/test_file_TR1KK3/file/async-delete/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/async-delete/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/async-delete/.dirs/system-data1:/tmp/test_file_TR1KK3/file/async-delete/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/async-delete/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/async-delete/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/async-delete/.dirs/runtime 4112s ok 14 /file/async-delete 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/async-make-symlink/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/async-make-symlink/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_TR1KK3/file/async-make-symlink/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/async-make-symlink/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_TR1KK3/file/async-make-symlink/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/async-make-symlink/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/async-make-symlink/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/async-make-symlink/.dirs/runtime 4112s ok 15 /file/async-make-symlink 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/copy-preserve-mode/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/copy-preserve-mode/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_TR1KK3/file/copy-preserve-mode/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/copy-preserve-mode/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_TR1KK3/file/copy-preserve-mode/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/copy-preserve-mode/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/copy-preserve-mode/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/copy-preserve-mode/.dirs/runtime 4112s # Current umask: 2 4112s # Vector 0 4112s # Vector 1 4112s # Vector 2 4112s # Vector 3 4112s # Vector 4 4112s # Vector 5 4112s # Vector 6 4112s # Vector 7 4112s # Vector 8 4112s # Vector 9 4112s # Vector 10 4112s ok 16 /file/copy-preserve-mode 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/copy-async-with-closures/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/copy-async-with-closures/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_TR1KK3/file/copy-async-with-closures/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/copy-async-with-closures/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_TR1KK3/file/copy-async-with-closures/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/copy-async-with-closures/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/copy-async-with-closures/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/copy-async-with-closures/.dirs/runtime 4112s ok 17 /file/copy-async-with-closures 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/measure/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/measure/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/measure/.dirs/system-config1:/tmp/test_file_TR1KK3/file/measure/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/measure/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/measure/.dirs/system-data1:/tmp/test_file_TR1KK3/file/measure/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/measure/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/measure/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/measure/.dirs/runtime 4112s ok 18 /file/measure 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/measure-async/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/measure-async/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/measure-async/.dirs/system-config1:/tmp/test_file_TR1KK3/file/measure-async/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/measure-async/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/measure-async/.dirs/system-data1:/tmp/test_file_TR1KK3/file/measure-async/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/measure-async/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/measure-async/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/measure-async/.dirs/runtime 4112s ok 19 /file/measure-async 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/load-bytes/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/load-bytes/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/load-bytes/.dirs/system-config1:/tmp/test_file_TR1KK3/file/load-bytes/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/load-bytes/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/load-bytes/.dirs/system-data1:/tmp/test_file_TR1KK3/file/load-bytes/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/load-bytes/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/load-bytes/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/load-bytes/.dirs/runtime 4112s ok 20 /file/load-bytes 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/load-bytes-async/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/load-bytes-async/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_TR1KK3/file/load-bytes-async/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/load-bytes-async/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_TR1KK3/file/load-bytes-async/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/load-bytes-async/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/load-bytes-async/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/load-bytes-async/.dirs/runtime 4112s ok 21 /file/load-bytes-async 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/load-bytes-4gb/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/load-bytes-4gb/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_TR1KK3/file/load-bytes-4gb/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/load-bytes-4gb/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_TR1KK3/file/load-bytes-4gb/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/load-bytes-4gb/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/load-bytes-4gb/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/load-bytes-4gb/.dirs/runtime 4112s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/load-contents-4gb/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/load-contents-4gb/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_TR1KK3/file/load-contents-4gb/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/load-contents-4gb/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_TR1KK3/file/load-contents-4gb/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/load-contents-4gb/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/load-contents-4gb/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/load-contents-4gb/.dirs/runtime 4112s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/load-contents-4gb-async/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/load-contents-4gb-async/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_TR1KK3/file/load-contents-4gb-async/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/load-contents-4gb-async/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_TR1KK3/file/load-contents-4gb-async/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/load-contents-4gb-async/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/load-contents-4gb-async/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/load-contents-4gb-async/.dirs/runtime 4112s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/.dirs/runtime 4112s ok 25 /file/writev 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/build-attribute-list-for-copy/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/build-attribute-list-for-copy/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_TR1KK3/file/build-attribute-list-for-copy/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/build-attribute-list-for-copy/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_TR1KK3/file/build-attribute-list-for-copy/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/build-attribute-list-for-copy/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/build-attribute-list-for-copy/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/build-attribute-list-for-copy/.dirs/runtime 4112s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 4112s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 4112s # 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::* 4112s # 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::* 4112s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 4112s # Attributes for copy: standard::size,xattr::* 4112s # Attributes for copy: standard::size,unix::mode,xattr::* 4112s ok 26 /file/build-attribute-list-for-copy 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/move_async/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/move_async/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/move_async/.dirs/system-config1:/tmp/test_file_TR1KK3/file/move_async/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/move_async/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/move_async/.dirs/system-data1:/tmp/test_file_TR1KK3/file/move_async/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/move_async/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/move_async/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/move_async/.dirs/runtime 4112s ok 27 /file/move_async 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/move-async-with-closures/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/move-async-with-closures/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_TR1KK3/file/move-async-with-closures/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/move-async-with-closures/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_TR1KK3/file/move-async-with-closures/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/move-async-with-closures/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/move-async-with-closures/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/move-async-with-closures/.dirs/runtime 4112s ok 28 /file/move-async-with-closures 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/query-zero-length-content-type/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/query-zero-length-content-type/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_TR1KK3/file/query-zero-length-content-type/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/query-zero-length-content-type/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_TR1KK3/file/query-zero-length-content-type/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/query-zero-length-content-type/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/query-zero-length-content-type/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/query-zero-length-content-type/.dirs/runtime 4112s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 4112s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 4112s ok 29 /file/query-zero-length-content-type 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/runtime 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/data/applications 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/config 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/config 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/config 4112s ok 30 /file/query-default-handler-file 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/runtime 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/data/applications 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/config 4112s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_TR1KK3/file/query-default-handler-file/.dirs/config to /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/config 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/config 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/config 4112s ok 31 /file/query-default-handler-file-async 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/runtime 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/data/applications 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/config 4112s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_TR1KK3/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/config 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/config 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/config 4112s ok 32 /file/query-default-handler-uri 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/runtime 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/data/applications 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/config 4112s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_TR1KK3/file/query-default-handler-uri/.dirs/config to /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/config 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/config 4112s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_TR1KK3/file/query-default-handler-uri-async/.dirs/config 4112s ok 33 /file/query-default-handler-uri-async 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/enumerator-cancellation/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/enumerator-cancellation/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_TR1KK3/file/enumerator-cancellation/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/enumerator-cancellation/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_TR1KK3/file/enumerator-cancellation/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/enumerator-cancellation/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/enumerator-cancellation/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/enumerator-cancellation/.dirs/runtime 4112s ok 34 /file/enumerator-cancellation 4112s # Start of async-create-delete tests 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/async-create-delete/0/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/0/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_TR1KK3/file/async-create-delete/0/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/0/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_TR1KK3/file/async-create-delete/0/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/0/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/0/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/async-create-delete/0/.dirs/runtime 4112s ok 35 /file/async-create-delete/0 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/async-create-delete/1/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/1/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_TR1KK3/file/async-create-delete/1/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/1/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_TR1KK3/file/async-create-delete/1/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/1/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/1/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/async-create-delete/1/.dirs/runtime 4112s ok 36 /file/async-create-delete/1 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/async-create-delete/10/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/10/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_TR1KK3/file/async-create-delete/10/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/10/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_TR1KK3/file/async-create-delete/10/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/10/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/10/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/async-create-delete/10/.dirs/runtime 4112s ok 37 /file/async-create-delete/10 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/async-create-delete/25/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/25/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_TR1KK3/file/async-create-delete/25/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/25/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_TR1KK3/file/async-create-delete/25/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/25/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/25/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/async-create-delete/25/.dirs/runtime 4112s ok 38 /file/async-create-delete/25 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/async-create-delete/4096/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/4096/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_TR1KK3/file/async-create-delete/4096/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/4096/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_TR1KK3/file/async-create-delete/4096/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/4096/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/async-create-delete/4096/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/async-create-delete/4096/.dirs/runtime 4112s ok 39 /file/async-create-delete/4096 4112s # End of async-create-delete tests 4112s # Start of replace-symlink tests 4112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/replace-symlink/using-etag/.dirs/home 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/replace-symlink/using-etag/.dirs/cache 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_TR1KK3/file/replace-symlink/using-etag/.dirs/system-config2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/replace-symlink/using-etag/.dirs/config 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_TR1KK3/file/replace-symlink/using-etag/.dirs/system-data2 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/replace-symlink/using-etag/.dirs/data 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/replace-symlink/using-etag/.dirs/state 4112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/replace-symlink/using-etag/.dirs/runtime 4112s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 4112s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 4112s # Using temporary directory /tmp/test_file_TR1KK3/g_file_replace_symlink_using_etag_NI2AK3 4114s ok 40 /file/replace-symlink/using-etag 4114s # slow test /file/replace-symlink/using-etag executed in 2.00 secs 4114s # End of replace-symlink tests 4114s # Start of replace tests 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/replace/write-only/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/replace/write-only/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/replace/write-only/.dirs/system-config1:/tmp/test_file_TR1KK3/file/replace/write-only/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/replace/write-only/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/replace/write-only/.dirs/system-data1:/tmp/test_file_TR1KK3/file/replace/write-only/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/replace/write-only/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/replace/write-only/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/replace/write-only/.dirs/runtime 4114s # /file/replace/write-only summary: Test various situations for g_file_replace() 4114s # Current umask: 2 4114s # Test 0, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_10YAK3 4114s # Test 1, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_Z5YAK3 4114s # Test 2, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_PAWAK3 4114s # Test 3, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_OUTAK3 4114s # Test 4, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_B1TAK3 4114s # Test 5, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_LNIBK3 4114s # Test 6, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_3EHBK3 4114s # Test 7, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_KHFBK3 4114s # Test 8, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_BNFBK3 4114s # Test 9, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_VTFBK3 4114s # Test 10, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_06CBK3 4114s # Test 11, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_ZEBBK3 4114s # Test 12, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_MTABK3 4114s # Test 13, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_2YABK3 4114s # Test 14, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_VN8AK3 4114s # Test 15, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_2DVBK3 4114s # Test 16, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_6XSBK3 4114s # Test 17, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_44QBK3 4114s # Test 18, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_UYOBK3 4114s # Test 19, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_OLNBK3 4114s # Test 20, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_CQLBK3 4114s # Test 21, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_CWE9J3 4114s # Test 22, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_SGC9J3 4114s # Test 23, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_PKC9J3 4114s # Test 24, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_TBB9J3 4114s # Test 25, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_FG98J3 4114s # Test 26, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_DM98J3 4114s # Test 27, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_0Y88J3 4114s # Test 28, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_IE68J3 4114s # Test 29, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_DI48J3 4114s # Test 30, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_NX38J3 4114s # Test 31, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_E038J3 4114s # Test 32, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_EO28J3 4114s # Test 33, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_DKP9J3 4114s # Test 34, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_ZOP9J3 4114s # Test 35, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_IUP9J3 4114s # Test 36, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_6PM9J3 4114s # Test 37, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_23K9J3 4114s # Test 38, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_GHI9J3 4114s # Test 39, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_K0F9J3 4114s # Test 40, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_U029J3 4114s # Test 41, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_KB09J3 4114s # Test 42, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_I3Y9J3 4114s # Test 43, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_DOW9J3 4114s # Test 44, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_2DV9J3 4114s # Test 45, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_GSU9J3 4114s # Test 46, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_DVS9J3 4114s # Test 47, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_B2S9J3 4114s # Test 48, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_XOFAK3 4114s # We do not have CAP_DAC_OVERRIDE or equivalent 4114s ok 41 /file/replace/write-only 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/replace/read-write/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/replace/read-write/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/replace/read-write/.dirs/system-config1:/tmp/test_file_TR1KK3/file/replace/read-write/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/replace/read-write/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/replace/read-write/.dirs/system-data1:/tmp/test_file_TR1KK3/file/replace/read-write/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/replace/read-write/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/replace/read-write/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/replace/read-write/.dirs/runtime 4114s # /file/replace/read-write summary: Test various situations for g_file_replace() 4114s # Current umask: 2 4114s # Test 0, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_V9EAK3 4114s # Test 1, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_2EFAK3 4114s # Test 2, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_MKDAK3 4114s # Test 3, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_12AAK3 4114s # Test 4, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_FJAAK3 4114s # Test 5, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_5NAAK3 4114s # Test 6, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_M879J3 4114s # Test 7, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_VH69J3 4114s # Test 8, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_XW59J3 4114s # Test 9, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_1Z59J3 4114s # Test 10, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_XULDK3 4114s # Test 11, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_A9KDK3 4114s # Test 12, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_LNKDK3 4114s # Test 13, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_OTKDK3 4114s # Test 14, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_YSIDK3 4114s # Test 15, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_1RGDK3 4114s # Test 16, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_LREDK3 4114s # Test 17, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_02CDK3 4114s # Test 18, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_BJADK3 4114s # Test 19, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_HXXDK3 4114s # Test 20, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_5EVDK3 4114s # Test 21, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_RDTDK3 4114s # Test 22, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_D1RDK3 4114s # Test 23, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_QERDK3 4114s # Test 24, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_BGPDK3 4114s # Test 25, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_GENDK3 4114s # Test 26, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_PLNDK3 4114s # Test 27, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_2QNDK3 4114s # Test 28, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_JIAEK3 4114s # Test 29, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_6J8DK3 4114s # Test 30, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_407DK3 4114s # Test 31, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_E47DK3 4114s # Test 32, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_9Y5DK3 4114s # Test 33, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_PK3DK3 4114s # Test 34, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_R02DK3 4114s # Test 35, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_742DK3 4114s # Test 36, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_TM0DK3 4114s # Test 37, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_1NOEK3 4114s # Test 38, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_SSMEK3 4114s # Test 39, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_GTKEK3 4114s # Test 40, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_E9HEK3 4114s # Test 41, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_WEGEK3 4114s # Test 42, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_FAEEK3 4114s # Test 43, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_X27BK3 4114s # Test 44, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_VO5BK3 4114s # Test 45, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_X14BK3 4114s # Test 46, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_LI4BK3 4114s # Test 47, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_XS3BK3 4114s # Test 48, using temporary directory /tmp/test_file_TR1KK3/g_file_replace_CD2BK3 4114s # We do not have CAP_DAC_OVERRIDE or equivalent 4114s ok 42 /file/replace/read-write 4114s # End of replace tests 4114s # Start of copy tests 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/copy/progress/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/copy/progress/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/copy/progress/.dirs/system-config1:/tmp/test_file_TR1KK3/file/copy/progress/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/copy/progress/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/copy/progress/.dirs/system-data1:/tmp/test_file_TR1KK3/file/copy/progress/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/copy/progress/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/copy/progress/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/copy/progress/.dirs/runtime 4114s ok 43 /file/copy/progress 4114s # End of copy tests 4114s # Start of writev tests 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/no-bytes-written/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/no-bytes-written/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/no-bytes-written/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/no-bytes-written/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/no-bytes-written/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/no-bytes-written/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/no-bytes-written/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/no-bytes-written/.dirs/runtime 4114s ok 44 /file/writev/no-bytes-written 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/no-vectors/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/no-vectors/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/no-vectors/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/no-vectors/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/no-vectors/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/no-vectors/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/no-vectors/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/no-vectors/.dirs/runtime 4114s ok 45 /file/writev/no-vectors 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/empty-vectors/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/empty-vectors/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/empty-vectors/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/empty-vectors/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/empty-vectors/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/empty-vectors/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/empty-vectors/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/empty-vectors/.dirs/runtime 4114s ok 46 /file/writev/empty-vectors 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/too-big-vectors/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/too-big-vectors/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/too-big-vectors/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/too-big-vectors/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/too-big-vectors/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/too-big-vectors/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/too-big-vectors/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/too-big-vectors/.dirs/runtime 4114s ok 47 /file/writev/too-big-vectors 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/async/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/async/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/async/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/async/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/async/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/async/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/async/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/async/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/async/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/async/.dirs/runtime 4114s ok 48 /file/writev/async 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/async_all/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/async_all/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/async_all/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/async_all/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/async_all/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/async_all/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/async_all/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/async_all/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/async_all/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/async_all/.dirs/runtime 4114s ok 49 /file/writev/async_all 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/async_all-empty-vectors/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-empty-vectors/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/async_all-empty-vectors/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-empty-vectors/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/async_all-empty-vectors/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-empty-vectors/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-empty-vectors/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/async_all-empty-vectors/.dirs/runtime 4114s ok 50 /file/writev/async_all-empty-vectors 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/async_all-no-vectors/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-no-vectors/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/async_all-no-vectors/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-no-vectors/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/async_all-no-vectors/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-no-vectors/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-no-vectors/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/async_all-no-vectors/.dirs/runtime 4114s ok 51 /file/writev/async_all-no-vectors 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/async_all-to-big-vectors/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-to-big-vectors/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/async_all-to-big-vectors/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-to-big-vectors/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/async_all-to-big-vectors/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-to-big-vectors/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-to-big-vectors/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/async_all-to-big-vectors/.dirs/runtime 4114s ok 52 /file/writev/async_all-to-big-vectors 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/writev/async_all-cancellation/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-cancellation/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_TR1KK3/file/writev/async_all-cancellation/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-cancellation/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_TR1KK3/file/writev/async_all-cancellation/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-cancellation/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/writev/async_all-cancellation/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/writev/async_all-cancellation/.dirs/runtime 4114s ok 53 /file/writev/async_all-cancellation 4114s # End of writev tests 4114s # Start of from-uri tests 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/from-uri/ignores-query-string/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/from-uri/ignores-query-string/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_TR1KK3/file/from-uri/ignores-query-string/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/from-uri/ignores-query-string/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_TR1KK3/file/from-uri/ignores-query-string/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/from-uri/ignores-query-string/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/from-uri/ignores-query-string/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/from-uri/ignores-query-string/.dirs/runtime 4114s ok 54 /file/from-uri/ignores-query-string 4114s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_TR1KK3/file/from-uri/ignores-fragment/.dirs/home 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_TR1KK3/file/from-uri/ignores-fragment/.dirs/cache 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_TR1KK3/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_TR1KK3/file/from-uri/ignores-fragment/.dirs/system-config2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_TR1KK3/file/from-uri/ignores-fragment/.dirs/config 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_TR1KK3/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_TR1KK3/file/from-uri/ignores-fragment/.dirs/system-data2 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_TR1KK3/file/from-uri/ignores-fragment/.dirs/data 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_TR1KK3/file/from-uri/ignores-fragment/.dirs/state 4114s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_TR1KK3/file/from-uri/ignores-fragment/.dirs/runtime 4114s ok 55 /file/from-uri/ignores-fragment 4114s # End of from-uri tests 4114s # End of file tests 4114s # Executing: glib/file.test 4114s ok - glib/file.test 4114s TAP version 14 4114s # random seed: R02Sfb800fe0a33d90cf930b4c0038d1dc12 4114s 1..47 4114s # Start of maincontext tests 4114s ok 1 /maincontext/basic 4114s # Running test: glib/mainloop.test 4114s # Add same-priority sources: 18 4114s # Find each source: 4 4114s # Remove in random order: 38 4114s ok 2 /maincontext/nsources_same_priority 4114s # Add different-priority sources: 20 4114s # Find each source: 4 4114s # Remove in random order: 44 4114s ok 3 /maincontext/nsources_different_priority 4115s # Add sources from threads: 239 4115s # Remove sources from threads: 90 4115s ok 4 /maincontext/nsources_threadpool 4115s ok 5 /maincontext/source_finalization 4115s # /maincontext/idle-once summary: Test g_idle_add_once() works 4115s ok 6 /maincontext/idle-once 4115s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 4115s ok 7 /maincontext/timeout-once 4115s # /maincontext/context-ref-in-source-callbackfuncs-unref summary: Tests if calling GSource API in GSourceCallbackFuncs.unref does not deadlock attempting to retrieve the relevant GMainContext. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 4115s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 4115s # Start of source_finalization_from_source tests 4115s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4115s ok 9 /maincontext/source_finalization_from_source/0 4115s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4115s ok 10 /maincontext/source_finalization_from_source/1 4115s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4115s ok 11 /maincontext/source_finalization_from_source/2 4115s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4115s ok 12 /maincontext/source_finalization_from_source/3 4115s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4115s ok 13 /maincontext/source_finalization_from_source/4 4115s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4115s ok 14 /maincontext/source_finalization_from_source/5 4115s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4115s ok 15 /maincontext/source_finalization_from_source/6 4115s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4115s ok 16 /maincontext/source_finalization_from_source/7 4115s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4115s ok 17 /maincontext/source_finalization_from_source/8 4115s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4115s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4115s ok 18 /maincontext/source_finalization_from_source/9 4115s # End of source_finalization_from_source tests 4115s # Start of source_finalization_from_dispatch tests 4115s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 4115s ok 19 /maincontext/source_finalization_from_dispatch/0 4115s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 4115s ok 20 /maincontext/source_finalization_from_dispatch/1 4115s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 4115s ok 21 /maincontext/source_finalization_from_dispatch/2 4115s # End of source_finalization_from_dispatch tests 4115s # End of maincontext tests 4115s # Start of mainloop tests 4115s ok 22 /mainloop/basic 4115s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 4115s ok 24 /mainloop/priorities 4115s ok 25 /mainloop/invoke 4115s # slow test /mainloop/invoke executed in 0.50 secs 4117s ok 26 /mainloop/child_sources 4117s # slow test /mainloop/child_sources executed in 1.19 secs 4119s ok 27 /mainloop/recursive_child_sources 4119s # slow test /mainloop/recursive_child_sources executed in 2.17 secs 4119s ok 28 /mainloop/recursive_loop_child_sources 4119s ok 29 /mainloop/swapping_child_sources 4119s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 4119s ok 30 /mainloop/blocked_child_sources 4119s # Executing: glib/mainloop.test 4120s ok 31 /mainloop/source_time 4120s # slow test /mainloop/source_time executed in 1.00 secs 4120s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 4120s ok 32 /mainloop/overflow 4120s ok 33 /mainloop/ready-time 4120s # slow test /mainloop/ready-time executed in 0.50 secs 4120s ok 34 /mainloop/wakeup 4120s ok 35 /mainloop/remove-invalid 4120s ok 36 /mainloop/unref-while-pending 4121s ok 37 /mainloop/unix-fd 4121s # slow test /mainloop/unix-fd executed in 0.55 secs 4121s ok 38 /mainloop/unix-fd-source 4121s ok 39 /mainloop/source-unix-fd-api 4121s ok 40 /mainloop/wait 4121s ok 41 /mainloop/unix-file-poll 4121s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 4121s ok 42 /mainloop/unix-fd-priority 4121s ok 43 /mainloop/nfds 4121s ok 44 /mainloop/steal-fd 4122s ok 45 /mainloop/simultaneous-source-context-destruction 4122s # slow test /mainloop/simultaneous-source-context-destruction executed in 1.28 secs 4122s # Start of ownerless-polling tests 4122s ok 46 /mainloop/ownerless-polling/attach-first 4122s ok 47 /mainloop/ownerless-polling/pop-first 4122s # End of ownerless-polling tests 4122s # End of mainloop tests 4122s ok - glib/mainloop.test 4122s # Running test: glib/node.test 4122s ok - glib/node.test 4122s # Running test: glib/memory-settings-backend.test 4122s TAP version 14 4122s # random seed: R02S5d0111881b2a34fe5a39c718583f0fda 4122s 1..6 4122s # Start of node tests 4122s ok 1 /node/allocation 4122s ok 2 /node/construction 4122s ok 3 /node/traversal 4122s ok 4 /node/misc 4122s ok 5 /node/unlink 4122s ok 6 /node/copy 4122s # End of node tests 4122s TAP version 14 4122s # random seed: R02S41ac516e278e347dd5b206823a4b67de 4122s 1..1 4122s # Start of memory-settings-backend tests 4122s ok 1 /memory-settings-backend/extension-point-registered 4122s # End of memory-settings-backend tests 4122s ok - glib/memory-settings-backend.test 4122s # Running test: glib/dir.test 4122s ok - glib/dir.test 4122s # Running test: glib/g-file.test 4122s ok - glib/g-file.test 4122s # Running test: glib/notify-init2.test 4122s ok - glib/notify-init2.test 4122s # Running test: glib/mutex.test 4122s TAP version 14 4122s # random seed: R02Sbf81c5d87eb4e2eb28d4cda26c71de42 4122s 1..3 4122s # Start of dir tests 4122s ok 1 /dir/read 4122s ok 2 /dir/nonexisting 4122s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 4122s ok 3 /dir/refcounting 4122s # End of dir tests 4122s TAP version 14 4122s # random seed: R02S7e7df2bd4a3c6e98be2dfdbcccf264fc 4122s 1..8 4122s # Start of g-file tests 4122s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4122s ok 1 /g-file/test_g_file_new_null 4122s ok 2 /g-file/test_g_file_new_for_path 4122s ok 3 /g-file/test_g_file_new_for_uri 4122s ok 4 /g-file/test_g_file_dup 4122s ok 5 /g-file/test_g_file_get_parse_name_utf8 4122s file:///tmp/test-tmp-glib_g-file.test-6LJ5J3 4122s file:///tmp 4122s file:///tmp 4122s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 4122s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 4122s ok 6 /g-file/test_g_file_new_for_commandline_arg 4122s /dir1 /dir1/dir2/dir3/ 4122s /dir1/ /dir1/dir2/dir3/ 4122s /dir1 /dir1/dir2/dir3 4122s /dir1/ /dir1/dir2/dir3 4122s /tmp/ /something/ 4122s /dir1/dir2 /dir1/ 4122s //dir1/new //dir1/new/dir2/dir3 4122s /dir/UTF-8 příliš žluťoučký kůň /dir/UTF-8 příliš žluťoučký kůň/dir2 4122s file:///dir1 file:///dir1/dir2/dir3/ 4122s file:///dir1/ file:///dir1/dir2/dir3/ 4122s file:///dir1 file:///dir1/dir2/dir3 4122s file:///dir1/ file:///dir1/dir2/dir3 4122s file:///tmp/ file:///something/ 4122s file:///dir1/dir2 file:///dir1/ 4122s file:////dir1/new file:////dir1/new/dir2/dir3 4122s 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 4122s ok 7 /g-file/test_g_file_has_prefix 4122s ok 8 /g-file/test_g_file_get_parent_child 4122s # End of g-file tests 4122s TAP version 14 4122s # random seed: R02S46e11dcedefb8c234d05669df17b34c4 4122s 1..1 4122s # Start of properties tests 4122s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 4122s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 4122s ok 1 /properties/notify-in-init2 4122s # End of properties tests 4122s TAP version 14 4122s # random seed: R02S7d40e7b632c15fecbf5f16a7a84c51bd 4122s 1..17 4122s # Start of thread tests 4122s ok 1 /thread/mutex1 4122s ok 2 /thread/mutex2 4122s ok 3 /thread/mutex3 4122s ok 4 /thread/mutex4 4124s # Executing: glib/mutex.test 4126s ok 5 /thread/mutex5 4126s # slow test /thread/mutex5 executed in 3.45 secs 4126s # Start of mutex tests 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s # /thread/mutex/errno summary: Validates that errno is not touched upon return 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 4126s ok 6 /thread/mutex/errno 4126s # Start of perf tests 4126s # max perf: inf mips 4126s ok 7 /thread/mutex/perf/uncontended 4126s # Start of contended tests 4126s # max perf: inf mips 4126s ok 8 /thread/mutex/perf/contended/1 4126s # max perf: 0.750000 mips 4126s ok 9 /thread/mutex/perf/contended/2 4126s # max perf: 0.022346 mips 4126s ok 10 /thread/mutex/perf/contended/3 4126s # max perf: 1.666667 mips 4126s ok 11 /thread/mutex/perf/contended/4 4126s # max perf: 6.000000 mips 4126s ok 12 /thread/mutex/perf/contended/5 4126s # max perf: 2.333333 mips 4126s ok 13 /thread/mutex/perf/contended/6 4126s # max perf: 2.666667 mips 4126s ok 14 /thread/mutex/perf/contended/7 4126s # max perf: 4.500000 mips 4126s ok 15 /thread/mutex/perf/contended/8 4126s # max perf: 5.000000 mips 4126s ok 16 /thread/mutex/perf/contended/9 4126s ok - glib/mutex.test 4126s # Running test: glib/keyfile.test 4126s # max perf: 5.500000 mips 4126s ok 17 /thread/mutex/perf/contended/10 4126s # End of contended tests 4126s # End of perf tests 4126s # End of mutex tests 4126s # End of thread tests 4126s TAP version 14 4126s # random seed: R02S0727411d80db39f97e3d7122c673385c 4126s 1..36 4126s # Start of keyfile tests 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/line-ends/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/line-ends/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/line-ends/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/line-ends/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/line-ends/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/line-ends/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/line-ends/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/line-ends/.dirs/runtime 4126s ok 1 /keyfile/line-ends 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/whitespace/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/whitespace/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/whitespace/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/whitespace/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/whitespace/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/whitespace/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/whitespace/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/whitespace/.dirs/runtime 4126s ok 2 /keyfile/whitespace 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/comments/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/comments/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/comments/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/comments/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/comments/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/comments/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/comments/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/comments/.dirs/runtime 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 4126s ok 3 /keyfile/comments 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/listing/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/listing/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/listing/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/listing/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/listing/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/listing/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/listing/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/listing/.dirs/runtime 4126s ok 4 /keyfile/listing 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/string/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/string/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/string/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/string/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/string/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/string/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/string/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/string/.dirs/runtime 4126s ok 5 /keyfile/string 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/boolean/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/boolean/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/boolean/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/boolean/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/boolean/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/boolean/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/boolean/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/boolean/.dirs/runtime 4126s ok 6 /keyfile/boolean 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/number/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/number/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/number/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/number/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/number/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/number/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/number/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/number/.dirs/runtime 4126s ok 7 /keyfile/number 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/locale-string/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/locale-string/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/.dirs/runtime 4126s ok 8 /keyfile/locale-string 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/lists/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/lists/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/lists/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/lists/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/lists/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/lists/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/lists/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/lists/.dirs/runtime 4126s ok 9 /keyfile/lists 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/lists-set-get/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/lists-set-get/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/lists-set-get/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/lists-set-get/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/lists-set-get/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/lists-set-get/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/lists-set-get/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/lists-set-get/.dirs/runtime 4126s ok 10 /keyfile/lists-set-get 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/group-remove/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/group-remove/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/group-remove/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/group-remove/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/group-remove/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/group-remove/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/group-remove/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/group-remove/.dirs/runtime 4126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 4126s ok 11 /keyfile/group-remove 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/key-remove/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/key-remove/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/key-remove/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/key-remove/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/key-remove/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/key-remove/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/key-remove/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/key-remove/.dirs/runtime 4126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 4126s ok 12 /keyfile/key-remove 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/groups/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/groups/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/groups/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/groups/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/groups/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/groups/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/groups/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/groups/.dirs/runtime 4126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 4126s ok 13 /keyfile/groups 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-keys/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-keys/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/duplicate-keys/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-keys/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/duplicate-keys/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-keys/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-keys/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-keys/.dirs/runtime 4126s ok 14 /keyfile/duplicate-keys 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups/.dirs/runtime 4126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 4126s ok 15 /keyfile/duplicate-groups 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups2/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups2/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups2/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups2/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups2/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups2/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups2/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/duplicate-groups2/.dirs/runtime 4126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 4126s ok 16 /keyfile/duplicate-groups2 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/group-names/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/group-names/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/group-names/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/group-names/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/group-names/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/group-names/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/group-names/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/group-names/.dirs/runtime 4126s ok 17 /keyfile/group-names 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/key-names/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/key-names/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/key-names/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/key-names/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/key-names/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/key-names/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/key-names/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/key-names/.dirs/runtime 4126s ok 18 /keyfile/key-names 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/reload/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/reload/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/reload/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/reload/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/reload/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/reload/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/reload/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/reload/.dirs/runtime 4126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 4126s ok 19 /keyfile/reload 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/int64/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/int64/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/int64/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/int64/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/int64/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/int64/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/int64/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/int64/.dirs/runtime 4126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 4126s ok 20 /keyfile/int64 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/load/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/load/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/load/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/load/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/load/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/load/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/load/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/load/.dirs/runtime 4126s ok 21 /keyfile/load 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/save/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/save/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/save/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/save/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/save/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/save/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/save/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/save/.dirs/runtime 4126s ok 22 /keyfile/save 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/load-fail/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/load-fail/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/load-fail/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/load-fail/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/load-fail/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/load-fail/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/load-fail/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/load-fail/.dirs/runtime 4126s ok 23 /keyfile/load-fail 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/non-utf8/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/non-utf8/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/non-utf8/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/non-utf8/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/non-utf8/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/non-utf8/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/non-utf8/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/non-utf8/.dirs/runtime 4126s ok 24 /keyfile/non-utf8 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/page-boundary/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/page-boundary/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/page-boundary/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/page-boundary/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/page-boundary/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/page-boundary/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/page-boundary/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/page-boundary/.dirs/runtime 4126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 4126s ok 25 /keyfile/page-boundary 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/ref/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/ref/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/ref/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/ref/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/ref/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/ref/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/ref/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/ref/.dirs/runtime 4126s ok 26 /keyfile/ref 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/replace-value/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/replace-value/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/replace-value/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/replace-value/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/replace-value/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/replace-value/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/replace-value/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/replace-value/.dirs/runtime 4126s ok 27 /keyfile/replace-value 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/list-separator/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/list-separator/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/list-separator/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/list-separator/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/list-separator/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/list-separator/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/list-separator/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/list-separator/.dirs/runtime 4126s ok 28 /keyfile/list-separator 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/empty-string/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/empty-string/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/empty-string/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/empty-string/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/empty-string/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/empty-string/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/empty-string/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/empty-string/.dirs/runtime 4126s ok 29 /keyfile/empty-string 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/limbo/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/limbo/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/limbo/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/limbo/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/limbo/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/limbo/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/limbo/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/limbo/.dirs/runtime 4126s ok 30 /keyfile/limbo 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/utf8/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/utf8/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/utf8/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/utf8/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/utf8/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/utf8/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/utf8/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/utf8/.dirs/runtime 4126s # Testing invalid encoding ‘non-UTF-8’ 4126s # Testing invalid encoding ‘UTF’ 4126s # Testing invalid encoding ‘UTF-9’ 4126s ok 31 /keyfile/utf8 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/roundtrip/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/roundtrip/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/roundtrip/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/roundtrip/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/roundtrip/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/roundtrip/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/roundtrip/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/roundtrip/.dirs/runtime 4126s ok 32 /keyfile/roundtrip 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/bytes/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/bytes/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/bytes/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/bytes/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/bytes/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/bytes/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/bytes/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/bytes/.dirs/runtime 4126s ok 33 /keyfile/bytes 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/get-locale/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/get-locale/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/get-locale/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/get-locale/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/get-locale/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/get-locale/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/get-locale/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/get-locale/.dirs/runtime 4126s ok 34 /keyfile/get-locale 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/free-when-not-last-ref/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/free-when-not-last-ref/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/free-when-not-last-ref/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/free-when-not-last-ref/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/free-when-not-last-ref/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/free-when-not-last-ref/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/free-when-not-last-ref/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/free-when-not-last-ref/.dirs/runtime 4126s ok 35 /keyfile/free-when-not-last-ref 4126s # Start of locale-string tests 4126s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/multiple-loads/.dirs/home 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/multiple-loads/.dirs/cache 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_4T3AK3/keyfile/locale-string/multiple-loads/.dirs/system-config2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/multiple-loads/.dirs/config 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_4T3AK3/keyfile/locale-string/multiple-loads/.dirs/system-data2 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/multiple-loads/.dirs/data 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/multiple-loads/.dirs/state 4126s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_4T3AK3/keyfile/locale-string/multiple-loads/.dirs/runtime 4126s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 4126s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 4126s ok 36 /keyfile/locale-string/multiple-loads 4126s # End of locale-string tests 4126s # End of keyfile tests 4126s TAP version 14 4126s # random seed: R02S48492305a3938661e9d362b0ed67066f 4126s 1..2 4126s # Start of properties tests 4126s # Start of custom-dispatch tests 4126s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 4126s ok 1 /properties/custom-dispatch/init 4126s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 4126s ok 2 /properties/custom-dispatch/set 4126s # End of custom-dispatch tests 4126s # End of properties tests 4126s TAP version 14 4126s # random seed: R02Scaa453805ceb2b00a8d9f561912658ff 4126s 1..4 4126s # Start of C tests 4126s ok 1 /C/standard-17 4126s # End of C tests 4126s # Start of alignof tests 4126s ok 2 /alignof/fallback 4126s # End of alignof tests 4126s # Start of assert tests 4126s ok 3 /assert/static 4126s # End of assert tests 4126s # Start of struct tests 4126s ok 4 /struct/sizeof_member 4126s # End of struct tests 4126s TAP version 14 4126s # random seed: R02Sc47cc0e1df8ecfbf9e6af9fbf3881953 4126s 1..4 4126s # Start of gobject tests 4126s ok 1 /gobject/references 4126s ok 2 /gobject/references-many 4126s ok 3 /gobject/references_two 4126s ok 4 /gobject/references_run_dispose 4126s # End of gobject tests 4126s TAP version 14 4126s # random seed: R02Sc7a08f00be532adbe240ae310157c7af 4126s 1..4 4126s # Start of gthread tests 4126s ok - glib/keyfile.test 4126s # Running test: glib/custom-dispatch.test 4126s ok - glib/custom-dispatch.test 4126s # Running test: glib/macros-c-17.test 4126s ok - glib/macros-c-17.test 4126s # Running test: glib/references.test 4126s ok - glib/references.test 4126s # Running test: glib/spawn-multithreaded.test 4127s # Child 28393 (ttl 1) exited, status 0 4128s # Child 28394 (ttl 2) exited, status 0 4128s ok 1 /gthread/spawn-childs 4128s # slow test /gthread/spawn-childs executed in 2.00 secs 4128s # Created pid: 28398 (ttl 1) 4128s # Created pid: 28399 (ttl 2) 4129s # Child 28398 (ttl 1) exited, status 0 4129s # Executing: glib/spawn-multithreaded.test 4130s # Child 28399 (ttl 2) exited, status 0 4130s ok 2 /gthread/spawn-childs-threads 4130s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 4130s ok 3 /gthread/spawn-sync 4130s ok - glib/spawn-multithreaded.test 4130s ok 4 /gthread/spawn-async 4130s # End of gthread tests 4130s # Running test: glib/pattern.test 4130s TAP version 14 4130s # random seed: R02S27db32191b0346e215a53ea7c0bcc9ef 4130s 1..90 4130s # Start of pattern tests 4130s ok - glib/pattern.test 4130s # Running test: glib/gdbus-test-codegen.test 4130s # Start of compile tests 4130s ok 1 /pattern/compile/0 4130s ok 2 /pattern/compile/1 4130s ok 3 /pattern/compile/2 4130s ok 4 /pattern/compile/3 4130s ok 5 /pattern/compile/4 4130s ok 6 /pattern/compile/5 4130s ok 7 /pattern/compile/6 4130s ok 8 /pattern/compile/7 4130s ok 9 /pattern/compile/8 4130s ok 10 /pattern/compile/9 4130s ok 11 /pattern/compile/10 4130s ok 12 /pattern/compile/11 4130s ok 13 /pattern/compile/12 4130s ok 14 /pattern/compile/13 4130s # End of compile tests 4130s # Start of copy tests 4130s ok 15 /pattern/copy/0 4130s ok 16 /pattern/copy/1 4130s ok 17 /pattern/copy/2 4130s ok 18 /pattern/copy/3 4130s ok 19 /pattern/copy/4 4130s ok 20 /pattern/copy/5 4130s ok 21 /pattern/copy/6 4130s ok 22 /pattern/copy/7 4130s ok 23 /pattern/copy/8 4130s ok 24 /pattern/copy/9 4130s ok 25 /pattern/copy/10 4130s ok 26 /pattern/copy/11 4130s ok 27 /pattern/copy/12 4130s ok 28 /pattern/copy/13 4130s # End of copy tests 4130s # Start of match tests 4130s ok 29 /pattern/match/0 4130s ok 30 /pattern/match/1 4130s ok 31 /pattern/match/2 4130s ok 32 /pattern/match/3 4130s ok 33 /pattern/match/4 4130s ok 34 /pattern/match/5 4130s ok 35 /pattern/match/6 4130s ok 36 /pattern/match/7 4130s ok 37 /pattern/match/8 4130s ok 38 /pattern/match/9 4130s ok 39 /pattern/match/10 4130s ok 40 /pattern/match/11 4130s ok 41 /pattern/match/12 4130s ok 42 /pattern/match/13 4130s ok 43 /pattern/match/14 4130s ok 44 /pattern/match/15 4130s ok 45 /pattern/match/16 4130s ok 46 /pattern/match/17 4130s ok 47 /pattern/match/18 4130s ok 48 /pattern/match/19 4130s ok 49 /pattern/match/20 4130s ok 50 /pattern/match/21 4130s ok 51 /pattern/match/22 4130s ok 52 /pattern/match/23 4130s ok 53 /pattern/match/24 4130s ok 54 /pattern/match/25 4130s ok 55 /pattern/match/26 4130s ok 56 /pattern/match/27 4130s ok 57 /pattern/match/28 4130s ok 58 /pattern/match/29 4130s ok 59 /pattern/match/30 4130s ok 60 /pattern/match/31 4130s ok 61 /pattern/match/32 4130s ok 62 /pattern/match/33 4130s ok 63 /pattern/match/34 4130s ok 64 /pattern/match/35 4130s ok 65 /pattern/match/36 4130s ok 66 /pattern/match/37 4130s ok 67 /pattern/match/38 4130s ok 68 /pattern/match/39 4130s ok 69 /pattern/match/40 4130s ok 70 /pattern/match/41 4130s ok 71 /pattern/match/42 4130s ok 72 /pattern/match/43 4130s ok 73 /pattern/match/44 4130s ok 74 /pattern/match/45 4130s ok 75 /pattern/match/46 4130s ok 76 /pattern/match/47 4130s ok 77 /pattern/match/48 4130s ok 78 /pattern/match/49 4130s ok 79 /pattern/match/50 4130s # End of match tests 4130s # Start of equal tests 4130s ok 80 /pattern/equal/0 4130s ok 81 /pattern/equal/1 4130s ok 82 /pattern/equal/2 4130s ok 83 /pattern/equal/3 4130s ok 84 /pattern/equal/4 4130s ok 85 /pattern/equal/5 4130s ok 86 /pattern/equal/6 4130s ok 87 /pattern/equal/7 4130s ok 88 /pattern/equal/8 4130s ok 89 /pattern/equal/9 4130s ok 90 /pattern/equal/10 4130s # End of equal tests 4130s # End of pattern tests 4130s TAP version 14 4130s # random seed: R02Scd683898dd9975c02df2bac4c9d693c9 4130s 1..8 4130s # Start of gdbus tests 4130s # Start of codegen tests 4130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/annotations/.dirs/home 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/annotations/.dirs/cache 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/annotations/.dirs/system-config2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/annotations/.dirs/config 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/annotations/.dirs/system-data2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/annotations/.dirs/data 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/annotations/.dirs/state 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/annotations/.dirs/runtime 4130s ok 1 /gdbus/codegen/annotations 4130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/interface_stability/.dirs/home 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/interface_stability/.dirs/cache 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/interface_stability/.dirs/system-config2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/interface_stability/.dirs/config 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/interface_stability/.dirs/system-data2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/interface_stability/.dirs/data 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/interface_stability/.dirs/state 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/interface_stability/.dirs/runtime 4130s ok 2 /gdbus/codegen/interface_stability 4130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/object-manager/.dirs/home 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/object-manager/.dirs/cache 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/object-manager/.dirs/system-config2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/object-manager/.dirs/config 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/object-manager/.dirs/system-data2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/object-manager/.dirs/data 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/object-manager/.dirs/state 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/object-manager/.dirs/runtime 4130s ok 3 /gdbus/codegen/object-manager 4130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/property-naming/.dirs/home 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/property-naming/.dirs/cache 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/property-naming/.dirs/system-config2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/property-naming/.dirs/config 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/property-naming/.dirs/system-data2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/property-naming/.dirs/data 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/property-naming/.dirs/state 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/property-naming/.dirs/runtime 4130s ok 4 /gdbus/codegen/property-naming 4130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/autocleanups/.dirs/home 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/autocleanups/.dirs/cache 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/autocleanups/.dirs/system-config2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/autocleanups/.dirs/config 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/autocleanups/.dirs/system-data2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/autocleanups/.dirs/data 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/autocleanups/.dirs/state 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/autocleanups/.dirs/runtime 4130s ok 5 /gdbus/codegen/autocleanups 4130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/deprecations/.dirs/home 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/deprecations/.dirs/cache 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/deprecations/.dirs/system-config2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/deprecations/.dirs/config 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/deprecations/.dirs/system-data2 4130s ok - glib/gdbus-test-codegen.test 4130s # Running test: glib/data-output-stream.test 4130s ok - glib/data-output-stream.test 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/deprecations/.dirs/data 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/deprecations/.dirs/state 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/deprecations/.dirs/runtime 4130s ok 6 /gdbus/codegen/deprecations 4130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/standalone-interface-info/.dirs/home 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/standalone-interface-info/.dirs/cache 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/standalone-interface-info/.dirs/config 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/standalone-interface-info/.dirs/data 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/standalone-interface-info/.dirs/state 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/standalone-interface-info/.dirs/runtime 4130s ok 7 /gdbus/codegen/standalone-interface-info 4130s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/unix-fd-list/.dirs/home 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/unix-fd-list/.dirs/cache 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/unix-fd-list/.dirs/system-config2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/unix-fd-list/.dirs/config 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/unix-fd-list/.dirs/system-data2 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/unix-fd-list/.dirs/data 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/unix-fd-list/.dirs/state 4130s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_8439J3/gdbus/codegen/unix-fd-list/.dirs/runtime 4130s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 4130s ok 8 /gdbus/codegen/unix-fd-list 4130s # End of codegen tests 4130s # End of gdbus tests 4130s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4130s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4130s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4130s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4130s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4130s TAP version 14 4130s # random seed: R02S33addcb31c5fee707cfd517da5fef21a 4130s 1..7 4130s # Start of data-output-stream tests 4130s ok 1 /data-output-stream/basic 4130s ok 2 /data-output-stream/write-lines-LF 4130s ok 3 /data-output-stream/write-lines-CR 4130s ok 4 /data-output-stream/write-lines-CR-LF 4130s ok 5 /data-output-stream/write-int 4130s ok 6 /data-output-stream/seek 4130s ok 7 /data-output-stream/truncate 4130s # End of data-output-stream tests 4130s # Running test: glib/unix-streams.test 4130s TAP version 14 4130s # random seed: R02S70f67f6858d2b3756e397d0a07768263 4130s 1..9 4130s # Start of unix-streams tests 4130s ok 1 /unix-streams/basic 4131s ok 2 /unix-streams/pipe-io-test 4131s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 4131s ok - glib/unix-streams.test 4131s ok 3 /unix-streams/nonblocking-io-test 4131s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 4131s ok 4 /unix-streams/read_write 4131s ok 5 /unix-streams/read_writev 4131s ok 6 /unix-streams/write-wouldblock 4131s ok 7 /unix-streams/writev-wouldblock 4131s ok 8 /unix-streams/write-async-wouldblock 4131s ok 9 /unix-streams/writev-async-wouldblock 4131s # End of unix-streams tests 4131s TAP version 14 4131s # random seed: R02S6c8d453d1dc69cabfb768dbcd85d8649 4131s 1..1 4131s # Start of glib tests 4131s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 4131s # Running test: glib/642026.test 4131s ok - glib/642026.test 4131s # Running test: glib/portal-support-snap-classic.test 4131s ok 1 /glib/642026 4131s # End of glib tests 4131s TAP version 14 4131s # random seed: R02S75046e38a60d98ccce541a17e12046fe 4131s 1..3 4131s # Start of portal-support tests 4131s # Start of snap-classic tests 4131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl/.dirs/home 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl/.dirs/cache 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl/.dirs/system-config2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl/.dirs/config 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl/.dirs/system-data2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl/.dirs/data 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl/.dirs/state 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl/.dirs/runtime 4131s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/no-snapctl: No such file or directory 4131s ok 1 /portal-support/snap-classic/no-snapctl 4131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/home 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/cache 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/system-config2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/config 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/system-data2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/data 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/state 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/runtime 4131s # Created snap.yaml in /tmp/test_portal-support-snap-classic_9B5BK3/meta/snap.yaml 4131s # Created snapctl in /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none/.dirs/runtime/snapctl 4131s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/none: No such file or directory 4131s ok 2 /portal-support/snap-classic/none 4131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/home 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/cache 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/system-config2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/config 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/system-data2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/data 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/state 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/runtime 4131s # Created snap.yaml in /tmp/test_portal-support-snap-classic_9B5BK3/meta/snap.yaml 4131s # Created snapctl in /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all/.dirs/runtime/snapctl 4131s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_9B5BK3/portal-support/snap-classic/all: No such file or directory 4131s ok 3 /portal-support/snap-classic/all 4131s # End of snap-classic tests 4131s # End of portal-support tests 4131s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_9B5BK3: No such file or directory 4131s ok - glib/portal-support-snap-classic.test 4131s # Running test: glib/relation.test 4131s ok - glib/relation.test 4131s # Running test: glib/collate.test 4131s ok - glib/collate.test 4131s # Running test: glib/gdbus-exit-on-close.test 4131s TAP version 14 4131s # random seed: R02S39ab285c01f9dbad0bc070ccc59d9552 4131s 1..1 4131s # Start of glib tests 4131s ok 1 /glib/relation 4131s # End of glib tests 4131s TAP version 14 4131s # random seed: R02S2ce0f578bd0ebcb4dd9168c62b8ca854 4131s 1..9 4131s # Start of unicode tests 4131s # Start of collate tests 4131s ok 1 /unicode/collate/0 4131s ok 2 /unicode/collate/1 4131s ok 3 /unicode/collate/2 4131s # End of collate tests 4131s # Start of collate-key tests 4131s ok 4 /unicode/collate-key/0 4131s ok 5 /unicode/collate-key/1 4131s ok 6 /unicode/collate-key/2 4131s # End of collate-key tests 4131s # Start of collate-filename tests 4131s ok 7 /unicode/collate-filename/0 4131s ok 8 /unicode/collate-filename/1 4131s ok 9 /unicode/collate-filename/2 4131s # End of collate-filename tests 4131s # End of unicode tests 4131s TAP version 14 4131s # random seed: R02Sabc9271a9326238c523644d1b295853e 4131s 1..4 4131s # Start of gdbus tests 4131s # Start of exit-on-close tests 4131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/default/.dirs/home 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/default/.dirs/cache 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/default/.dirs/system-config2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/default/.dirs/config 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/default/.dirs/system-data2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/default/.dirs/data 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/default/.dirs/state 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/default/.dirs/runtime 4131s ok 1 /gdbus/exit-on-close/default 4131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/true/.dirs/home 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/true/.dirs/cache 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/true/.dirs/system-config2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/true/.dirs/config 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/true/.dirs/system-data2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/true/.dirs/data 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/true/.dirs/state 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/true/.dirs/runtime 4131s ok 2 /gdbus/exit-on-close/true 4131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/false/.dirs/home 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/false/.dirs/cache 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/false/.dirs/system-config2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/false/.dirs/config 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/false/.dirs/system-data2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/false/.dirs/data 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/false/.dirs/state 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/false/.dirs/runtime 4131s ok 3 /gdbus/exit-on-close/false 4131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/we-close/.dirs/home 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/we-close/.dirs/cache 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/we-close/.dirs/system-config2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/we-close/.dirs/config 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/we-close/.dirs/system-data2 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/we-close/.dirs/data 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/we-close/.dirs/state 4131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_JCDCK3/gdbus/exit-on-close/we-close/.dirs/runtime 4132s ok 4 /gdbus/exit-on-close/we-close 4132s # Start of default tests 4132s # End of default tests 4132s # Start of true tests 4132s # End of true tests 4132s # Start of false tests 4132s # End of false tests 4132s # Start of we-close tests 4132s # End of we-close tests 4132s # End of exit-on-close tests 4132s # End of gdbus tests 4132s ok - glib/gdbus-exit-on-close.test 4132s # Running test: glib/unicode-encoding.test 4132s TAP version 14 4132s # random seed: R02S0fde19615409c218fc2a23c70be45fc7 4132s 1..1 4132s # Start of unicode tests 4132s ok 1 /unicode/encoding 4132s # End of unicode tests 4132s ok - glib/unicode-encoding.test 4132s # Running test: glib/cxx-14.test 4132s TAP version 14 4132s # random seed: R02Sdde57db066b2bee75134c4fa8b6ee108 4132s 1..2 4132s # Start of gtask tests 4132s # 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. 4132s ok 1 /gtask/name 4132s # Start of name tests 4132s # 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. 4132s ok 2 /gtask/name/macro-wrapper 4132s # End of name tests 4132s # End of gtask tests 4132s ok - glib/cxx-14.test 4132s TAP version 14 4132s # random seed: R02Sdab8e4f7994573f05134af38c12796c9 4132s 1..2 4132s # Start of gtask tests 4132s # 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. 4132s ok 1 /gtask/name 4132s # Start of name tests 4132s # 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. 4132s ok 2 /gtask/name/macro-wrapper 4132s # End of name tests 4132s # End of gtask tests 4132s # Running test: glib/cxx-17.test 4132s ok - glib/cxx-17.test 4132s # Running test: glib/cxx.test 4132s TAP version 14 4132s # random seed: R02Sd85d661d0cff12bcaee66ba3c6f4f93d 4132s 1..2 4132s # Start of gtask tests 4132s # 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. 4132s ok 1 /gtask/name 4132s # Start of name tests 4132s # 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. 4132s ok 2 /gtask/name/macro-wrapper 4132s # End of name tests 4132s # End of gtask tests 4132s ok - glib/cxx.test 4132s # Running test: glib/gdatetime.test 4132s TAP version 14 4132s # random seed: R02Sf2264a28eea4f3c4accbe611e19250d7 4132s 1..68 4132s # Start of GDateTime tests 4132s # Bug Reference: http://bugzilla.gnome.org/702674 4132s ok 1 /GDateTime/invalid 4132s ok 2 /GDateTime/add_days 4132s ok 3 /GDateTime/add_full 4132s ok 4 /GDateTime/add_hours 4132s ok 5 /GDateTime/add_minutes 4132s ok 6 /GDateTime/add_months 4132s ok 7 /GDateTime/add_seconds 4132s ok 8 /GDateTime/add_weeks 4132s ok 9 /GDateTime/add_years 4132s ok 10 /GDateTime/compare 4132s ok 11 /GDateTime/diff 4132s ok 12 /GDateTime/equal 4132s ok 13 /GDateTime/get_day_of_week 4132s ok 14 /GDateTime/get_day_of_month 4132s ok 15 /GDateTime/get_day_of_year 4132s ok 16 /GDateTime/get_hour 4132s ok 17 /GDateTime/get_microsecond 4132s ok 18 /GDateTime/get_minute 4132s ok 19 /GDateTime/get_month 4132s ok 20 /GDateTime/get_second 4132s ok 21 /GDateTime/get_utc_offset 4132s ok 22 /GDateTime/get_year 4132s ok 23 /GDateTime/hash 4132s ok 24 /GDateTime/new_from_unix 4132s ok 25 /GDateTime/new_from_unix_utc 4132s ok 26 /GDateTime/new_from_timeval 4132s ok 27 /GDateTime/new_from_timeval_utc 4132s ok 28 /GDateTime/new_from_iso8601 4132s ok 29 /GDateTime/new_full 4132s ok 30 /GDateTime/now 4132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 4132s ok 31 /GDateTime/test-6-days-until-end-of-the-month 4132s # %a -> expected: Sat 4132s # %a -> actual: Sat 4132s # %A -> expected: Saturday 4132s # %A -> actual: Saturday 4132s # %b -> expected: Oct 4132s # %b -> actual: Oct 4132s # %B -> expected: October 4132s # %B -> actual: October 4132s # %d -> expected: 24 4132s # %d -> actual: 24 4132s # %d -> expected: 01 4132s # %d -> actual: 01 4132s # %e -> expected: 24 4132s # %e -> actual: 24 4132s # %e -> expected:  1 4132s # %e -> actual:  1 4132s # %f -> expected: 001000 4132s # %f -> actual: 001000 4132s # %h -> expected: Oct 4132s # %h -> actual: Oct 4132s # %H -> expected: 00 4132s # %H -> actual: 00 4132s # %H -> expected: 15 4132s # %H -> actual: 15 4132s # %I -> expected: 12 4132s # %I -> actual: 12 4132s # %I -> expected: 12 4132s # %I -> actual: 12 4132s # %I -> expected: 03 4132s # %I -> actual: 03 4132s # %j -> expected: 297 4132s # %j -> actual: 297 4132s # %k -> expected:  0 4132s # %k -> actual:  0 4132s # %k -> expected: 13 4132s # %k -> actual: 13 4132s # %l -> expected: 12 4132s # %l -> actual: 12 4132s # %I -> expected: 12 4132s # %I -> actual: 12 4132s # %l -> expected:  1 4132s # %l -> actual:  1 4132s # %l -> expected: 10 4132s # %l -> actual: 10 4132s # %m -> expected: 10 4132s # %m -> actual: 10 4132s # %M -> expected: 00 4132s # %M -> actual: 00 4132s # %p -> expected: AM 4132s # %p -> actual: AM 4132s # %p -> expected: PM 4132s # %p -> actual: PM 4132s # %P -> expected: am 4132s # %P -> actual: am 4132s # %P -> expected: pm 4132s # %P -> actual: pm 4132s # %r -> expected: 12:00:00 AM 4132s # %r -> actual: 12:00:00 AM 4132s # %r -> expected: 01:13:13 PM 4132s # %r -> actual: 01:13:13 PM 4132s # %R -> expected: 00:00 4132s # %R -> actual: 00:00 4132s # %R -> expected: 13:13 4132s # %R -> actual: 13:13 4132s # %S -> expected: 00 4132s # %S -> actual: 00 4132s # %t -> expected: 4132s # %t -> actual: 4132s # %u -> expected: 6 4132s # %u -> actual: 6 4132s # %x -> expected: 10/24/09 4132s # %x -> actual: 10/24/09 4132s # %X -> expected: 00:00:00 4132s # %X -> actual: 00:00:00 4132s # %X -> expected: 13:14:15 4132s # %X -> actual: 13:14:15 4132s # %y -> expected: 09 4132s # %y -> actual: 09 4132s # %Y -> expected: 2009 4132s # %Y -> actual: 2009 4132s # %% -> expected: % 4132s # %% -> actual: % 4132s # % -> expected: 4132s # % -> actual: 4132s # %9 -> expected: (null) 4132s # %9 -> actual: (null) 4132s # %Z -> expected: UTC 4132s # %Z -> actual: UTC 4132s # %#Z %Z -> expected: utc UTC 4132s # %#Z %Z -> actual: utc UTC 4132s ok 32 /GDateTime/printf 4132s # %a -> expected: 土 4132s # %a -> actual: 土 4132s # %A -> expected: 土曜日 4132s # %A -> actual: 土曜日 4132s # %b -> expected: 10月 4132s # %b -> actual: 10月 4132s # %B -> expected: 10月 4132s # %B -> actual: 10月 4132s # %c -> expected: 2009年10月24日 00時00分00秒 4132s # %c -> actual: 2009年10月24日 00時00分00秒 4132s # %C -> expected: 20 4132s # %C -> actual: 20 4132s # %d -> expected: 24 4132s # %d -> actual: 24 4132s # %d -> expected: 01 4132s # %d -> actual: 01 4132s # %e -> expected: 24 4132s # %e -> actual: 24 4132s # %h -> expected: 10月 4132s # %h -> actual: 10月 4132s # %H -> expected: 00 4132s # %H -> actual: 00 4132s # %H -> expected: 15 4132s # %H -> actual: 15 4132s # %I -> expected: 12 4132s # %I -> actual: 12 4132s # %I -> expected: 12 4132s # %I -> actual: 12 4132s # %I -> expected: 03 4132s # %I -> actual: 03 4132s # %j -> expected: 297 4132s # %j -> actual: 297 4132s # %k -> expected:  0 4132s # %k -> actual:  0 4132s # %k -> expected: 13 4132s # %k -> actual: 13 4132s # %l -> expected: 12 4132s # %l -> actual: 12 4132s # %I -> expected: 12 4132s # %I -> actual: 12 4132s # %l -> expected:  1 4132s # %l -> actual:  1 4132s # %l -> expected: 10 4132s # %l -> actual: 10 4132s # %m -> expected: 10 4132s # %m -> actual: 10 4132s # %M -> expected: 00 4132s # %M -> actual: 00 4132s # %p -> expected: 午前 4132s # %p -> actual: 午前 4132s # %p -> expected: 午後 4132s # %p -> actual: 午後 4132s # %P -> expected: 午前 4132s # %P -> actual: 午前 4132s # %P -> expected: 午後 4132s # %P -> actual: 午後 4132s # %r -> expected: 午前12時00分00秒 4132s # %r -> actual: 午前12時00分00秒 4132s # %r -> expected: 午後01時13分13秒 4132s # %r -> actual: 午後01時13分13秒 4132s # %R -> expected: 00:00 4132s # %R -> actual: 00:00 4132s # %R -> expected: 13:13 4132s # %R -> actual: 13:13 4132s # %S -> expected: 00 4132s # %S -> actual: 00 4132s # %t -> expected: 4132s # %t -> actual: 4132s # %u -> expected: 6 4132s # %u -> actual: 6 4132s # %x -> expected: 2009年10月24日 4132s # %x -> actual: 2009年10月24日 4132s # %X -> expected: 00時00分00秒 4132s # %X -> actual: 00時00分00秒 4132s # %X -> expected: 13時14分15秒 4132s # %X -> actual: 13時14分15秒 4132s # %y -> expected: 09 4132s # %y -> actual: 09 4132s # %Y -> expected: 2009 4132s # %Y -> actual: 2009 4132s # %% -> expected: % 4132s # %% -> actual: % 4132s # % -> expected: 4132s # % -> actual: 4132s # %9 -> expected: (null) 4132s # %9 -> actual: (null) 4132s # %Ec -> expected: 平成21年10月24日 00時00分00秒 4132s # %Ec -> actual: 平成21年10月24日 00時00分00秒 4132s # %EC -> expected: 平成 4132s # %EC -> actual: 平成 4132s # %Ex -> expected: 平成21年10月24日 4132s # %Ex -> actual: 平成21年10月24日 4132s # %EX -> expected: 00時00分00秒 4132s # %EX -> actual: 00時00分00秒 4132s # %Ey -> expected: 21 4132s # %Ey -> actual: 21 4132s # %EY -> expected: 平成21年 4132s # %EY -> actual: 平成21年 4132s ok 33 /GDateTime/non_utf8_printf 4132s # ąśćł -> expected: ąśćł 4132s # ąśćł -> actual: ąśćł 4132s # %H∶%M -> expected: 23∶15 4132s # %H∶%M -> actual: 23∶15 4132s # %H∶%M -> expected: 23∶15 4132s # %H∶%M -> actual: 23∶15 4132s ok 34 /GDateTime/format_unrepresentable 4132s ok 35 /GDateTime/format_iso8601 4132s ok 36 /GDateTime/strftime 4132s # %d -> expected: 01 4132s # %d -> actual: 01 4132s # %_d -> expected: 1 4132s # %_d -> actual: 1 4132s # %-d -> expected: 1 4132s # %-d -> actual: 1 4132s # %0d -> expected: 01 4132s # %0d -> actual: 01 4132s # %d -> expected: 21 4132s # %d -> actual: 21 4132s # %_d -> expected: 21 4132s # %_d -> actual: 21 4132s # %-d -> expected: 21 4132s # %-d -> actual: 21 4132s # %0d -> expected: 21 4132s # %0d -> actual: 21 4132s # %e -> expected:  1 4132s # %e -> actual:  1 4132s # %_e -> expected: 1 4132s # %_e -> actual: 1 4132s # %-e -> expected: 1 4132s # %-e -> actual: 1 4132s # %0e -> expected: 01 4132s # %0e -> actual: 01 4132s # %e -> expected: 21 4132s # %e -> actual: 21 4132s # %_e -> expected: 21 4132s # %_e -> actual: 21 4132s # %-e -> expected: 21 4132s # %-e -> actual: 21 4132s # %0e -> expected: 21 4132s # %0e -> actual: 21 4132s # %a -> expected: Thu 4132s # %a -> actual: Thu 4132s # %^a -> expected: THU 4132s # %^a -> actual: THU 4132s # %#a -> expected: THU 4132s # %#a -> actual: THU 4132s # %A -> expected: Thursday 4132s # %A -> actual: Thursday 4132s # %^A -> expected: THURSDAY 4132s # %^A -> actual: THURSDAY 4132s # %#A -> expected: THURSDAY 4132s # %#A -> actual: THURSDAY 4132s # %b -> expected: Jan 4132s # %b -> actual: Jan 4132s # %^b -> expected: JAN 4132s # %^b -> actual: JAN 4132s # %#b -> expected: JAN 4132s # %#b -> actual: JAN 4132s # %B -> expected: January 4132s # %B -> actual: January 4132s # %^B -> expected: JANUARY 4132s # %^B -> actual: JANUARY 4132s # %#B -> expected: JANUARY 4132s # %#B -> actual: JANUARY 4132s # %h -> expected: Jan 4132s # %h -> actual: Jan 4132s # %^h -> expected: JAN 4132s # %^h -> actual: JAN 4132s # %#h -> expected: JAN 4132s # %#h -> actual: JAN 4132s # %Z -> expected: UTC 4132s # %Z -> actual: UTC 4132s # %^Z -> expected: UTC 4132s # %^Z -> actual: UTC 4132s # %#Z -> expected: utc 4132s # %#Z -> actual: utc 4132s # %H -> expected: 01 4132s # %H -> actual: 01 4132s # %_H -> expected: 1 4132s # %_H -> actual: 1 4132s # %-H -> expected: 1 4132s # %-H -> actual: 1 4132s # %0H -> expected: 01 4132s # %0H -> actual: 01 4132s # %H -> expected: 21 4132s # %H -> actual: 21 4132s # %_H -> expected: 21 4132s # %_H -> actual: 21 4132s # %-H -> expected: 21 4132s # %-H -> actual: 21 4132s # %0H -> expected: 21 4132s # %0H -> actual: 21 4132s # %I -> expected: 01 4132s # %I -> actual: 01 4132s # %_I -> expected: 1 4132s # %_I -> actual: 1 4132s # %-I -> expected: 1 4132s # %-I -> actual: 1 4132s # %0I -> expected: 01 4132s # %0I -> actual: 01 4132s # %I -> expected: 11 4132s # %I -> actual: 11 4132s # %_I -> expected: 11 4132s # %_I -> actual: 11 4132s # %-I -> expected: 11 4132s # %-I -> actual: 11 4132s # %0I -> expected: 11 4132s # %0I -> actual: 11 4132s # %k -> expected:  1 4132s # %k -> actual:  1 4132s # %_k -> expected: 1 4132s # %_k -> actual: 1 4132s # %-k -> expected: 1 4132s # %-k -> actual: 1 4132s # %0k -> expected: 01 4132s # %0k -> actual: 01 4132s # %l -> expected:  1 4132s # %l -> actual:  1 4132s # %_l -> expected: 1 4132s # %_l -> actual: 1 4132s # %-l -> expected: 1 4132s # %-l -> actual: 1 4132s # %0l -> expected: 01 4132s # %0l -> actual: 01 4132s # %l -> expected: 11 4132s # %l -> actual: 11 4132s # %_l -> expected: 11 4132s # %_l -> actual: 11 4132s # %-l -> expected: 11 4132s # %-l -> actual: 11 4132s # %0l -> expected: 11 4132s # %0l -> actual: 11 4132s # %p -> expected: AM 4132s # %p -> actual: AM 4132s # %^p -> expected: AM 4132s # %^p -> actual: AM 4132s # %#p -> expected: am 4132s # %#p -> actual: am 4132s # %P -> expected: am 4132s # %P -> actual: am 4132s # %^P -> expected: AM 4132s # %^P -> actual: AM 4132s # %#P -> expected: am 4132s # %#P -> actual: am 4132s # %OH -> expected: ۲۳ 4132s # %OH -> actual: ۲۳ 4132s # %OI -> expected: ۱۱ 4132s # %OI -> actual: ۱۱ 4132s # %OM -> expected: ۰۰ 4132s # %OM -> actual: ۰۰ 4132s # %Om -> expected: ۰۷ 4132s # %Om -> actual: ۰۷ 4132s # %0Om -> expected: ۰۷ 4132s # %0Om -> actual: ۰۷ 4132s # %-Om -> expected: ۷ 4132s # %-Om -> actual: ۷ 4132s # %_Om -> expected: ۷ 4132s # %_Om -> actual: ۷ 4132s # %c -> expected: thu 01 jan 2009 00:00:00 utc 4132s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 4132s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 4132s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 4132s # %C -> expected: 20 4132s # %C -> actual: 20 4132s # %EC -> expected: 20 4132s # %EC -> actual: 20 4132s # %x -> expected: 02/01/09 4132s # %x -> actual: 02/01/09 4132s # %Ex -> expected: 02/01/09 4132s # %Ex -> actual: 02/01/09 4132s # %X -> expected: 01:02:03 4132s # %X -> actual: 01:02:03 4132s # %EX -> expected: 01:02:03 4132s # %EX -> actual: 01:02:03 4132s # %y -> expected: 09 4132s # %y -> actual: 09 4132s # %Ey -> expected: 09 4132s # %Ey -> actual: 09 4132s # %Y -> expected: 2009 4132s # %Y -> actual: 2009 4132s # %EY -> expected: 2009 4132s # %EY -> actual: 2009 4132s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 4132s # Bug Reference: http://bugzilla.gnome.org/749206 4132s # %B -> expected: January 4132s # %B -> actual: January 4132s # %OB -> expected: February 4132s # %OB -> actual: February 4132s # %b -> expected: Mar 4132s # %b -> actual: Mar 4132s # %Ob -> expected: Apr 4132s # %Ob -> actual: Apr 4132s # %h -> expected: May 4132s # %h -> actual: May 4132s # %Oh -> expected: Jun 4132s # %Oh -> actual: Jun 4132s # %B -> expected: Juli 4132s # %B -> actual: Juli 4132s # %OB -> expected: August 4132s # %OB -> actual: August 4132s # %b -> expected: Sep 4132s # %b -> actual: Sep 4132s # %Ob -> expected: Okt 4132s # %Ob -> actual: Okt 4132s # %h -> expected: Nov 4132s # %h -> actual: Nov 4132s # %Oh -> expected: Dez 4132s # %Oh -> actual: Dez 4132s # %B -> expected: enero 4132s # %B -> actual: enero 4132s # %OB -> expected: febrero 4132s # %OB -> actual: febrero 4132s # %b -> expected: mar 4132s # %b -> actual: mar 4132s # %Ob -> expected: abr 4132s # %Ob -> actual: abr 4132s # %h -> expected: may 4132s # %h -> actual: may 4132s # %Oh -> expected: jun 4132s # %Oh -> actual: jun 4132s # %B -> expected: juillet 4132s # %B -> actual: juillet 4132s # %OB -> expected: août 4132s # %OB -> actual: août 4132s # %b -> expected: sept. 4132s # %b -> actual: sept. 4132s # %Ob -> expected: oct. 4132s # %Ob -> actual: oct. 4132s # %h -> expected: nov. 4132s # %h -> actual: nov. 4132s # %Oh -> expected: déc. 4132s # %Oh -> actual: déc. 4132s # %B -> expected: Ιανουαρίου 4132s # %B -> actual: Ιανουαρίου 4132s # %B -> expected: Φεβρουαρίου 4132s # %B -> actual: Φεβρουαρίου 4132s # %B -> expected: Μαρτίου 4132s # %B -> actual: Μαρτίου 4132s # %OB -> expected: Απρίλιος 4132s # %OB -> actual: Απρίλιος 4132s # %OB -> expected: Μάιος 4132s # %OB -> actual: Μάιος 4132s # %OB -> expected: Ιούνιος 4132s # %OB -> actual: Ιούνιος 4132s # %b -> expected: Ιουλ 4132s # %b -> actual: Ιουλ 4132s # %Ob -> expected: Αύγ 4132s # %Ob -> actual: Αύγ 4132s # %B -> expected: svibnja 4132s # %B -> actual: svibnja 4132s # %B -> expected: lipnja 4132s # %B -> actual: lipnja 4132s # %B -> expected: srpnja 4132s # %B -> actual: srpnja 4132s # %OB -> expected: Kolovoz 4132s # %OB -> actual: kolovoz 4132s # %OB -> expected: Rujan 4132s # %OB -> actual: rujan 4132s # %OB -> expected: Listopad 4132s # %OB -> actual: listopad 4132s # %b -> expected: Stu 4132s # %b -> actual: stu 4132s # %Ob -> expected: Pro 4132s # %Ob -> actual: pro 4132s # %B -> expected: sausio 4132s # %B -> actual: sausio 4132s # %B -> expected: vasario 4132s # %B -> actual: vasario 4132s # %B -> expected: kovo 4132s # %B -> actual: kovo 4132s # %OB -> expected: balandis 4132s # %OB -> actual: balandis 4132s # %OB -> expected: gegužė 4132s # %OB -> actual: gegužė 4132s # %OB -> expected: birželis 4132s # %OB -> actual: birželis 4132s # %b -> expected: liep. 4132s # %b -> actual: liep. 4132s # %Ob -> expected: rugp. 4132s # %Ob -> actual: rugp. 4132s # %B -> expected: maja 4132s # %B -> actual: maja 4132s # %B -> expected: czerwca 4132s # %B -> actual: czerwca 4132s # %B -> expected: lipca 4132s # %B -> actual: lipca 4132s # %OB -> expected: sierpień 4132s # %OB -> actual: sierpień 4132s # %OB -> expected: wrzesień 4132s # %OB -> actual: wrzesień 4132s # %OB -> expected: październik 4132s # %OB -> actual: październik 4132s # %b -> expected: lis 4132s # %b -> actual: lis 4132s # %Ob -> expected: gru 4132s # %Ob -> actual: gru 4132s # %B -> expected: января 4132s # %B -> actual: января 4132s # %B -> expected: февраля 4132s # %B -> actual: февраля 4132s # %B -> expected: марта 4132s # %B -> actual: марта 4132s # %OB -> expected: Апрель 4132s # %OB -> actual: Апрель 4132s # %OB -> expected: Май 4132s # %OB -> actual: Май 4132s # %OB -> expected: Июнь 4132s # %OB -> actual: Июнь 4132s # %b -> expected: июл 4132s # %b -> actual: июл 4132s # %Ob -> expected: авг 4132s # %Ob -> actual: авг 4132s # %b -> expected: мая 4132s # %b -> actual: мая 4132s # %Ob -> expected: май 4132s # %Ob -> actual: май 4132s ok 38 /GDateTime/month_names 4132s ok 39 /GDateTime/to_local 4132s ok 40 /GDateTime/to_unix 4132s ok 41 /GDateTime/to_timeval 4132s ok 42 /GDateTime/to_utc 4132s ok 43 /GDateTime/now_utc 4132s ok 44 /GDateTime/dst 4132s # Bug Reference: http://bugzilla.gnome.org/642935 4132s ok 45 /GDateTime/test_z 4133s ok 46 /GDateTime/test-all-dates 4133s # slow test /GDateTime/test-all-dates executed in 0.88 secs 4133s ok 47 /GDateTime/unix_usec 4133s # Start of new_from_unix tests 4133s # Bug Reference: http://bugzilla.gnome.org/782089 4133s ok 48 /GDateTime/new_from_unix/overflow 4133s # End of new_from_unix tests 4133s # Start of new_from_timeval tests 4133s # Bug Reference: http://bugzilla.gnome.org/782089 4133s # Maximum supported GTimeVal.tv_sec = 253402300799 4133s ok 49 /GDateTime/new_from_timeval/overflow 4133s # End of new_from_timeval tests 4133s # Start of new_from_iso8601 tests 4133s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 4133s # Vector 0: 1990-11-01T10:21:17Z 4133s # Vector 1: 19901101T102117Z 4133s # Vector 2: 1970-01-01T00:00:17.12Z 4133s # Vector 3: 1970-01-01T00:00:17.1234Z 4133s # Vector 4: 1970-01-01T00:00:17.123456Z 4133s # Vector 5: 1980-02-22T12:36:00+02:00 4133s # Vector 6: 1990-12-31T15:59:60-08:00 4133s # Vector 7: 4133s # Vector 8: x 4133s # Vector 9: 123x 4133s # Vector 10: 2001-10+x 4133s # Vector 11: 1980-02-22T 4133s # Vector 12: 2001-10-08Tx 4133s # Vector 13: 2001-10-08T10:11x 4133s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 4133s # Vector 15: 1980-02-22T10:36:00Zulu 4133s # Vector 16: 2T0+819855292164632335 4133s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 4133s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 4133s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 4133s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 4133s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 4133s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 4133s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 4133s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 4133s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 4133s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 4133s # Vector 27: 20180803T140805.446178377+0100 4133s # Vector 28: 21474836480803T140805.446178377+0100 4133s # Vector 29: 20181303T140805.446178377+0100 4133s # Vector 30: 20180003T140805.446178377+0100 4133s # Vector 31: 20180800T140805.446178377+0100 4133s # Vector 32: 20180832T140805.446178377+0100 4133s # Vector 33: 20180803T240805.446178377+0100 4133s # Vector 34: 20180803T146005.446178377+0100 4133s # Vector 35: 20180803T140863.446178377+0100 4133s # Vector 36: 20180803T140805.446178377+10000 4133s # Vector 37: -0005-01-01T00:00:00Z 4133s # Vector 38: 2018-08-06 4133s # Vector 39: 20180803T140805,446178377+0100 4133s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 4133s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 4133s # Vector 42: 1990-11-01T10:21:17 4133s # Vector 43: 1719W462 407777-07 4133s # Vector 44: 4011090 260528Z 4133s # Vector 45: 0000W011 228214-22 4133s ok 50 /GDateTime/new_from_iso8601/2 4133s # End of new_from_iso8601 tests 4133s # Start of format_mixed tests 4133s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 4133s # %b -> expected: mar 4133s # %b -> actual: Mar 4133s # %B -> expected: march 4133s # %B -> actual: March 4133s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 4133s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 4133s # %b -> expected: mar 4133s # %b -> actual: Mar 4133s # %B -> expected: march 4133s # %B -> actual: March 4133s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 4133s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 4133s # %b -> expected: Mär 4133s # %b -> actual: Mär 4133s # %B -> expected: März 4133s # %B -> actual: März 4133s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 4133s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 4133s # %b -> expected: Mär 4133s # %b -> actual: Mär 4133s # %B -> expected: März 4133s # %B -> actual: März 4133s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 4133s # End of format_mixed tests 4133s # Start of strftime tests 4133s # %r -> expected: (null) 4133s # %r -> actual: (null) 4133s ok 55 /GDateTime/strftime/error_handling 4133s # End of strftime tests 4133s # Start of eras tests 4133s # %Ec -> expected: 令和05年06月01日 00時00分00秒 4133s # %Ec -> actual: 令和05年06月01日 00時00分00秒 4133s # %EC -> expected: 令和 4133s # %EC -> actual: 令和 4133s # %Ex -> expected: 令和05年06月01日 4133s # %Ex -> actual: 令和05年06月01日 4133s # %EX -> expected: 00時00分00秒 4133s # %EX -> actual: 00時00分00秒 4133s # %Ey -> expected: 05 4133s # %Ey -> actual: 05 4133s # %EY -> expected: 令和05年 4133s # %EY -> actual: 令和05年 4133s # %Ec -> expected: 平成31年04月30日 00時00分00秒 4133s # %Ec -> actual: 平成31年04月30日 00時00分00秒 4133s # %EC -> expected: 平成 4133s # %EC -> actual: 平成 4133s # %Ex -> expected: 平成31年04月30日 4133s # %Ex -> actual: 平成31年04月30日 4133s # %EX -> expected: 00時00分00秒 4133s # %EX -> actual: 00時00分00秒 4133s # %Ey -> expected: 31 4133s # %Ey -> actual: 31 4133s # %EY -> expected: 平成31年 4133s # %EY -> actual: 平成31年 4133s # %Ec -> expected: 昭和元年12月25日 00時00分00秒 4133s # %Ec -> actual: 昭和元年12月25日 00時00分00秒 4133s # %EC -> expected: 昭和 4133s # %EC -> actual: 昭和 4133s # %Ex -> expected: 昭和元年12月25日 4133s # %Ex -> actual: 昭和元年12月25日 4133s # %EX -> expected: 00時00分00秒 4133s # %EX -> actual: 00時00分00秒 4133s # %Ey -> expected: 01 4133s # %Ey -> actual: 01 4133s # %EY -> expected: 昭和元年 4133s # %EY -> actual: 昭和元年 4133s ok 56 /GDateTime/eras/japan 4133s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 4133s # Vector 0: 4133s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 4133s # 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年 4133s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Ey年 4133s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Ey年 4133s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Ey年 4133s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Ey年 4133s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Ey年 4133s # Vector 8: + 4133s # Vector 9: +: 4133s # Vector 10: +:: 4133s # Vector 11: +:200 4133s # Vector 12: +:2nonsense 4133s # Vector 13: +:2nonsense: 4133s # Vector 14: +:2: 4133s # Vector 15: +:2:: 4133s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Ey年 4133s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Ey年 4133s # Vector 18: +:2:2020:+*:令和:%EC%Ey年 4133s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Ey年 4133s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Ey年 4133s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Ey年 4133s # Vector 22: +:2:2020/01:+*:令和:%EC%Ey年 4133s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Ey年 4133s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Ey年 4133s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Ey年 4133s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Ey年 4133s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Ey年 4133s # Vector 28: +:2:2020/01/01 4133s # Vector 29: +:2:2020/01/01: 4133s # Vector 30: +:2:2020/01/01:: 4133s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Ey年 4133s # Vector 32: +:2:2020/01/01:+* 4133s # Vector 33: +:2:2020/01/01:+*: 4133s # Vector 34: +:2:2020/01/01:+*:: 4133s # Vector 35: +:2:2020/01/01:+*:令和 4133s # Vector 36: +:2:2020/01/01:+*:令和: 4133s # Vector 37: +:2:2020/01/01:+*:令和:; 4133s ok 58 /GDateTime/eras/parsing 4133s # End of eras tests 4133s # End of GDateTime tests 4133s # Start of GTimeZone tests 4133s ok 59 /GTimeZone/find-interval 4133s ok 60 /GTimeZone/adjust-time 4133s ok 61 /GTimeZone/no-header 4133s ok - glib/gdatetime.test 4133s # Running test: glib/cxx-11.test 4133s ok - glib/cxx-11.test 4133s # Running test: glib/filenamecompleter.test 4133s ok - glib/filenamecompleter.test 4133s # Running test: glib/callable-info.test 4133s ok - glib/callable-info.test 4133s # Running test: glib/queue.test 4133s ok 62 /GTimeZone/no-header-identifier 4133s ok 63 /GTimeZone/posix-parse 4133s # Bug Reference: http://bugzilla.gnome.org/697715 4133s ok 64 /GTimeZone/floating-point 4133s # System time zone identifier: Etc/UTC 4133s ok 65 /GTimeZone/identifier 4133s # Vector 0: -158400 4133s # Vector 1: -10000 4133s # Vector 2: -3600 4133s # Vector 3: -61 4133s # Vector 4: -60 4133s # Vector 5: -59 4133s # Vector 6: 0 4133s # Vector 7: 59 4133s # Vector 8: 60 4133s # Vector 9: 61 4133s # Vector 10: 3600 4133s # Vector 11: 10000 4133s # Vector 12: 158400 4133s ok 66 /GTimeZone/new-offset 4133s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 4133s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 4133s ok 67 /GTimeZone/parse-rfc8536 4133s # /GTimeZone/caching summary: GTimeZone instances are cached 4133s ok 68 /GTimeZone/caching 4133s # End of GTimeZone tests 4133s TAP version 14 4133s # random seed: R02S2149a2334e6c6dea7dd6eda7aa3ea757 4133s 1..2 4133s # Start of gtask tests 4133s # 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. 4133s ok 1 /gtask/name 4133s # Start of name tests 4133s # 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. 4133s ok 2 /gtask/name/macro-wrapper 4133s # End of name tests 4133s # End of gtask tests 4133s TAP version 14 4133s # random seed: R02Sa8226b3942bf55514c29c8d635e45ff7 4133s 1..1 4133s # Start of filenamecompleter tests 4133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_filenamecompleter_KI3KK3/filenamecompleter/basic/.dirs/home 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_filenamecompleter_KI3KK3/filenamecompleter/basic/.dirs/cache 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_filenamecompleter_KI3KK3/filenamecompleter/basic/.dirs/system-config1:/tmp/test_filenamecompleter_KI3KK3/filenamecompleter/basic/.dirs/system-config2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_filenamecompleter_KI3KK3/filenamecompleter/basic/.dirs/config 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_filenamecompleter_KI3KK3/filenamecompleter/basic/.dirs/system-data1:/tmp/test_filenamecompleter_KI3KK3/filenamecompleter/basic/.dirs/system-data2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_filenamecompleter_KI3KK3/filenamecompleter/basic/.dirs/data 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_filenamecompleter_KI3KK3/filenamecompleter/basic/.dirs/state 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_filenamecompleter_KI3KK3/filenamecompleter/basic/.dirs/runtime 4133s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4133s ok 1 /filenamecompleter/basic 4133s # End of filenamecompleter tests 4133s TAP version 14 4133s # random seed: R02S64715b4f1632842021af1d22377cdcac 4133s 1..6 4133s # Start of callable-info tests 4133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_9ANLK3/callable-info/sync-function/.dirs/home 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/sync-function/.dirs/cache 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_9ANLK3/callable-info/sync-function/.dirs/system-config2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_9ANLK3/callable-info/sync-function/.dirs/config 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_9ANLK3/callable-info/sync-function/.dirs/system-data2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_9ANLK3/callable-info/sync-function/.dirs/data 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/sync-function/.dirs/state 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_9ANLK3/callable-info/sync-function/.dirs/runtime 4133s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4133s ok 1 /callable-info/sync-function 4133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_9ANLK3/callable-info/async-function/.dirs/home 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/async-function/.dirs/cache 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_9ANLK3/callable-info/async-function/.dirs/system-config2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_9ANLK3/callable-info/async-function/.dirs/config 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_9ANLK3/callable-info/async-function/.dirs/system-data2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_9ANLK3/callable-info/async-function/.dirs/data 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/async-function/.dirs/state 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_9ANLK3/callable-info/async-function/.dirs/runtime 4133s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4133s ok 2 /callable-info/async-function 4133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_9ANLK3/callable-info/is-method/.dirs/home 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/is-method/.dirs/cache 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_9ANLK3/callable-info/is-method/.dirs/system-config2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_9ANLK3/callable-info/is-method/.dirs/config 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_9ANLK3/callable-info/is-method/.dirs/system-data2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_9ANLK3/callable-info/is-method/.dirs/data 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/is-method/.dirs/state 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_9ANLK3/callable-info/is-method/.dirs/runtime 4133s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4133s ok 3 /callable-info/is-method 4133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_9ANLK3/callable-info/static-method/.dirs/home 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/static-method/.dirs/cache 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_9ANLK3/callable-info/static-method/.dirs/system-config2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_9ANLK3/callable-info/static-method/.dirs/config 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_9ANLK3/callable-info/static-method/.dirs/system-data2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_9ANLK3/callable-info/static-method/.dirs/data 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/static-method/.dirs/state 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_9ANLK3/callable-info/static-method/.dirs/runtime 4133s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4133s ok 4 /callable-info/static-method 4133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_9ANLK3/callable-info/static-vfunc/.dirs/home 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/static-vfunc/.dirs/cache 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_9ANLK3/callable-info/static-vfunc/.dirs/system-config2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_9ANLK3/callable-info/static-vfunc/.dirs/config 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_9ANLK3/callable-info/static-vfunc/.dirs/system-data2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_9ANLK3/callable-info/static-vfunc/.dirs/data 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/static-vfunc/.dirs/state 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_9ANLK3/callable-info/static-vfunc/.dirs/runtime 4133s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4133s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 4133s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 4133s # Start of platform tests 4133s # Start of unix tests 4133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_9ANLK3/callable-info/platform/unix/is-method/.dirs/home 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/platform/unix/is-method/.dirs/cache 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/platform/unix/is-method/.dirs/system-config1:/tmp/test_callable-info_9ANLK3/callable-info/platform/unix/is-method/.dirs/system-config2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_9ANLK3/callable-info/platform/unix/is-method/.dirs/config 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_9ANLK3/callable-info/platform/unix/is-method/.dirs/system-data1:/tmp/test_callable-info_9ANLK3/callable-info/platform/unix/is-method/.dirs/system-data2 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_9ANLK3/callable-info/platform/unix/is-method/.dirs/data 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_9ANLK3/callable-info/platform/unix/is-method/.dirs/state 4133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_9ANLK3/callable-info/platform/unix/is-method/.dirs/runtime 4133s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4133s # Checking DesktopAppInfo in Gio 4133s # Checking DesktopAppInfo in GioUnix 4133s ok 6 /callable-info/platform/unix/is-method 4133s # End of unix tests 4133s # End of platform tests 4133s # End of callable-info tests 4133s TAP version 14 4133s # random seed: R02S2f46c9a2729fa1ef181542a0a6a98b46 4133s 1..12 4133s # Start of queue tests 4133s ok 1 /queue/basic 4133s ok 2 /queue/copy 4133s ok 3 /queue/off-by-one 4133s ok 4 /queue/find-custom 4133s ok 5 /queue/static 4133s ok 6 /queue/clear 4133s ok 7 /queue/free-full 4133s ok 8 /queue/clear-full 4133s ok 9 /queue/insert-sibling-link 4133s ok 10 /queue/push-nth-link 4133s # Start of clear-full tests 4133s ok 11 /queue/clear-full/noop 4133s # End of clear-full tests 4133s # Start of random tests 4133s ok 12 /queue/random/seed:1430697532 4133s # End of random tests 4133s # End of queue tests 4133s ok - glib/queue.test 4133s # Running test: glib/messages-low-memory.py.test 4133s TAP version 13 4133s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 4133s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 4133s # tmpdir: /tmp/tmp9dcmv5ii 4133s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 4133s # Return code: -6 4133s # Output: 4133s # 4133s # Error: 4133s # GLib-Message: 01:05:00.833: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 4133s # GLib-Message: 01:05:00.833: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 4133s # ../../../glib/gprintf.c:351: failed to allocate memory 4133s 1..1 4133s ok - glib/messages-low-memory.py.test 4133s # Running test: glib/642026-ec.test 4133s TAP version 14 4133s # random seed: R02S1cb80387824eaf9a43ff4243b9e53cec 4133s 1..1 4133s # Start of glib tests 4133s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 4133s ok 1 /glib/642026 4133s # End of glib tests 4133s ok - glib/642026-ec.test 4133s # Running test: glib/timeout.test 4133s TAP version 14 4133s # random seed: R02S7aed4642808c7f31026c2363a46e425c 4133s 1..5 4133s # Start of timeout tests 4133s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 4134s # Executing: glib/timeout.test 4135s ok 1 /timeout/seconds 4135s # slow test /timeout/seconds executed in 2.10 secs 4137s ok 2 /timeout/seconds-once 4137s # slow test /timeout/seconds-once executed in 2.10 secs 4137s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 4139s ok 3 /timeout/weeks-overflow 4139s # slow test /timeout/weeks-overflow executed in 2.10 secs 4139s ok 4 /timeout/far-future-ready-time 4139s # Executing: glib/timeout.test 4165s # Executing: glib/timeout.test 4165s ok 5 /timeout/rounding 4165s # slow test /timeout/rounding executed in 10.11 secs 4165s # End of timeout tests 4165s # Executing: glib/timeout.test 4165s ok - glib/timeout.test 4165s # Running test: glib/refstring.test 4165s ok - glib/refstring.test 4165s # Running test: glib/unix.test 4165s # Executing: glib/unix.test 4165s ok - glib/unix.test 4165s # Running test: glib/power-profile-monitor-portal.test 4165s ok - glib/power-profile-monitor-portal.test 4166s TAP version 14 4166s # random seed: R02Sb665fdf95894793f5cf0208746a2f2ec 4166s 1..8 4166s # Start of refstring tests 4166s # s = 'hello, world' (0xb5e3030032c0) 4166s ok 1 /refstring/base 4166s ok 2 /refstring/length 4166s ok 3 /refstring/length-auto 4166s ok 4 /refstring/length-nuls 4166s # s = 'hello, world' (0xb5e303003160) 4166s # p = s = 'hello, world' (0xb5e303003160) 4166s # releasing p[0xb5e303003160] ('hello, world') 4166s # p = 'goodbye, world' (0xb5e3030032c0) 4166s # releasing p[0xb5e3030032c0] ('goodbye, world') 4166s # releasing s[0xb5e303003160] ('hello, world') 4166s ok 5 /refstring/intern 4166s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 4166s ok 6 /refstring/hash_equal 4166s # /refstring/equal summary: Test g_ref_string_equal() standalone 4166s ok 7 /refstring/equal 4166s ok 8 /refstring/intern-thread-safety 4166s # slow test /refstring/intern-thread-safety executed in 0.73 secs 4166s # End of refstring tests 4166s TAP version 14 4166s # random seed: R02Sc20b1ca9966791bbc3599eb64d0675c5 4166s 1..20 4166s # Start of glib-unix tests 4166s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 4166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 4166s ok 1 /glib-unix/closefrom 4166s ok 2 /glib-unix/pipe 4166s # /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 4166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 4166s ok 3 /glib-unix/pipe-stdio-overwrite 4166s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 4166s ok 4 /glib-unix/pipe-struct 4166s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 4166s ok 5 /glib-unix/pipe-struct-auto 4166s ok 6 /glib-unix/error 4166s ok 7 /glib-unix/nonblocking 4166s ok 8 /glib-unix/sighup 4166s # slow test /glib-unix/sighup executed in 0.50 secs 4166s ok 9 /glib-unix/sigterm 4166s # slow test /glib-unix/sigterm executed in 0.50 secs 4166s ok 10 /glib-unix/sighup_again 4166s # slow test /glib-unix/sighup_again executed in 0.50 secs 4166s ok 11 /glib-unix/sighup_add_remove 4166s ok 12 /glib-unix/sighup_nested 4166s ok 13 /glib-unix/callback_after_signal 4166s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 4166s ok 14 /glib-unix/child-wait 4166s # Start of closefrom tests 4166s # Start of subprocess tests 4166s # End of subprocess tests 4166s # End of closefrom tests 4166s # Start of pipe tests 4166s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 4166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 4166s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 4166s ok 15 /glib-unix/pipe/fd-cloexec 4166s # End of pipe tests 4166s # Start of sighup tests 4166s ok 16 /glib-unix/sighup/alternate-stack 4166s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 4166s # End of sighup tests 4166s # Start of sigterm tests 4166s ok 17 /glib-unix/sigterm/alternate-stack 4166s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 4166s # End of sigterm tests 4166s # Start of sighup_again tests 4166s ok 18 /glib-unix/sighup_again/alternate-stack 4166s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 4166s # End of sighup_again tests 4166s # Start of get-passwd-entry tests 4166s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 4166s ok 19 /glib-unix/get-passwd-entry/root 4166s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 4166s ok 20 /glib-unix/get-passwd-entry/nonexistent 4166s # End of get-passwd-entry tests 4166s # End of glib-unix tests 4166s TAP version 13 4166s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 4166s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 4166s 1..2 4166s # Running test: glib/gdbus-addresses.test 4166s TAP version 14 4166s # random seed: R02S36855b4430f5b017d684085f5a03fbc2 4166s 1..9 4166s # Start of gdbus tests 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/empty-address/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/empty-address/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_F81AK3/gdbus/empty-address/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/empty-address/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_F81AK3/gdbus/empty-address/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/empty-address/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/empty-address/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_F81AK3/gdbus/empty-address/.dirs/runtime 4166s ok 1 /gdbus/empty-address 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/unsupported-address/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/unsupported-address/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_F81AK3/gdbus/unsupported-address/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/unsupported-address/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_F81AK3/gdbus/unsupported-address/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/unsupported-address/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/unsupported-address/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_F81AK3/gdbus/unsupported-address/.dirs/runtime 4166s ok 2 /gdbus/unsupported-address 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/address-parsing/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/address-parsing/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_F81AK3/gdbus/address-parsing/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/address-parsing/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_F81AK3/gdbus/address-parsing/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/address-parsing/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/address-parsing/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_F81AK3/gdbus/address-parsing/.dirs/runtime 4166s ok 3 /gdbus/address-parsing 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/unix-address/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/unix-address/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_F81AK3/gdbus/unix-address/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/unix-address/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_F81AK3/gdbus/unix-address/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/unix-address/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/unix-address/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_F81AK3/gdbus/unix-address/.dirs/runtime 4166s ok 4 /gdbus/unix-address 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/nonce-tcp-address/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/nonce-tcp-address/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_F81AK3/gdbus/nonce-tcp-address/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/nonce-tcp-address/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_F81AK3/gdbus/nonce-tcp-address/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/nonce-tcp-address/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/nonce-tcp-address/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_F81AK3/gdbus/nonce-tcp-address/.dirs/runtime 4166s ok 5 /gdbus/nonce-tcp-address 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/tcp-address/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/tcp-address/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_F81AK3/gdbus/tcp-address/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/tcp-address/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_F81AK3/gdbus/tcp-address/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/tcp-address/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/tcp-address/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_F81AK3/gdbus/tcp-address/.dirs/runtime 4166s ok 6 /gdbus/tcp-address 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/autolaunch-address/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/autolaunch-address/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_F81AK3/gdbus/autolaunch-address/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/autolaunch-address/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_F81AK3/gdbus/autolaunch-address/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/autolaunch-address/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/autolaunch-address/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_F81AK3/gdbus/autolaunch-address/.dirs/runtime 4166s ok 7 /gdbus/autolaunch-address 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/mixed-address/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/mixed-address/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_F81AK3/gdbus/mixed-address/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/mixed-address/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_F81AK3/gdbus/mixed-address/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/mixed-address/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/mixed-address/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_F81AK3/gdbus/mixed-address/.dirs/runtime 4166s ok 8 /gdbus/mixed-address 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/escape-address/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/escape-address/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_F81AK3/gdbus/escape-address/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/escape-address/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_F81AK3/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_F81AK3/gdbus/escape-address/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/escape-address/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_F81AK3/gdbus/escape-address/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_F81AK3/gdbus/escape-address/.dirs/runtime 4166s ok 9 /gdbus/escape-address 4166s # End of gdbus tests 4166s TAP version 14 4166s # random seed: R02S512cdc77a93555621d9b459988b2495d 4166s 1..10 4166s # Start of timer tests 4166s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 4166s ok 2 /timer/stop 4166s ok 3 /timer/continue 4166s ok 4 /timer/reset 4166s ok 5 /timer/is_active 4166s # End of timer tests 4166s # Start of timeval tests 4166s ok 6 /timeval/add 4166s ok 7 /timeval/from-iso8601 4166s ok 8 /timeval/to-iso8601 4166s # Start of to-iso8601 tests 4166s ok 9 /timeval/to-iso8601/overflow 4166s # End of to-iso8601 tests 4166s # End of timeval tests 4166s # Start of usleep tests 4166s ok 10 /usleep/with-zero-wait 4166s # End of usleep tests 4166s TAP version 14 4166s # random seed: R02S60da26ece1734a18e6ae7f923d8da6aa 4166s 1..7 4166s # Start of file-thumbnail tests 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/runtime 4166s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 4166s ok 1 /file-thumbnail/fail 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/runtime 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 4166s ok 2 /file-thumbnail/size-priority 4166s # Start of valid tests 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/runtime 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 4166s ok 3 /file-thumbnail/valid/normal 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/runtime 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 4166s ok 4 /file-thumbnail/valid/large 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/runtime 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 4166s ok 5 /file-thumbnail/valid/x-large 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/runtime 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 4166s ok 6 /file-thumbnail/valid/xx-large 4166s # End of valid tests 4166s # Start of unknown tests 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/runtime 4166s # Created test thumbnail at /tmp/test_file-thumbnail_CGHBK3/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 4166s ok 7 /file-thumbnail/unknown/super-large 4166s # End of unknown tests 4166s # End of file-thumbnail tests 4166s TAP version 14 4166s # random seed: R02Seafcb688bd4ca95c969f0ce9b3a465d9 4166s 1..13 4166s # Start of appinfo tests 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/data/applications/mimeinfo.cache' 4166s ok 1 /appinfo/all 4166s # Start of mime tests 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/config 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/all/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/config 4166s ok 2 /appinfo/mime/api 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/config 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/config 4166s ok 3 /appinfo/mime/default 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/config 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/config 4166s ok 4 /appinfo/mime/file 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/config 4166s ok 5 /appinfo/mime/scheme-handler 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/config 4166s ok 6 /appinfo/mime/default-last-used 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/config 4166s ok 7 /appinfo/mime/ignore-nonexisting 4166s # End of mime tests 4166s # Start of mime-symlinked tests 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/system-data1/applications' 4166s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/system-data1/applications/mimeapps.list.c' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/config 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime/ignore-nonexisting/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/config 4166s ok 8 /appinfo/mime-symlinked/api 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/system-data1/applications/mimeapps.list.c' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/config 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/api/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/config 4166s ok 9 /appinfo/mime-symlinked/default 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/system-data1/applications/mimeapps.list.c' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/config 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/config 4166s ok 10 /appinfo/mime-symlinked/file 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications/mimeapps.list.c' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeinfo.cache' 4166s ok - glib/gdbus-addresses.test 4166s # Running test: glib/timer.test 4166s ok - glib/timer.test 4166s # Running test: glib/file-thumbnail.test 4166s ok - glib/file-thumbnail.test 4166s # Running test: glib/mimeapps.test 4166s ok - glib/mimeapps.test 4166s # Running test: glib/markup-subparser.test 4166s ok - glib/markup-subparser.test 4166s # Running test: glib/cxx-03.test 4166s ok - glib/cxx-03.test 4166s # Running test: glib/date.test 4166s ok - glib/date.test 4166s # Running test: glib/utf8-pointer.test 4166s ok - glib/utf8-pointer.test 4166s # Running test: glib/markup.test 4166s ok - glib/markup.test 4166s # Running test: glib/unicode-normalize.test 4166s ok - glib/unicode-normalize.test 4166s # Running test: glib/rec-mutex.test 4166s ok - glib/rec-mutex.test 4166s # Running test: glib/logging.test 4166s ok - glib/logging.test 4166s # Running test: glib/singleton.test 4166s ok - glib/singleton.test 4166s # Running test: glib/protocol.test 4166s ok - glib/protocol.test 4166s # Running test: glib/regex.test 4166s # Executing: glib/regex.test 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/file/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/config 4166s ok 11 /appinfo/mime-symlinked/scheme-handler 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications/mimeapps.list.c' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/scheme-handler/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/config 4166s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/config 4166s ok 12 /appinfo/mime-symlinked/default-last-used 4166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/home 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/cache 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data2 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/state 4166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/runtime 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list.c' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 4166s # removing '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 4166s # creating '/tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 4166s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/default-last-used/.dirs/config to /tmp/test_mimeapps_T07AK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 4166s ok 13 /appinfo/mime-symlinked/ignore-nonexisting 4166s # End of mime-symlinked tests 4166s # End of appinfo tests 4166s TAP version 14 4166s # random seed: R02S04b652e5d5b5a21b0b2f4d253b37b65e 4166s 1..14 4166s # Start of glib tests 4166s # Start of markup tests 4166s # Start of subparser tests 4166s # Start of success tests 4166s ok 1 /glib/markup/subparser/success/0 4166s ok 2 /glib/markup/subparser/success/1 4166s ok 3 /glib/markup/subparser/success/2 4166s ok 4 /glib/markup/subparser/success/3 4166s ok 5 /glib/markup/subparser/success/4 4166s ok 6 /glib/markup/subparser/success/5 4166s ok 7 /glib/markup/subparser/success/6 4166s # End of success tests 4166s # Start of failure tests 4166s ok 8 /glib/markup/subparser/failure/0 4166s ok 9 /glib/markup/subparser/failure/1 4166s ok 10 /glib/markup/subparser/failure/2 4166s ok 11 /glib/markup/subparser/failure/3 4166s ok 12 /glib/markup/subparser/failure/4 4166s ok 13 /glib/markup/subparser/failure/5 4166s ok 14 /glib/markup/subparser/failure/6 4166s # End of failure tests 4166s # End of subparser tests 4166s # End of markup tests 4166s # End of glib tests 4166s TAP version 14 4166s # random seed: R02Sc8994399aad7f8a3f915dfa5789a1a24 4166s 1..2 4166s # Start of gtask tests 4166s # 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. 4166s ok 1 /gtask/name 4166s # Start of name tests 4166s # 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. 4166s ok 2 /gtask/name/macro-wrapper 4166s # End of name tests 4166s # End of gtask tests 4166s TAP version 14 4166s # random seed: R02Sc4ea4202ebb72823210012fc4a2aa69f 4166s 1..122 4166s # Start of date tests 4166s ok 1 /date/basic 4166s ok 2 /date/empty 4166s ok 3 /date/dmy 4166s ok 4 /date/julian 4166s ok 5 /date/compare 4166s ok 6 /date/dates 4166s ok 7 /date/strftime 4166s ok 8 /date/two-digit-years 4166s ok 9 /date/parse 4166s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 4166s ok 11 /date/month_substring 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 4166s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 4166s ok 13 /date/clamp 4166s ok 14 /date/order 4166s ok 15 /date/copy 4166s # Vector 0: 0000-00-00, invalid 4166s # Vector 1: 0001-01-01, valid 4166s # Vector 2: 0000-01-01, invalid 4166s # Vector 3: 2000-02-30, invalid 4166s # Vector 4: 2000-02-29, valid 4166s # Vector 5: 2001-02-29, invalid 4166s # Vector 6: 65535-01-01, valid 4166s ok 16 /date/valid-dmy 4166s # Considering 2000-01-01 4166s # Considering 2000-01-07 4166s # Considering 2000-01-08 4166s # Considering 2001-01-01 4166s # Considering 2001-01-07 4166s # Considering 2001-01-08 4166s # Considering 2002-01-01 4166s # Considering 2002-01-07 4166s # Considering 2002-01-08 4166s # Considering 2003-01-01 4166s # Considering 2003-01-07 4166s # Considering 2003-01-08 4166s # Considering 2004-01-01 4166s # Considering 2004-01-07 4166s # Considering 2004-01-08 4166s # Considering 2006-01-01 4166s # Considering 2006-01-07 4166s # Considering 2006-01-08 4166s # Considering 2010-01-01 4166s # Considering 2010-01-07 4166s # Considering 2010-01-08 4166s ok 17 /date/week-of-year 4166s # Start of parse tests 4166s # Test 0 4166s # Test 1 4166s ok 18 /date/parse/invalid 4166s # End of parse tests 4166s # Start of year tests 4166s ok 19 /date/year/1 4166s ok 20 /date/year/2 4166s ok 21 /date/year/3 4166s ok 22 /date/year/4 4166s ok 23 /date/year/5 4166s ok 24 /date/year/6 4166s ok 25 /date/year/7 4166s ok 26 /date/year/8 4166s ok 27 /date/year/9 4166s ok 28 /date/year/10 4166s ok 29 /date/year/11 4166s ok 30 /date/year/12 4166s ok 31 /date/year/13 4166s ok 32 /date/year/14 4166s ok 33 /date/year/98 4166s ok 34 /date/year/99 4166s ok 35 /date/year/100 4166s ok 36 /date/year/101 4166s ok 37 /date/year/102 4166s ok 38 /date/year/103 4166s ok 39 /date/year/397 4166s ok 40 /date/year/398 4166s ok 41 /date/year/399 4166s ok 42 /date/year/400 4166s ok 43 /date/year/401 4166s ok 44 /date/year/402 4166s ok 45 /date/year/403 4166s ok 46 /date/year/404 4166s ok 47 /date/year/405 4166s ok 48 /date/year/406 4166s ok 49 /date/year/1598 4166s ok 50 /date/year/1599 4166s ok 51 /date/year/1600 4166s ok 52 /date/year/1601 4166s ok 53 /date/year/1602 4166s ok 54 /date/year/1650 4166s ok 55 /date/year/1651 4166s ok 56 /date/year/1897 4166s ok 57 /date/year/1898 4166s ok 58 /date/year/1899 4166s ok 59 /date/year/1900 4166s ok 60 /date/year/1901 4166s ok 61 /date/year/1902 4166s ok 62 /date/year/1903 4166s ok 63 /date/year/1961 4166s ok 64 /date/year/1962 4166s ok 65 /date/year/1963 4166s ok 66 /date/year/1964 4166s ok 67 /date/year/1965 4166s ok 68 /date/year/1967 4166s ok 69 /date/year/1968 4166s ok 70 /date/year/1969 4166s ok 71 /date/year/1970 4166s ok 72 /date/year/1971 4166s ok 73 /date/year/1972 4166s ok 74 /date/year/1973 4166s ok 75 /date/year/1974 4166s ok 76 /date/year/1975 4166s ok 77 /date/year/1976 4166s ok 78 /date/year/1977 4166s ok 79 /date/year/1978 4166s ok 80 /date/year/1979 4166s ok 81 /date/year/1980 4166s ok 82 /date/year/1981 4166s ok 83 /date/year/1982 4166s ok 84 /date/year/1983 4166s ok 85 /date/year/1984 4166s ok 86 /date/year/1985 4166s ok 87 /date/year/1986 4166s ok 88 /date/year/1987 4166s ok 89 /date/year/1988 4166s ok 90 /date/year/1989 4166s ok 91 /date/year/1990 4166s ok 92 /date/year/1991 4166s ok 93 /date/year/1992 4166s ok 94 /date/year/1993 4166s ok 95 /date/year/1994 4166s ok 96 /date/year/1995 4166s ok 97 /date/year/1996 4166s ok 98 /date/year/1997 4166s ok 99 /date/year/1998 4166s ok 100 /date/year/1999 4166s ok 101 /date/year/2000 4166s ok 102 /date/year/2001 4166s ok 103 /date/year/2002 4166s ok 104 /date/year/2003 4166s ok 105 /date/year/2004 4166s ok 106 /date/year/2005 4166s ok 107 /date/year/2006 4166s ok 108 /date/year/2007 4166s ok 109 /date/year/2008 4166s ok 110 /date/year/2009 4166s ok 111 /date/year/2010 4166s ok 112 /date/year/2011 4166s ok 113 /date/year/2012 4166s ok 114 /date/year/3000 4166s ok 115 /date/year/3001 4166s ok 116 /date/year/3002 4166s ok 117 /date/year/3998 4166s ok 118 /date/year/3999 4166s ok 119 /date/year/4000 4166s ok 120 /date/year/4001 4166s ok 121 /date/year/4002 4166s ok 122 /date/year/4003 4166s # End of year tests 4166s # End of date tests 4166s TAP version 14 4166s # random seed: R02S8cffc1757123cb51069c5c2fdd5f773b 4166s 1..3 4166s # Start of utf8 tests 4166s ok 1 /utf8/offsets 4166s # slow test /utf8/offsets executed in 0.91 secs 4166s ok 2 /utf8/lengths 4166s ok 3 /utf8/find 4166s # End of utf8 tests 4166s TAP version 14 4166s # random seed: R02Sce5f64ce721f654fc4df9dcd5437cbe2 4166s 1..1 4166s # Start of markup tests 4166s ok 1 /markup/stack 4166s # End of markup tests 4166s TAP version 14 4166s # random seed: R02S7bb74ba0afa677257004f6dffa346103 4166s 1..3 4166s # Start of unicode tests 4166s # Processing Part0 # Specific cases 4166s # Processing Part1 # Character by character test 4166s # Processing Part2 # Canonical Order Test 4166s # Processing Part3 # PRI #29 Test 4166s # Processing Part4 # Canonical closures (excluding Hangul) 4166s # Processing Part5 # Chained primary composites 4166s ok 1 /unicode/normalize 4166s # Invalid UTF-8 vector 0 4166s # Invalid UTF-8 vector 1 4166s # Invalid UTF-8 vector 2 4166s # Invalid UTF-8 vector 3 4166s # Invalid UTF-8 vector 4 4166s # Invalid UTF-8 vector 5 4166s # Invalid UTF-8 vector 6 4166s # Invalid UTF-8 vector 7 4166s # Invalid UTF-8 vector 8 4166s # Invalid UTF-8 vector 9 4166s # Invalid UTF-8 vector 10 4166s # Invalid UTF-8 vector 11 4166s # Invalid UTF-8 vector 12 4166s ok 2 /unicode/normalize-invalid 4166s # Start of normalize tests 4166s ok 3 /unicode/normalize/bad-length 4166s # End of normalize tests 4166s # End of unicode tests 4166s TAP version 14 4166s # random seed: R02Sd37bb76f7e380431a279851929d0404c 4166s 1..29 4166s # Start of thread tests 4166s ok 1 /thread/rec-mutex1 4166s ok 2 /thread/rec-mutex2 4166s ok 3 /thread/rec-mutex3 4166s ok 4 /thread/rec-mutex4 4166s # Start of rec-mutex tests 4166s # Start of perf tests 4166s # Start of uncontended tests 4166s # max perf: 1.000000 mips 4166s ok 5 /thread/rec-mutex/perf/uncontended/depth1 4166s # max perf: 1.000000 mips 4166s ok 6 /thread/rec-mutex/perf/uncontended/depth2 4166s # max perf: inf mips 4166s ok 7 /thread/rec-mutex/perf/uncontended/depth3 4166s # max perf: 1.000000 mips 4166s ok 8 /thread/rec-mutex/perf/uncontended/depth4 4166s # max perf: inf mips 4166s ok 9 /thread/rec-mutex/perf/uncontended/depth5 4166s # End of uncontended tests 4166s # Start of contended1 tests 4166s # max perf: inf mips 4166s ok 10 /thread/rec-mutex/perf/contended1/depth1 4166s # max perf: inf mips 4166s ok 11 /thread/rec-mutex/perf/contended1/depth2 4166s # max perf: inf mips 4166s ok 12 /thread/rec-mutex/perf/contended1/depth3 4166s # max perf: 2.000000 mips 4166s ok 13 /thread/rec-mutex/perf/contended1/depth4 4166s # max perf: inf mips 4166s ok 14 /thread/rec-mutex/perf/contended1/depth5 4166s # End of contended1 tests 4166s # Start of contended2 tests 4166s # max perf: 0.375000 mips 4166s ok 15 /thread/rec-mutex/perf/contended2/depth1 4166s # max perf: inf mips 4166s ok 16 /thread/rec-mutex/perf/contended2/depth2 4166s # max perf: inf mips 4166s ok 17 /thread/rec-mutex/perf/contended2/depth3 4166s # max perf: inf mips 4166s ok 18 /thread/rec-mutex/perf/contended2/depth4 4166s # max perf: inf mips 4166s ok 19 /thread/rec-mutex/perf/contended2/depth5 4166s # End of contended2 tests 4166s # Start of contended3 tests 4166s # max perf: inf mips 4166s ok 20 /thread/rec-mutex/perf/contended3/depth1 4166s # max perf: 4.000000 mips 4166s ok 21 /thread/rec-mutex/perf/contended3/depth2 4166s # max perf: 4.000000 mips 4166s ok 22 /thread/rec-mutex/perf/contended3/depth3 4166s # max perf: 4.000000 mips 4166s ok 23 /thread/rec-mutex/perf/contended3/depth4 4166s # max perf: 4.000000 mips 4166s ok 24 /thread/rec-mutex/perf/contended3/depth5 4166s # End of contended3 tests 4166s # Start of contended4 tests 4166s # max perf: inf mips 4166s ok 25 /thread/rec-mutex/perf/contended4/depth1 4166s # max perf: 5.000000 mips 4166s ok 26 /thread/rec-mutex/perf/contended4/depth2 4166s # max perf: 5.000000 mips 4166s ok 27 /thread/rec-mutex/perf/contended4/depth3 4166s # max perf: 5.000000 mips 4166s ok 28 /thread/rec-mutex/perf/contended4/depth4 4166s # max perf: 5.000000 mips 4166s ok 29 /thread/rec-mutex/perf/contended4/depth5 4166s # End of contended4 tests 4166s # End of perf tests 4166s # End of rec-mutex tests 4166s # End of thread tests 4166s TAP version 14 4166s # random seed: R02S37d3c58eba9029addc835784f0ecafda 4166s 1..20 4166s # Start of logging tests 4166s ok 1 /logging/default-handler 4166s ok 2 /logging/journald-handler 4166s ok 3 /logging/warnings 4166s ok 4 /logging/fatal-log-mask 4166s ok 5 /logging/always-fatal 4166s # bu-DEBUG: message 4166s # ba-DEBUG: message 4166s # ba-INFO: message 4166s ok 6 /logging/set-handler 4166s ok 7 /logging/print-handler 4166s ok 8 /logging/printerr-handler 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 4166s # The Log Message Handler 4166s # 4166s # The Good Fail Message Handler 4166s # 4166s ok 9 /logging/653052 4166s ok 10 /logging/gibberish 4166s # Start of default-handler tests 4166s # Start of subprocess tests 4166s # End of subprocess tests 4166s # End of default-handler tests 4166s # End of logging tests 4166s # Start of structured-logging tests 4166s ok 11 /structured-logging/no-state 4166s ok 12 /structured-logging/some-state 4166s # /structured-logging/recursion-overflow summary: Test that g_log_structured always sets n_fields correctly. 4166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3760 4166s ok 13 /structured-logging/recursion-overflow 4166s ok 14 /structured-logging/robustness 4166s ok 15 /structured-logging/roundtrip1 4166s ok 16 /structured-logging/roundtrip2 4166s ok 17 /structured-logging/roundtrip3 4166s ok 18 /structured-logging/variant1 4166s ok 19 /structured-logging/variant2 4166s ok 20 /structured-logging/set-writer-func-twice 4166s # End of structured-logging tests 4166s TAP version 14 4166s # random seed: R02S070627efb93e438b67aa73845e1ffcd4 4166s 1..2 4166s # Start of gobject tests 4166s # Start of singleton tests 4166s ok 1 /gobject/singleton/construction 4166s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 4166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 4166s ok 2 /gobject/singleton/construct-property 4166s # End of singleton tests 4166s # End of gobject tests 4166s TAP version 14 4166s # random seed: R02S52219e1672f5f3670c244084d3c29147 4166s 1..9 4166s # Start of glib tests 4166s # Start of testing tests 4166s # Start of protocol tests 4166s ok 1 /glib/testing/protocol/debug 4166s ok 2 /glib/testing/protocol/info 4166s ok 3 /glib/testing/protocol/message 4166s ok 4 /glib/testing/protocol/warning 4166s ok 5 /glib/testing/protocol/critical 4166s ok 6 /glib/testing/protocol/error 4166s ok 7 /glib/testing/protocol/gtest-message 4166s ok 8 /glib/testing/protocol/test-message 4166s ok 9 /glib/testing/protocol/test-error 4166s # End of protocol tests 4166s # End of testing tests 4166s # End of glib tests 4166s TAP version 14 4166s # random seed: R02S923a38b46ae1c3487e8477c4dba2bdbb 4166s 1..849 4166s # Start of regex tests 4166s ok 1 /regex/properties 4166s ok 2 /regex/class 4166s ok 3 /regex/lookahead 4166s ok 4 /regex/lookbehind 4166s ok 5 /regex/subpattern 4166s ok 6 /regex/condition 4166s ok 7 /regex/recursion 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 4166s ok 8 /regex/multiline 4166s ok 9 /regex/explicit-crlf 4166s ok 10 /regex/max-lookbehind 4166s ok 11 /regex/compile-errors 4166s ok 12 /regex/jit-unsupported-matching 4166s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 4166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 4166s ok 13 /regex/unmatched-named-subpattern 4166s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 4166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 4166s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 4166s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 4166s ok 14 /regex/compiled-regex-after-jit-failure 4166s # Start of new tests 4166s ok 15 /regex/new/1 4166s ok 16 /regex/new/2 4166s ok 17 /regex/new/3 4166s ok 18 /regex/new/4 4166s ok 19 /regex/new/5 4166s ok 20 /regex/new/6 4166s ok 21 /regex/new/7 4166s ok 22 /regex/new/8 4166s ok 23 /regex/new/9 4166s ok 24 /regex/new/10 4166s ok 25 /regex/new/11 4166s ok 26 /regex/new/12 4166s ok 27 /regex/new/13 4166s ok 28 /regex/new/14 4166s ok 29 /regex/new/15 4166s ok 30 /regex/new/16 4166s ok 31 /regex/new/17 4166s ok 32 /regex/new/18 4166s ok 33 /regex/new/19 4166s ok 34 /regex/new/71 4166s ok 35 /regex/new/81 4166s ok 36 /regex/new/83 4166s # End of new tests 4166s # Start of new-check-flags tests 4166s ok 37 /regex/new-check-flags/20 4166s ok 38 /regex/new-check-flags/21 4166s ok 39 /regex/new-check-flags/22 4166s ok 40 /regex/new-check-flags/23 4166s ok 41 /regex/new-check-flags/24 4166s ok 42 /regex/new-check-flags/25 4166s ok 43 /regex/new-check-flags/26 4166s ok 44 /regex/new-check-flags/27 4166s ok 45 /regex/new-check-flags/28 4166s ok 46 /regex/new-check-flags/29 4166s ok 47 /regex/new-check-flags/30 4166s ok 48 /regex/new-check-flags/31 4166s ok 49 /regex/new-check-flags/32 4166s ok 50 /regex/new-check-flags/33 4166s ok 51 /regex/new-check-flags/34 4166s ok 52 /regex/new-check-flags/35 4166s ok 53 /regex/new-check-flags/36 4166s # End of new-check-flags tests 4166s # Start of new-fail tests 4166s # Compiling pattern /(/ failed with error: Error while compiling regular expression ‘(’ at char 1: missing terminating ) 4166s ok 54 /regex/new-fail/37 4166s # Compiling pattern /)/ failed with error: Error while compiling regular expression ‘)’ at char 0: missing terminating ) 4166s ok 55 /regex/new-fail/38 4166s # Compiling pattern /[/ failed with error: Error while compiling regular expression ‘[’ at char 1: missing terminating ] for character class 4166s ok 56 /regex/new-fail/39 4166s # Compiling pattern /*/ failed with error: Error while compiling regular expression ‘*’ at char 0: nothing to repeat 4166s ok 57 /regex/new-fail/40 4166s # Compiling pattern /?/ failed with error: Error while compiling regular expression ‘?’ at char 0: nothing to repeat 4166s ok 58 /regex/new-fail/41 4166s # Compiling pattern /(?Px)|(?Py)/ failed with error: Error while compiling regular expression ‘(?Px)|(?Py)’ at char 15: two named subpatterns have the same name 4166s ok 59 /regex/new-fail/42 4166s # Compiling pattern /a\/ failed with error: Error while compiling regular expression ‘a\’ at char 2: \ at end of pattern 4166s ok 60 /regex/new-fail/43 4166s # Compiling pattern /a\c/ failed with error: Error while compiling regular expression ‘a\c’ at char 3: \c at end of pattern 4166s ok 61 /regex/new-fail/44 4166s # Compiling pattern /a\l/ failed with error: Error while compiling regular expression ‘a\l’ at char 3: unrecognized character following \ 4166s ok 62 /regex/new-fail/45 4166s # Compiling pattern /a{4,2}/ failed with error: Error while compiling regular expression ‘a{4,2}’ at char 5: numbers out of order in {} quantifier 4166s ok 63 /regex/new-fail/46 4166s # Compiling pattern /a{999999,}/ failed with error: Error while compiling regular expression ‘a{999999,}’ at char 8: number too big in {} quantifier 4166s ok 64 /regex/new-fail/47 4166s # Compiling pattern /[a-z/ failed with error: Error while compiling regular expression ‘[a-z’ at char 4: missing terminating ] for character class 4166s ok 65 /regex/new-fail/48 4166s # Compiling pattern /[\B]/ failed with error: Error while compiling regular expression ‘[\B]’ at char 2: invalid escape sequence in character class 4166s ok 66 /regex/new-fail/49 4166s # Compiling pattern /[z-a]/ failed with error: Error while compiling regular expression ‘[z-a]’ at char 3: range out of order in character class 4166s ok 67 /regex/new-fail/50 4166s # Compiling pattern /^[[:alnum:]-_.]+$/ failed with error: Error while compiling regular expression ‘^[[:alnum:]-_.]+$’ at char 12: invalid range in character class 4166s ok 68 /regex/new-fail/51 4166s # Compiling pattern /{2,4}/ failed with error: Error while compiling regular expression ‘{2,4}’ at char 4: nothing to repeat 4166s ok 69 /regex/new-fail/52 4166s # Compiling pattern /a(?u)/ failed with error: Error while compiling regular expression ‘a(?u)’ at char 3: unrecognized character after (? or (?- 4166s ok 70 /regex/new-fail/53 4166s # Compiling pattern /a(?<$foo)bar/ failed with error: Error while compiling regular expression ‘a(?<$foo)bar’ at char 4: missing subpattern name after (?& 4166s ok 71 /regex/new-fail/54 4166s # Compiling pattern /a[:alpha:]b/ failed with error: Error while compiling regular expression ‘a[:alpha:]b’ at char 1: POSIX named classes are supported only within a class 4166s ok 72 /regex/new-fail/55 4166s # Compiling pattern /a(b/ failed with error: Error while compiling regular expression ‘a(b’ at char 3: missing terminating ) 4166s ok 73 /regex/new-fail/56 4166s # Compiling pattern /a)b/ failed with error: Error while compiling regular expression ‘a)b’ at char 1: missing terminating ) 4166s ok 74 /regex/new-fail/57 4166s # Compiling pattern /a(?R/ failed with error: Error while compiling regular expression ‘a(?R’ at char 4: missing terminating ) 4166s ok 75 /regex/new-fail/58 4166s # Compiling pattern /a(?-54/ failed with error: Error while compiling regular expression ‘a(?-54’ at char 6: reference to non-existent subpattern 4166s ok 76 /regex/new-fail/59 4166s # Compiling pattern /(ab\2)/ failed with error: Error while compiling regular expression ‘(ab\2)’ at char 4: reference to non-existent subpattern 4166s ok 77 /regex/new-fail/60 4166s # Compiling pattern /a(?#abc/ failed with error: Error while compiling regular expression ‘a(?#abc’ at char 7: missing ) after comment 4166s ok 78 /regex/new-fail/61 4166s # Compiling pattern /(?<=a+)b/ failed with error: Error while compiling regular expression ‘(?<=a+)b’ at char 0: lookbehind assertion is not fixed length 4166s ok 79 /regex/new-fail/62 4166s # Compiling pattern /(?(1?)a|b)/ failed with error: Error while compiling regular expression ‘(?(1?)a|b)’ at char 4: malformed number or name after (?( 4166s ok 80 /regex/new-fail/63 4166s # Compiling pattern /(a)(?(1)a|b|c)/ failed with error: Error while compiling regular expression ‘(a)(?(1)a|b|c)’ at char 3: conditional group contains more than two branches 4166s ok 81 /regex/new-fail/64 4166s # Compiling pattern /(?(?i))/ failed with error: Error while compiling regular expression ‘(?(?i))’ at char 2: assertion expected after (?( 4166s ok 82 /regex/new-fail/65 4166s # Compiling pattern /a[[:fubar:]]b/ failed with error: Error while compiling regular expression ‘a[[:fubar:]]b’ at char 11: unknown POSIX class name 4166s ok 83 /regex/new-fail/66 4166s # Compiling pattern /[[.ch.]]/ failed with error: Error while compiling regular expression ‘[[.ch.]]’ at char 7: POSIX collating elements are not supported 4166s ok 84 /regex/new-fail/67 4166s # Compiling pattern /\x{110000}/ failed with error: Error while compiling regular expression ‘\x{110000}’ at char 9: character value in \x{...} sequence is too large 4166s ok 85 /regex/new-fail/68 4166s # Compiling pattern /^(?(0)f|b)oo/ failed with error: Error while compiling regular expression ‘^(?(0)f|b)oo’ at char 5: reference to non-existent subpattern 4166s ok 86 /regex/new-fail/69 4166s # Compiling pattern /(?<=\C)X/ failed with error: Error while compiling regular expression ‘(?<=\C)X’ at char 0: \C not allowed in lookbehind assertion 4166s ok 87 /regex/new-fail/70 4166s # Compiling pattern /(?(?foo)\gfoo)\geks)(?Peccs)/ failed with error: Error while compiling regular expression ‘(?Peks)(?Peccs)’ at char 16: two named subpatterns have the same name 4166s ok 90 /regex/new-fail/74 4166s # Compiling pattern /\666/ failed with error: Error while compiling regular expression ‘\666’ at char 4: octal value is greater than \377 4166s ok 91 /regex/new-fail/75 4166s # Compiling pattern /^(?(DEFINE) abc | xyz ) / failed with error: Error while compiling regular expression ‘^(?(DEFINE) abc | xyz ) ’ at char 4: DEFINE group contains more than one branch 4166s ok 92 /regex/new-fail/76 4166s # Compiling pattern /a/ failed with error: Invalid newline flags 4166s ok 93 /regex/new-fail/77 4166s # Compiling pattern /^(a)\g"3/ failed with error: Error while compiling regular expression ‘^(a)\g"3’ at char 6: \g is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number 4166s ok 94 /regex/new-fail/78 4166s # Compiling pattern /^(a)\g{3/ failed with error: Error while compiling regular expression ‘^(a)\g{3’ at char 6: \g is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number 4166s ok 95 /regex/new-fail/79 4166s # Compiling pattern /^(a)\g{0}/ failed with error: Error while compiling regular expression ‘^(a)\g{0}’ at char 9: reference to non-existent subpattern 4166s ok 96 /regex/new-fail/80 4166s # Compiling pattern /a(*FOOBAR)b/ failed with error: Error while compiling regular expression ‘a(*FOOBAR)b’ at char 9: (*VERB) not recognized 4166s ok 97 /regex/new-fail/82 4166s # Compiling pattern /(?)(?&)/ failed with error: Error while compiling regular expression ‘(?)(?&)’ at char 9: missing subpattern name after (?& 4166s ok 98 /regex/new-fail/84 4166s # Compiling pattern /(?+-a)/ failed with error: Error while compiling regular expression ‘(?+-a)’ at char 2: a numbered reference must not be zero 4166s ok 99 /regex/new-fail/85 4166s # Compiling pattern /(?|(?A)|(?B))/ failed with error: Error while compiling regular expression ‘(?|(?A)|(?B))’ at char 16: different names for subpatterns of the same number are not allowed 4166s ok 100 /regex/new-fail/86 4166s # Compiling pattern /a(*MARK)b/ failed with error: Error while compiling regular expression ‘a(*MARK)b’ at char 7: (*MARK) must have an argument 4166s ok 101 /regex/new-fail/87 4166s # Compiling pattern /^\c€/ failed with error: Error while compiling regular expression ‘^\c€’ at char 3: \c must be followed by an ASCII character 4166s ok 102 /regex/new-fail/88 4166s # Compiling pattern /\k/ failed with error: Error while compiling regular expression ‘\k’ at char 2: \k is not followed by a braced, angle-bracketed, or quoted name 4166s ok 103 /regex/new-fail/89 4166s # Compiling pattern /a[\NB]c/ failed with error: Error while compiling regular expression ‘a[\NB]c’ at char 4: \N is not supported in a class 4166s ok 104 /regex/new-fail/90 4166s # Compiling pattern /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEFG)XX/ failed with error: Error while compiling regular expression ‘(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEFG)XX’ at char 260: name is too long in (*MARK), (*PRUNE), (*SKIP), or (*THEN) 4166s ok 105 /regex/new-fail/91 4166s # Compiling pattern /(?i-x)((?:(?i-x)[^\x00\t\n\f\r "'/<=>\x{007F}-\x{009F}\x{FDD0}-\x{FDEF}\x{FFFE}\x{FFFF}\x{1FFFE}\x{1FFFF}\x{2FFFE}\x{2FFFF}\x{3FFFE}\x{3FFFF}\x{4FFFE}\x{4FFFF}\x{5FFFE}\x{5FFFF}\x{6FFFE}\x{6FFFF}\x{7FFFE}\x{7FFFF}\x{8FFFE}\x{8FFFF}\x{9FFFE}\x{9FFFF}\x{AFFFE}\x{AFFFF}\x{BFFFE}\x{BFFFF}\x{CFFFE}\x{CFFFF}\x{DFFFE}\x{DFFFF}\x{EFFFE}\x{EFFFF}\x{FFFFE}\x{FFFFF}\x{10FFFE}\x{10FFFF}]+)\s*=\s*)(\")/ failed with error: Error while compiling regular expression ‘(?i-x)((?:(?i-x)[^\x00\t\n\f\r "'/<=>\x{007F}-\x{009F}\x{FDD0}-\x{FDEF}\x{FFFE}\x{FFFF}\x{1FFFE}\x{1FFFF}\x{2FFFE}\x{2FFFF}\x{3FFFE}\x{3FFFF}\x{4FFFE}\x{4FFFF}\x{5FFFE}\x{5FFFF}\x{6FFFE}\x{6FFFF}\x{7FFFE}\x{7FFFF}\x{8FFFE}\x{8FFFF}\x{9FFFE}\x{9FFFF}\x{AFFFE}\x{AFFFF}\x{BFFFE}\x{BFFFF}\x{CFFFE}\x{CFFFF}\x{DFFFE}\x{DFFFF}\x{EFFFE}\x{EFFFF}\x{FFFFE}\x{FFFFF}\x{10FFFE}\x{10FFFF}]+)\s*=\s*)(\")’ at char 61: character value in \x{...} sequence is too large 4166s ok 106 /regex/new-fail/92 4166s # End of new-fail tests 4166s # Start of match-simple tests 4166s ok 107 /regex/match-simple/93 4166s ok 108 /regex/match-simple/94 4166s ok 109 /regex/match-simple/95 4166s ok 110 /regex/match-simple/96 4166s ok 111 /regex/match-simple/97 4166s ok 112 /regex/match-simple/98 4166s ok 113 /regex/match-simple/99 4166s ok 114 /regex/match-simple/100 4166s ok 115 /regex/match-simple/101 4166s ok 116 /regex/match-simple/102 4166s ok 117 /regex/match-simple/103 4166s ok 118 /regex/match-simple/104 4166s ok 119 /regex/match-simple/105 4166s ok 120 /regex/match-simple/106 4166s ok 121 /regex/match-simple/107 4166s ok 122 /regex/match-simple/108 4166s ok 123 /regex/match-simple/109 4166s ok 124 /regex/match-simple/110 4166s ok 125 /regex/match-simple/111 4166s ok 126 /regex/match-simple/112 4166s ok 127 /regex/match-simple/113 4166s ok 128 /regex/match-simple/114 4166s ok 129 /regex/match-simple/115 4166s ok 130 /regex/match-simple/116 4166s ok 131 /regex/match-simple/117 4166s ok 132 /regex/match-simple/118 4166s ok 133 /regex/match-simple/119 4166s ok 134 /regex/match-simple/120 4166s ok 135 /regex/match-simple/121 4166s ok 136 /regex/match-simple/122 4166s ok 137 /regex/match-simple/123 4166s ok 138 /regex/match-simple/124 4166s ok 139 /regex/match-simple/125 4166s ok 140 /regex/match-simple/126 4166s ok 141 /regex/match-simple/127 4166s ok 142 /regex/match-simple/128 4166s ok 143 /regex/match-simple/129 4166s ok 144 /regex/match-simple/130 4166s ok 145 /regex/match-simple/131 4166s ok 146 /regex/match-simple/132 4166s ok 147 /regex/match-simple/133 4166s ok 148 /regex/match-simple/134 4166s ok 149 /regex/match-simple/135 4166s ok 150 /regex/match-simple/136 4166s ok 151 /regex/match-simple/137 4166s ok 152 /regex/match-simple/138 4166s ok 153 /regex/match-simple/139 4166s ok 154 /regex/match-simple/140 4166s ok 155 /regex/match-simple/141 4166s ok 156 /regex/match-simple/142 4166s ok 157 /regex/match-simple/143 4166s ok 158 /regex/match-simple/144 4166s ok 159 /regex/match-simple/145 4166s ok 160 /regex/match-simple/146 4166s ok 161 /regex/match-simple/147 4166s ok 162 /regex/match-simple/148 4166s ok 163 /regex/match-simple/149 4166s ok 164 /regex/match-simple/150 4166s ok 165 /regex/match-simple/151 4166s ok 166 /regex/match-simple/152 4166s ok 167 /regex/match-simple/153 4166s ok 168 /regex/match-simple/154 4166s ok 169 /regex/match-simple/155 4166s ok 170 /regex/match-simple/156 4166s ok 171 /regex/match-simple/157 4166s ok 172 /regex/match-simple/158 4166s ok 173 /regex/match-simple/159 4166s ok 174 /regex/match-simple/160 4166s ok 175 /regex/match-simple/161 4166s ok 176 /regex/match-simple/162 4166s ok 177 /regex/match-simple/163 4166s ok 178 /regex/match-simple/164 4166s ok 179 /regex/match-simple/165 4166s # End of match-simple tests 4166s # Start of match-simple-optimized tests 4166s ok 180 /regex/match-simple-optimized/93 4166s ok 181 /regex/match-simple-optimized/94 4166s ok 182 /regex/match-simple-optimized/95 4166s ok 183 /regex/match-simple-optimized/96 4166s ok 184 /regex/match-simple-optimized/97 4166s ok 185 /regex/match-simple-optimized/98 4166s ok 186 /regex/match-simple-optimized/99 4166s ok 187 /regex/match-simple-optimized/100 4166s ok 188 /regex/match-simple-optimized/101 4166s ok 189 /regex/match-simple-optimized/102 4166s ok 190 /regex/match-simple-optimized/103 4166s ok 191 /regex/match-simple-optimized/104 4166s ok 192 /regex/match-simple-optimized/105 4166s ok 193 /regex/match-simple-optimized/106 4166s ok 194 /regex/match-simple-optimized/107 4166s ok 195 /regex/match-simple-optimized/108 4166s ok 196 /regex/match-simple-optimized/109 4166s ok 197 /regex/match-simple-optimized/110 4166s ok 198 /regex/match-simple-optimized/111 4166s ok 199 /regex/match-simple-optimized/112 4166s ok 200 /regex/match-simple-optimized/113 4166s ok 201 /regex/match-simple-optimized/114 4166s ok 202 /regex/match-simple-optimized/115 4166s ok 203 /regex/match-simple-optimized/116 4166s ok 204 /regex/match-simple-optimized/117 4166s ok 205 /regex/match-simple-optimized/118 4166s ok 206 /regex/match-simple-optimized/119 4166s ok 207 /regex/match-simple-optimized/120 4166s ok 208 /regex/match-simple-optimized/121 4166s ok 209 /regex/match-simple-optimized/122 4166s ok 210 /regex/match-simple-optimized/123 4166s ok 211 /regex/match-simple-optimized/124 4166s ok 212 /regex/match-simple-optimized/125 4166s ok 213 /regex/match-simple-optimized/126 4166s ok 214 /regex/match-simple-optimized/127 4166s ok 215 /regex/match-simple-optimized/128 4166s ok 216 /regex/match-simple-optimized/129 4166s ok 217 /regex/match-simple-optimized/130 4166s ok 218 /regex/match-simple-optimized/131 4166s ok 219 /regex/match-simple-optimized/132 4166s ok 220 /regex/match-simple-optimized/133 4166s ok 221 /regex/match-simple-optimized/134 4166s ok 222 /regex/match-simple-optimized/135 4166s ok 223 /regex/match-simple-optimized/136 4166s ok 224 /regex/match-simple-optimized/137 4166s ok 225 /regex/match-simple-optimized/138 4166s ok 226 /regex/match-simple-optimized/139 4166s ok 227 /regex/match-simple-optimized/140 4166s ok 228 /regex/match-simple-optimized/141 4166s ok 229 /regex/match-simple-optimized/142 4166s ok 230 /regex/match-simple-optimized/143 4166s ok 231 /regex/match-simple-optimized/144 4166s ok 232 /regex/match-simple-optimized/145 4166s ok 233 /regex/match-simple-optimized/146 4166s ok 234 /regex/match-simple-optimized/147 4166s ok 235 /regex/match-simple-optimized/148 4166s ok 236 /regex/match-simple-optimized/149 4166s ok 237 /regex/match-simple-optimized/150 4166s ok 238 /regex/match-simple-optimized/151 4166s ok 239 /regex/match-simple-optimized/152 4166s ok 240 /regex/match-simple-optimized/153 4166s ok 241 /regex/match-simple-optimized/154 4166s ok 242 /regex/match-simple-optimized/155 4166s ok 243 /regex/match-simple-optimized/156 4166s ok 244 /regex/match-simple-optimized/157 4166s ok 245 /regex/match-simple-optimized/158 4166s ok 246 /regex/match-simple-optimized/159 4166s ok 247 /regex/match-simple-optimized/160 4166s ok 248 /regex/match-simple-optimized/161 4166s ok 249 /regex/match-simple-optimized/162 4166s ok 250 /regex/match-simple-optimized/163 4166s ok 251 /regex/match-simple-optimized/164 4166s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 4166s ok 252 /regex/match-simple-optimized/165 4166s # End of match-simple-optimized tests 4166s # Start of match tests 4166s ok 253 /regex/match/166 4166s ok 254 /regex/match/167 4166s ok 255 /regex/match/168 4166s ok 256 /regex/match/169 4166s ok 257 /regex/match/170 4166s ok 258 /regex/match/171 4166s ok 259 /regex/match/172 4166s ok 260 /regex/match/173 4166s ok 261 /regex/match/174 4166s ok 262 /regex/match/175 4166s ok 263 /regex/match/176 4166s ok 264 /regex/match/177 4166s ok 265 /regex/match/178 4166s ok 266 /regex/match/179 4166s ok 267 /regex/match/180 4166s ok 268 /regex/match/181 4166s ok 269 /regex/match/182 4166s ok 270 /regex/match/183 4166s ok 271 /regex/match/184 4166s ok 272 /regex/match/185 4166s ok 273 /regex/match/186 4166s ok 274 /regex/match/187 4166s ok 275 /regex/match/188 4166s ok 276 /regex/match/189 4166s ok 277 /regex/match/190 4166s ok 278 /regex/match/191 4166s ok 279 /regex/match/192 4166s ok 280 /regex/match/193 4166s ok 281 /regex/match/194 4166s ok 282 /regex/match/195 4166s ok 283 /regex/match/196 4166s ok 284 /regex/match/197 4166s ok 285 /regex/match/198 4166s ok 286 /regex/match/199 4166s ok 287 /regex/match/200 4166s ok 288 /regex/match/201 4166s ok 289 /regex/match/202 4166s ok 290 /regex/match/203 4166s ok 291 /regex/match/204 4166s ok 292 /regex/match/205 4166s ok 293 /regex/match/206 4166s ok 294 /regex/match/207 4166s ok 295 /regex/match/208 4166s ok 296 /regex/match/209 4166s ok 297 /regex/match/210 4166s ok 298 /regex/match/211 4166s ok 299 /regex/match/212 4166s ok 300 /regex/match/213 4166s ok 301 /regex/match/214 4166s ok 302 /regex/match/215 4166s ok 303 /regex/match/216 4166s ok 304 /regex/match/217 4166s ok 305 /regex/match/218 4166s ok 306 /regex/match/219 4166s ok 307 /regex/match/220 4166s ok 308 /regex/match/221 4166s ok 309 /regex/match/222 4166s ok 310 /regex/match/223 4166s ok 311 /regex/match/224 4166s ok 312 /regex/match/225 4166s ok 313 /regex/match/226 4166s ok 314 /regex/match/227 4166s ok 315 /regex/match/228 4166s ok 316 /regex/match/229 4166s ok 317 /regex/match/230 4166s ok 318 /regex/match/231 4166s ok 319 /regex/match/232 4166s ok 320 /regex/match/233 4166s ok 321 /regex/match/234 4166s ok 322 /regex/match/235 4166s ok 323 /regex/match/236 4166s ok 324 /regex/match/237 4166s ok 325 /regex/match/238 4166s ok 326 /regex/match/239 4166s ok 327 /regex/match/240 4166s ok 328 /regex/match/241 4166s ok 329 /regex/match/242 4166s ok 330 /regex/match/243 4166s ok 331 /regex/match/244 4166s ok 332 /regex/match/245 4166s ok 333 /regex/match/246 4166s ok 334 /regex/match/247 4166s ok 335 /regex/match/partial282 4166s ok 336 /regex/match/partial283 4166s ok 337 /regex/match/partial284 4166s ok 338 /regex/match/partial285 4166s ok 339 /regex/match/partial286 4166s ok 340 /regex/match/partial287 4166s ok 341 /regex/match/partial288 4166s ok 342 /regex/match/partial289 4166s ok 343 /regex/match/partial290 4166s ok 344 /regex/match/partial291 4166s ok 345 /regex/match/partial292 4166s ok 346 /regex/match/partial293 4166s ok 347 /regex/match/partial294 4166s ok 348 /regex/match/partial295 4166s ok 349 /regex/match/partial296 4166s ok 350 /regex/match/partial297 4166s ok 351 /regex/match/partial298 4166s ok 352 /regex/match/partial299 4166s ok 353 /regex/match/partial300 4166s ok 354 /regex/match/partial301 4166s ok 355 /regex/match/partial302 4166s ok 356 /regex/match/partial303 4166s # Start of next0 tests 4166s ok 357 /regex/match/next0/248 4166s ok 358 /regex/match/next0/249 4166s ok 359 /regex/match/next0/250 4166s ok 360 /regex/match/next0/251 4166s # End of next0 tests 4166s # Start of next1 tests 4166s ok 361 /regex/match/next1/252 4166s ok 362 /regex/match/next1/253 4166s ok 363 /regex/match/next1/254 4166s ok 364 /regex/match/next1/255 4166s ok 365 /regex/match/next1/256 4166s # End of next1 tests 4166s # Start of next2 tests 4166s ok 366 /regex/match/next2/257 4166s ok 367 /regex/match/next2/258 4166s ok 368 /regex/match/next2/259 4166s ok 369 /regex/match/next2/260 4166s ok 370 /regex/match/next2/261 4166s ok 371 /regex/match/next2/262 4166s ok 372 /regex/match/next2/263 4166s ok 373 /regex/match/next2/264 4166s # End of next2 tests 4166s # Start of next3 tests 4166s ok 374 /regex/match/next3/265 4166s ok 375 /regex/match/next3/266 4166s ok 376 /regex/match/next3/267 4166s ok 377 /regex/match/next3/268 4166s ok 378 /regex/match/next3/269 4166s ok 379 /regex/match/next3/270 4166s # End of next3 tests 4166s # Start of next4 tests 4166s ok 380 /regex/match/next4/271 4166s # End of next4 tests 4166s # Start of count tests 4166s ok 381 /regex/match/count/272 4166s ok 382 /regex/match/count/273 4166s ok 383 /regex/match/count/274 4166s ok 384 /regex/match/count/275 4166s ok 385 /regex/match/count/276 4166s ok 386 /regex/match/count/277 4166s ok 387 /regex/match/count/278 4166s ok 388 /regex/match/count/279 4166s ok 389 /regex/match/count/280 4166s ok 390 /regex/match/count/281 4166s # End of count tests 4166s # Start of count-optimized tests 4166s ok 391 /regex/match/count-optimized/272 4166s ok 392 /regex/match/count-optimized/273 4166s ok 393 /regex/match/count-optimized/274 4166s ok 394 /regex/match/count-optimized/275 4166s ok 395 /regex/match/count-optimized/276 4166s ok 396 /regex/match/count-optimized/277 4166s ok 397 /regex/match/count-optimized/278 4166s ok 398 /regex/match/count-optimized/279 4166s ok 399 /regex/match/count-optimized/280 4166s ok 400 /regex/match/count-optimized/281 4166s # End of count-optimized tests 4166s # Start of partial-optimized tests 4166s ok 401 /regex/match/partial-optimized/282 4166s ok 402 /regex/match/partial-optimized/283 4166s ok 403 /regex/match/partial-optimized/284 4166s ok 404 /regex/match/partial-optimized/285 4166s ok 405 /regex/match/partial-optimized/286 4166s ok 406 /regex/match/partial-optimized/287 4166s ok 407 /regex/match/partial-optimized/288 4166s ok 408 /regex/match/partial-optimized/289 4166s ok 409 /regex/match/partial-optimized/290 4166s ok 410 /regex/match/partial-optimized/291 4166s ok 411 /regex/match/partial-optimized/292 4166s ok 412 /regex/match/partial-optimized/293 4166s ok 413 /regex/match/partial-optimized/294 4166s ok 414 /regex/match/partial-optimized/295 4166s ok 415 /regex/match/partial-optimized/296 4166s ok 416 /regex/match/partial-optimized/297 4166s ok 417 /regex/match/partial-optimized/298 4166s ok 418 /regex/match/partial-optimized/299 4166s ok 419 /regex/match/partial-optimized/300 4166s ok 420 /regex/match/partial-optimized/301 4166s ok 421 /regex/match/partial-optimized/302 4166s ok 422 /regex/match/partial-optimized/303 4166s # End of partial-optimized tests 4166s # Start of subpattern tests 4166s ok 423 /regex/match/subpattern/304 4166s ok 424 /regex/match/subpattern/305 4166s ok 425 /regex/match/subpattern/306 4166s ok 426 /regex/match/subpattern/307 4166s ok 427 /regex/match/subpattern/308 4166s ok 428 /regex/match/subpattern/309 4166s ok 429 /regex/match/subpattern/310 4166s ok 430 /regex/match/subpattern/311 4166s ok 431 /regex/match/subpattern/312 4166s ok 432 /regex/match/subpattern/313 4166s ok 433 /regex/match/subpattern/314 4166s ok 434 /regex/match/subpattern/315 4166s ok 435 /regex/match/subpattern/316 4166s # Start of named tests 4166s # Start of dupnames tests 4166s ok 436 /regex/match/subpattern/named/dupnames/326 4166s ok 437 /regex/match/subpattern/named/dupnames/327 4166s ok 438 /regex/match/subpattern/named/dupnames/328 4166s ok 439 /regex/match/subpattern/named/dupnames/329 4166s ok 440 /regex/match/subpattern/named/dupnames/330 4166s # End of dupnames tests 4166s # End of named tests 4166s # End of subpattern tests 4166s # Start of subpattern-optimized tests 4166s ok 441 /regex/match/subpattern-optimized/304 4166s ok 442 /regex/match/subpattern-optimized/305 4166s ok 443 /regex/match/subpattern-optimized/306 4166s ok 444 /regex/match/subpattern-optimized/307 4166s ok 445 /regex/match/subpattern-optimized/308 4166s ok 446 /regex/match/subpattern-optimized/309 4166s ok 447 /regex/match/subpattern-optimized/310 4166s ok 448 /regex/match/subpattern-optimized/311 4166s ok 449 /regex/match/subpattern-optimized/312 4166s ok 450 /regex/match/subpattern-optimized/313 4166s ok 451 /regex/match/subpattern-optimized/314 4166s ok 452 /regex/match/subpattern-optimized/315 4166s ok 453 /regex/match/subpattern-optimized/316 4166s # End of subpattern-optimized tests 4166s # Start of named tests 4166s # Start of subpattern tests 4166s ok 454 /regex/match/named/subpattern/317 4166s ok 455 /regex/match/named/subpattern/318 4166s ok 456 /regex/match/named/subpattern/319 4166s ok 457 /regex/match/named/subpattern/320 4166s ok 458 /regex/match/named/subpattern/321 4166s ok 459 /regex/match/named/subpattern/322 4166s ok 460 /regex/match/named/subpattern/323 4166s ok 461 /regex/match/named/subpattern/324 4166s ok 462 /regex/match/named/subpattern/325 4166s ok 463 /regex/match/named/subpattern/331 4166s ok 464 /regex/match/named/subpattern/332 4166s ok 465 /regex/match/named/subpattern/333 4166s ok 466 /regex/match/named/subpattern/334 4166s ok 467 /regex/match/named/subpattern/335 4166s # End of subpattern tests 4166s # End of named tests 4166s # End of match tests 4166s # Start of match-optimized tests 4166s ok 468 /regex/match-optimized/166 4166s ok 469 /regex/match-optimized/167 4166s ok 470 /regex/match-optimized/168 4166s ok 471 /regex/match-optimized/169 4166s ok 472 /regex/match-optimized/170 4166s ok 473 /regex/match-optimized/171 4166s ok 474 /regex/match-optimized/172 4166s ok 475 /regex/match-optimized/173 4166s ok 476 /regex/match-optimized/174 4166s ok 477 /regex/match-optimized/175 4166s ok 478 /regex/match-optimized/176 4166s ok 479 /regex/match-optimized/177 4166s ok 480 /regex/match-optimized/178 4166s ok 481 /regex/match-optimized/179 4166s ok 482 /regex/match-optimized/180 4166s ok 483 /regex/match-optimized/181 4166s ok 484 /regex/match-optimized/182 4166s ok 485 /regex/match-optimized/183 4166s ok 486 /regex/match-optimized/184 4166s ok 487 /regex/match-optimized/185 4166s ok 488 /regex/match-optimized/186 4166s ok 489 /regex/match-optimized/187 4166s ok 490 /regex/match-optimized/188 4166s ok 491 /regex/match-optimized/189 4166s ok 492 /regex/match-optimized/190 4166s ok 493 /regex/match-optimized/191 4166s ok 494 /regex/match-optimized/192 4166s ok 495 /regex/match-optimized/193 4166s ok 496 /regex/match-optimized/194 4166s ok 497 /regex/match-optimized/195 4166s ok 498 /regex/match-optimized/196 4166s ok 499 /regex/match-optimized/197 4166s ok 500 /regex/match-optimized/198 4166s ok 501 /regex/match-optimized/199 4166s ok 502 /regex/match-optimized/200 4166s ok 503 /regex/match-optimized/201 4166s ok 504 /regex/match-optimized/202 4166s ok 505 /regex/match-optimized/203 4166s ok 506 /regex/match-optimized/204 4166s ok 507 /regex/match-optimized/205 4166s ok 508 /regex/match-optimized/206 4166s ok 509 /regex/match-optimized/207 4166s ok 510 /regex/match-optimized/208 4166s ok 511 /regex/match-optimized/209 4166s ok 512 /regex/match-optimized/210 4166s ok 513 /regex/match-optimized/211 4166s ok 514 /regex/match-optimized/212 4166s ok 515 /regex/match-optimized/213 4166s ok 516 /regex/match-optimized/214 4166s ok 517 /regex/match-optimized/215 4166s ok 518 /regex/match-optimized/216 4166s ok 519 /regex/match-optimized/217 4166s ok 520 /regex/match-optimized/218 4166s ok 521 /regex/match-optimized/219 4166s ok 522 /regex/match-optimized/220 4166s ok 523 /regex/match-optimized/221 4166s ok 524 /regex/match-optimized/222 4166s ok 525 /regex/match-optimized/223 4166s ok 526 /regex/match-optimized/224 4166s ok 527 /regex/match-optimized/225 4166s ok 528 /regex/match-optimized/226 4166s ok 529 /regex/match-optimized/227 4166s ok 530 /regex/match-optimized/228 4166s ok 531 /regex/match-optimized/229 4166s ok 532 /regex/match-optimized/230 4166s ok 533 /regex/match-optimized/231 4166s ok 534 /regex/match-optimized/232 4166s ok 535 /regex/match-optimized/233 4166s ok 536 /regex/match-optimized/234 4166s ok 537 /regex/match-optimized/235 4166s ok 538 /regex/match-optimized/236 4166s ok 539 /regex/match-optimized/237 4166s ok 540 /regex/match-optimized/238 4166s ok 541 /regex/match-optimized/239 4166s ok 542 /regex/match-optimized/240 4166s ok 543 /regex/match-optimized/241 4166s ok 544 /regex/match-optimized/242 4166s ok 545 /regex/match-optimized/243 4166s ok 546 /regex/match-optimized/244 4166s ok 547 /regex/match-optimized/245 4166s ok 548 /regex/match-optimized/246 4166s ok 549 /regex/match-optimized/247 4166s # End of match-optimized tests 4166s # Start of fetch-all0 tests 4166s ok 550 /regex/fetch-all0/336 4166s ok 551 /regex/fetch-all0/337 4166s # End of fetch-all0 tests 4166s # Start of fetch-all1 tests 4166s ok 552 /regex/fetch-all1/338 4166s ok 553 /regex/fetch-all1/339 4166s ok 554 /regex/fetch-all1/340 4166s # End of fetch-all1 tests 4166s # Start of fetch-all2 tests 4166s ok 555 /regex/fetch-all2/341 4166s ok 556 /regex/fetch-all2/342 4166s ok 557 /regex/fetch-all2/343 4166s # End of fetch-all2 tests 4166s # Start of fetch-all3 tests 4166s ok 558 /regex/fetch-all3/344 4166s ok 559 /regex/fetch-all3/345 4166s ok 560 /regex/fetch-all3/346 4166s ok 561 /regex/fetch-all3/347 4166s ok 562 /regex/fetch-all3/348 4166s # End of fetch-all3 tests 4166s # Start of split tests 4166s # Start of simple0 tests 4166s ok 563 /regex/split/simple0/349 4166s ok 564 /regex/split/simple0/350 4166s ok 565 /regex/split/simple0/365 4166s ok 566 /regex/split/simple0/366 4166s # End of simple0 tests 4166s # Start of simple1 tests 4166s ok 567 /regex/split/simple1/351 4166s ok 568 /regex/split/simple1/352 4166s # End of simple1 tests 4166s # Start of simple2 tests 4166s ok 569 /regex/split/simple2/353 4166s ok 570 /regex/split/simple2/359 4166s ok 571 /regex/split/simple2/361 4166s # End of simple2 tests 4166s # Start of simple3 tests 4166s ok 572 /regex/split/simple3/354 4166s ok 573 /regex/split/simple3/355 4166s ok 574 /regex/split/simple3/356 4166s ok 575 /regex/split/simple3/357 4166s ok 576 /regex/split/simple3/358 4166s ok 577 /regex/split/simple3/360 4166s ok 578 /regex/split/simple3/362 4166s ok 579 /regex/split/simple3/363 4166s ok 580 /regex/split/simple3/364 4166s # End of simple3 tests 4166s # End of split tests 4166s # Start of split0 tests 4166s ok 581 /regex/split0/367 4166s ok 582 /regex/split0/369 4166s # End of split0 tests 4166s # Start of full-split0 tests 4166s ok 583 /regex/full-split0/368 4166s ok 584 /regex/full-split0/370 4166s ok 585 /regex/full-split0/371 4166s ok 586 /regex/full-split0/372 4166s ok 587 /regex/full-split0/373 4166s # End of full-split0 tests 4166s # Start of split1 tests 4166s ok 588 /regex/split1/374 4166s ok 589 /regex/split1/377 4166s # End of split1 tests 4166s # Start of full-split1 tests 4166s ok 590 /regex/full-split1/375 4166s ok 591 /regex/full-split1/376 4166s ok 592 /regex/full-split1/378 4166s ok 593 /regex/full-split1/379 4166s ok 594 /regex/full-split1/405 4166s # End of full-split1 tests 4166s # Start of split2 tests 4166s ok 595 /regex/split2/380 4166s ok 596 /regex/split2/384 4166s ok 597 /regex/split2/396 4166s # End of split2 tests 4166s # Start of full-split2 tests 4166s ok 598 /regex/full-split2/381 4166s ok 599 /regex/full-split2/382 4166s ok 600 /regex/full-split2/383 4166s ok 601 /regex/full-split2/385 4166s ok 602 /regex/full-split2/397 4166s ok 603 /regex/full-split2/400 4166s ok 604 /regex/full-split2/406 4166s # End of full-split2 tests 4166s # Start of split3 tests 4166s ok 605 /regex/split3/386 4166s ok 606 /regex/split3/388 4166s ok 607 /regex/split3/390 4166s ok 608 /regex/split3/392 4166s ok 609 /regex/split3/394 4166s ok 610 /regex/split3/398 4166s ok 611 /regex/split3/401 4166s ok 612 /regex/split3/403 4166s # End of split3 tests 4166s # Start of full-split3 tests 4166s ok 613 /regex/full-split3/387 4166s ok 614 /regex/full-split3/389 4166s ok 615 /regex/full-split3/391 4166s ok 616 /regex/full-split3/393 4166s ok 617 /regex/full-split3/395 4166s ok 618 /regex/full-split3/399 4166s ok 619 /regex/full-split3/402 4166s ok 620 /regex/full-split3/404 4166s ok 621 /regex/full-split3/407 4166s ok 622 /regex/full-split3/408 4166s # End of full-split3 tests 4166s # Start of check-repacement tests 4166s ok 623 /regex/check-repacement/409 4166s ok 624 /regex/check-repacement/410 4166s ok 625 /regex/check-repacement/411 4166s ok 626 /regex/check-repacement/412 4166s ok 627 /regex/check-repacement/413 4166s ok 628 /regex/check-repacement/414 4166s ok 629 /regex/check-repacement/415 4166s ok 630 /regex/check-repacement/416 4166s # End of check-repacement tests 4166s # Start of expand tests 4166s ok 631 /regex/expand/417 4166s ok 632 /regex/expand/418 4166s ok 633 /regex/expand/419 4166s ok 634 /regex/expand/420 4166s ok 635 /regex/expand/421 4166s ok 636 /regex/expand/422 4166s ok 637 /regex/expand/423 4166s ok 638 /regex/expand/424 4166s ok 639 /regex/expand/425 4166s ok 640 /regex/expand/426 4166s ok 641 /regex/expand/427 4166s ok 642 /regex/expand/428 4166s ok 643 /regex/expand/429 4166s ok 644 /regex/expand/430 4166s ok 645 /regex/expand/431 4166s ok 646 /regex/expand/432 4166s ok 647 /regex/expand/433 4166s ok 648 /regex/expand/434 4166s ok 649 /regex/expand/435 4166s ok 650 /regex/expand/436 4166s ok 651 /regex/expand/437 4166s ok 652 /regex/expand/438 4166s ok 653 /regex/expand/439 4166s ok 654 /regex/expand/440 4166s ok 655 /regex/expand/441 4166s ok 656 /regex/expand/442 4166s ok 657 /regex/expand/443 4166s ok 658 /regex/expand/444 4166s ok 659 /regex/expand/445 4166s ok 660 /regex/expand/446 4166s ok 661 /regex/expand/447 4166s ok 662 /regex/expand/448 4166s ok 663 /regex/expand/449 4166s ok 664 /regex/expand/450 4166s ok 665 /regex/expand/451 4166s ok 666 /regex/expand/452 4166s ok 667 /regex/expand/453 4166s ok 668 /regex/expand/454 4166s ok 669 /regex/expand/455 4166s ok 670 /regex/expand/456 4166s ok 671 /regex/expand/457 4166s ok 672 /regex/expand/458 4166s ok 673 /regex/expand/459 4166s ok 674 /regex/expand/460 4166s ok 675 /regex/expand/461 4166s ok 676 /regex/expand/462 4166s ok 677 /regex/expand/463 4166s ok 678 /regex/expand/464 4166s ok 679 /regex/expand/465 4166s ok 680 /regex/expand/466 4166s ok 681 /regex/expand/467 4166s ok 682 /regex/expand/468 4166s ok 683 /regex/expand/469 4166s ok 684 /regex/expand/470 4166s ok 685 /regex/expand/471 4166s ok 686 /regex/expand/472 4166s ok 687 /regex/expand/473 4166s ok 688 /regex/expand/474 4166s ok 689 /regex/expand/475 4166s ok 690 /regex/expand/476 4166s ok 691 /regex/expand/477 4166s ok 692 /regex/expand/478 4166s ok 693 /regex/expand/479 4166s ok 694 /regex/expand/480 4166s ok 695 /regex/expand/481 4166s ok 696 /regex/expand/482 4166s # End of expand tests 4166s # Start of replace tests 4166s ok 697 /regex/replace/483 4166s ok 698 /regex/replace/484 4166s ok 699 /regex/replace/485 4166s ok 700 /regex/replace/486 4166s ok 701 /regex/replace/487 4166s ok 702 /regex/replace/488 4166s ok 703 /regex/replace/489 4166s ok 704 /regex/replace/490 4166s ok 705 /regex/replace/491 4166s ok 706 /regex/replace/492 4166s ok 707 /regex/replace/493 4166s ok 708 /regex/replace/494 4166s ok 709 /regex/replace/495 4166s ok 710 /regex/replace/496 4166s ok 711 /regex/replace/497 4166s ok 712 /regex/replace/498 4166s ok 713 /regex/replace/499 4166s ok 714 /regex/replace/500 4166s ok 715 /regex/replace/501 4166s ok 716 /regex/replace/502 4166s ok 717 /regex/replace/503 4166s ok 718 /regex/replace/504 4166s ok 719 /regex/replace/505 4166s ok 720 /regex/replace/506 4166s ok 721 /regex/replace/507 4166s ok 722 /regex/replace/508 4166s ok 723 /regex/replace/509 4166s ok 724 /regex/replace/510 4166s # End of replace tests 4166s # Start of replace-optimized tests 4166s ok 725 /regex/replace-optimized/483 4166s ok 726 /regex/replace-optimized/484 4166s ok 727 /regex/replace-optimized/485 4166s ok 728 /regex/replace-optimized/486 4166s ok 729 /regex/replace-optimized/487 4166s ok 730 /regex/replace-optimized/488 4166s ok 731 /regex/replace-optimized/489 4166s ok 732 /regex/replace-optimized/490 4166s ok 733 /regex/replace-optimized/491 4166s ok 734 /regex/replace-optimized/492 4166s ok 735 /regex/replace-optimized/493 4166s ok 736 /regex/replace-optimized/494 4166s ok 737 /regex/replace-optimized/495 4166s ok 738 /regex/replace-optimized/496 4166s ok 739 /regex/replace-optimized/497 4166s ok 740 /regex/replace-optimized/498 4166s ok 741 /regex/replace-optimized/499 4166s ok 742 /regex/replace-optimized/500 4166s ok 743 /regex/replace-optimized/501 4166s ok 744 /regex/replace-optimized/502 4166s ok 745 /regex/replace-optimized/503 4166s ok 746 /regex/replace-optimized/504 4166s ok 747 /regex/replace-optimized/505 4166s ok 748 /regex/replace-optimized/506 4166s ok 749 /regex/replace-optimized/507 4166s ok 750 /regex/replace-optimized/508 4166s ok 751 /regex/replace-optimized/509 4166s ok 752 /regex/replace-optimized/510 4166s # End of replace-optimized tests 4166s # Start of replace-literally tests 4166s ok 753 /regex/replace-literally/511 4166s ok 754 /regex/replace-literally/512 4166s ok 755 /regex/replace-literally/513 4166s ok 756 /regex/replace-literally/514 4166s ok 757 /regex/replace-literally/515 4166s ok 758 /regex/replace-literally/516 4166s ok 759 /regex/replace-literally/517 4166s ok 760 /regex/replace-literally/518 4166s ok 761 /regex/replace-literally/519 4166s ok 762 /regex/replace-literally/520 4166s ok 763 /regex/replace-literally/521 4166s ok 764 /regex/replace-literally/522 4166s ok 765 /regex/replace-literally/523 4166s ok 766 /regex/replace-literally/524 4166s ok 767 /regex/replace-literally/525 4166s ok 768 /regex/replace-literally/526 4166s ok 769 /regex/replace-literally/527 4166s ok 770 /regex/replace-literally/528 4166s ok 771 /regex/replace-literally/529 4166s ok 772 /regex/replace-literally/530 4166s # End of replace-literally tests 4166s # Start of string-number tests 4166s ok 773 /regex/string-number/531 4166s ok 774 /regex/string-number/532 4166s ok 775 /regex/string-number/533 4166s ok 776 /regex/string-number/534 4166s ok 777 /regex/string-number/535 4166s ok 778 /regex/string-number/536 4166s ok 779 /regex/string-number/537 4166s ok 780 /regex/string-number/538 4166s ok 781 /regex/string-number/539 4166s ok 782 /regex/string-number/540 4166s ok 783 /regex/string-number/541 4166s ok 784 /regex/string-number/542 4166s ok 785 /regex/string-number/543 4166s ok 786 /regex/string-number/544 4166s ok 787 /regex/string-number/545 4166s # End of string-number tests 4166s # Start of escape_nul tests 4166s ok 788 /regex/escape_nul/546 4166s ok 789 /regex/escape_nul/547 4166s ok 790 /regex/escape_nul/548 4166s ok 791 /regex/escape_nul/549 4166s ok 792 /regex/escape_nul/550 4166s ok 793 /regex/escape_nul/551 4166s ok 794 /regex/escape_nul/552 4166s ok 795 /regex/escape_nul/553 4166s ok 796 /regex/escape_nul/554 4166s ok 797 /regex/escape_nul/555 4166s ok 798 /regex/escape_nul/556 4166s ok 799 /regex/escape_nul/557 4166s ok 800 /regex/escape_nul/558 4166s ok 801 /regex/escape_nul/559 4166s ok 802 /regex/escape_nul/560 4166s # End of escape_nul tests 4166s # Start of escape tests 4166s ok 803 /regex/escape/561 4166s ok 804 /regex/escape/562 4166s ok 805 /regex/escape/563 4166s ok 806 /regex/escape/564 4166s ok 807 /regex/escape/565 4166s ok 808 /regex/escape/566 4166s ok 809 /regex/escape/567 4166s ok 810 /regex/escape/568 4166s ok 811 /regex/escape/569 4166s ok 812 /regex/escape/570 4166s ok 813 /regex/escape/571 4166s ok 814 /regex/escape/572 4166s ok 815 /regex/escape/573 4166s ok 816 /regex/escape/574 4166s ok 817 /regex/escape/575 4166s ok 818 /regex/escape/576 4166s ok 819 /regex/escape/577 4166s ok 820 /regex/escape/578 4166s # End of escape tests 4166s # Start of match-all0 tests 4166s ok 821 /regex/match-all0/579 4166s ok 822 /regex/match-all0/581 4166s # End of match-all0 tests 4166s # Start of match-all-full0 tests 4166s ok 823 /regex/match-all-full0/580 4166s ok 824 /regex/match-all-full0/582 4166s ok 825 /regex/match-all-full0/583 4166s ok 826 /regex/match-all-full0/584 4166s # End of match-all-full0 tests 4166s # Start of match-all1 tests 4166s ok 827 /regex/match-all1/585 4166s ok 828 /regex/match-all1/587 4166s ok 829 /regex/match-all1/592 4166s # End of match-all1 tests 4166s # Start of match-all-full1 tests 4166s ok 830 /regex/match-all-full1/586 4166s ok 831 /regex/match-all-full1/588 4166s ok 832 /regex/match-all-full1/589 4166s ok 833 /regex/match-all-full1/590 4166s ok 834 /regex/match-all-full1/591 4166s ok 835 /regex/match-all-full1/593 4166s # End of match-all-full1 tests 4166s # Start of match-all2 tests 4166s ok 836 /regex/match-all2/594 4166s ok 837 /regex/match-all2/596 4166s ok 838 /regex/match-all2/598 4166s # End of match-all2 tests 4166s # Start of match-all-full2 tests 4166s ok 839 /regex/match-all-full2/595 4166s ok 840 /regex/match-all-full2/597 4166s ok 841 /regex/match-all-full2/599 4166s # End of match-all-full2 tests 4166s # Start of match-all3 tests 4166s ok 842 /regex/match-all3/600 4166s ok 843 /regex/match-all3/602 4166s # End of match-all3 tests 4166s # Start of match-all-full3 tests 4166s ok 844 /regex/match-all-full3/601 4166s ok 845 /regex/match-all-full3/603 4166s # End of match-all-full3 tests 4166s # Start of match-notempty tests 4166s ok 846 /regex/match-notempty/604 4166s # End of match-notempty tests 4166s # Start of match-notempty-optimized tests 4166s ok 847 /regex/match-notempty-optimized/604 4166s # End of match-notempty-optimized tests 4166s # Start of match-notempty-atstart tests 4166s ok 848 /regex/match-notempty-atstart/605 4166s # End of match-notempty-atstart tests 4166s # Start of match-notempty-atstart-optimized tests 4166s ok 849 /regex/match-notempty-atstart-optimized/605 4166s # End of match-notempty-atstart-optimized tests 4166s # End of regex tests 4166s ok - glib/regex.test 4166s # Running test: glib/module-test-library.test 4166s TAP version 14 4166s # random seed: R02Sb298cd68a009eec5f467a658ce5ce291 4166s 1..3 4166s # Start of module tests 4166s ok 1 /module/basics 4166s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 4166s ok 2 /module/invalid-libtool-archive 4166s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 4166s ok 3 /module/local-binding 4166s # End of module tests 4166s ok - glib/module-test-library.test 4166s # Running test: glib/contenttype.test 4166s TAP version 14 4166s # random seed: R02S3b0032444f1ae8ca70ecc2d4f54b198e 4166s 1..14 4166s # Start of contenttype tests 4166s ok 1 /contenttype/guess 4166s ok 2 /contenttype/guess_svg_from_data 4166s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 4166s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 4166s ok 5 /contenttype/unknown 4166s ok 6 /contenttype/subtype 4166s ok 7 /contenttype/list 4166s ok 8 /contenttype/executable 4166s ok 9 /contenttype/description 4166s ok 10 /contenttype/icon 4166s ok 11 /contenttype/symbolic-icon 4166s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4166s ok 12 /contenttype/tree 4166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 4166s ok 13 /contenttype/tree_invalid_encoding 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 4166s ok 14 /contenttype/test_type_is_a_special_case 4166s # End of contenttype tests 4166s ok - glib/contenttype.test 4166s # Running test: glib/converter-stream.test 4166s TAP version 14 4166s # random seed: R02S93f014b7a5af4033aab0195efefe6631 4166s 1..17 4166s # Start of converter tests 4166s ok 1 /converter/basics 4166s # End of converter tests 4166s # Start of converter-input-stream tests 4166s ok 2 /converter-input-stream/expander 4166s ok 3 /converter-input-stream/compressor 4166s # Start of truncation tests 4166s ok 4 /converter-input-stream/truncation/zlib 4166s ok 5 /converter-input-stream/truncation/gzip 4166s ok 6 /converter-input-stream/truncation/raw 4166s # End of truncation tests 4166s # Start of charset tests 4166s ok 7 /converter-input-stream/charset/utf8->latin1 4166s ok 8 /converter-input-stream/charset/latin1->utf8 4166s ok 9 /converter-input-stream/charset/fallbacks 4166s # End of charset tests 4166s # End of converter-input-stream tests 4166s # Start of converter-output-stream tests 4166s # Start of roundtrip tests 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 4166s ok 10 /converter-output-stream/roundtrip/zlib-0 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 4166s ok 11 /converter-output-stream/roundtrip/zlib-9 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 4166s ok 12 /converter-output-stream/roundtrip/gzip-0 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 4166s ok 13 /converter-output-stream/roundtrip/gzip-9 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 4166s ok 14 /converter-output-stream/roundtrip/raw-0 4166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 4166s ok 15 /converter-output-stream/roundtrip/raw-9 4166s # End of roundtrip tests 4166s # End of converter-output-stream tests 4166s # Start of converter-stream tests 4166s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 4166s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xca5b9dc05b20 and GSocketClientAsyncConnectData 0xca5b9dbfe270 4166s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 4166s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 4166s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xca5b9d844c10 for GSocketClientAsyncConnectData 0xca5b9dbfe270 4166s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 4166s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 4166s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 4166s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 4166s ok 16 /converter-stream/pollable 4166s ok 17 /converter-stream/leftover 4166s # End of converter-stream tests 4166s ok - glib/converter-stream.test 4166s # Running test: glib/notify-init.test 4166s TAP version 14 4166s # random seed: R02Sc89907a1886b1389cb20978257d3efa8 4166s 1..1 4166s # Start of properties tests 4166s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 4166s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 4166s ok 1 /properties/notify-in-init 4166s # End of properties tests 4166s ok - glib/notify-init.test 4166s # Running test: glib/objects-refcount1.test 4166s TAP version 14 4166s # random seed: R02S98598493976e0bf7da183de0df3ca2bf 4166s 1..1 4166s # Start of gobject tests 4166s # Start of refcount tests 4166s # init 0xc365d0facda0 4166s # 4166s # init 0xc365d0faceb0 4166s # 4166s # Executing: glib/objects-refcount1.test 4166s ok - glib/objects-refcount1.test 4166s # Running test: glib/simple-async-result.test 4166s ok - glib/simple-async-result.test 4166s # Running test: glib/io-channel-basic.test 4166s # dispose 0xc365d0facda0! 4166s # 4166s # dispose 0xc365d0faceb0! 4166s # 4166s ok 1 /gobject/refcount/object-basics 4166s # slow test /gobject/refcount/object-basics executed in 5.00 secs 4166s # End of refcount tests 4166s # End of gobject tests 4166s TAP version 14 4166s # random seed: R02Sfd3648be52911a9397010c86aeaa24bf 4166s 1..2 4166s # Start of gio tests 4166s # Start of simple-async-result tests 4166s ok 1 /gio/simple-async-result/test 4166s # GLib-GIO-DEBUG: GTask 0xbaecd7e0ab10 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 4166s ok 2 /gio/simple-async-result/valid 4166s # End of simple-async-result tests 4166s # End of gio tests 4166s TAP version 14 4166s # random seed: R02S811d3dfa5d0fc1d709a67bb7a302c204 4166s 1..1 4166s # Start of gio tests 4166s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 4166s # random seed: R02Se7cae6d98b9d8b538e53ea273f987257 4166s # GLib-DEBUG: io-channel-basic: child writing 8+3457 bytes to 6 4166s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4166s # GLib-DEBUG: io-channel-basic: ...from 5: 3457 bytes 4166s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4166s # GLib-DEBUG: io-channel-basic: child writing 8+1990 bytes to 6 4166s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4166s # GLib-DEBUG: io-channel-basic: ...from 5: 1990 bytes 4166s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4166s # GLib-DEBUG: io-channel-basic: child writing 8+977 bytes to 6 4166s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4166s # GLib-DEBUG: io-channel-basic: ...from 5: 977 bytes 4166s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4166s # GLib-DEBUG: io-channel-basic: child writing 8+1165 bytes to 6 4166s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4166s # GLib-DEBUG: io-channel-basic: ...from 5: 1165 bytes 4166s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4166s # GLib-DEBUG: io-channel-basic: child writing 8+505 bytes to 6 4166s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4166s # GLib-DEBUG: io-channel-basic: ...from 5: 505 bytes 4166s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4167s # GLib-DEBUG: io-channel-basic: child writing 8+4971 bytes to 6 4167s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4167s # GLib-DEBUG: io-channel-basic: ...from 5: 4971 bytes 4167s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4167s # GLib-DEBUG: io-channel-basic: child writing 8+1554 bytes to 6 4167s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4167s # GLib-DEBUG: io-channel-basic: ...from 5: 1554 bytes 4167s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4167s # GLib-DEBUG: io-channel-basic: child writing 8+3780 bytes to 6 4167s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4167s # GLib-DEBUG: io-channel-basic: ...from 5: 3780 bytes 4167s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4168s # GLib-DEBUG: io-channel-basic: child writing 8+4286 bytes to 6 4168s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4168s # GLib-DEBUG: io-channel-basic: ...from 5: 4286 bytes 4168s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4168s # GLib-DEBUG: io-channel-basic: child writing 8+701 bytes to 6 4168s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4168s # GLib-DEBUG: io-channel-basic: ...from 5: 701 bytes 4168s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4168s # GLib-DEBUG: io-channel-basic: child writing 8+3205 bytes to 6 4168s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4168s # GLib-DEBUG: io-channel-basic: ...from 5: 3205 bytes 4168s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4168s # GLib-DEBUG: io-channel-basic: child writing 8+683 bytes to 6 4168s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4168s # GLib-DEBUG: io-channel-basic: ...from 5: 683 bytes 4168s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4169s # GLib-DEBUG: io-channel-basic: child writing 8+593 bytes to 6 4169s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4169s # GLib-DEBUG: io-channel-basic: ...from 5: 593 bytes 4169s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4169s # GLib-DEBUG: io-channel-basic: child writing 8+1205 bytes to 6 4169s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4169s # GLib-DEBUG: io-channel-basic: ...from 5: 1205 bytes 4169s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4169s # GLib-DEBUG: io-channel-basic: child writing 8+3774 bytes to 6 4169s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4169s # GLib-DEBUG: io-channel-basic: ...from 5: 3774 bytes 4169s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4169s # Executing: glib/io-channel-basic.test 4169s # GLib-DEBUG: io-channel-basic: child writing 8+869 bytes to 6 4169s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4169s # GLib-DEBUG: io-channel-basic: ...from 5: 869 bytes 4169s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4170s # GLib-DEBUG: io-channel-basic: child writing 8+4466 bytes to 6 4170s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4170s # GLib-DEBUG: io-channel-basic: ...from 5: 4466 bytes 4170s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4170s # GLib-DEBUG: io-channel-basic: child writing 8+1210 bytes to 6 4170s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4170s # GLib-DEBUG: io-channel-basic: ...from 5: 1210 bytes 4170s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4170s # GLib-DEBUG: io-channel-basic: child writing 8+4975 bytes to 6 4170s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4170s # GLib-DEBUG: io-channel-basic: ...from 5: 4975 bytes 4170s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4170s # GLib-DEBUG: io-channel-basic: child writing 8+3834 bytes to 6 4170s # GLib-DEBUG: io-channel-basic: ...from 5: IN 4170s # GLib-DEBUG: io-channel-basic: ...from 5: 3834 bytes 4170s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+1045 bytes to 6 4171s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 4171s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 4171s # GLib-DEBUG: io-channel-basic: ...from 5: 1045 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 5: OK 4171s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 4171s # random seed: R02S0299f6bdd544c528043f8869a3593b28 4171s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 4171s # random seed: R02Sadd362ec6c7703233fa0bd8af0789abf 4171s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 4171s # random seed: R02S19a6380fc882ee3ae6550d9cb319ecc6 4171s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 4171s # random seed: R02Sf4d0e3fc234de248e63f2016371bdd78 4171s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 4171s # random seed: R02S79566e5167c02638e817a74e42492266 4171s # GLib-DEBUG: io-channel-basic: child writing 8+440 bytes to 17 4171s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 16: 440 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+20 bytes to 13 4171s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 12: 20 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+497 bytes to 11 4171s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 10: 497 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+1048 bytes to 9 4171s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 8: 1048 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+67 bytes to 15 4171s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 14: 67 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+4563 bytes to 17 4171s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 16: 4563 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+4259 bytes to 13 4171s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 12: 4259 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+4685 bytes to 11 4171s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 10: 4685 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+1606 bytes to 15 4171s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 14: 1606 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+3269 bytes to 9 4171s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 8: 3269 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+2097 bytes to 17 4171s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 16: 2097 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+1748 bytes to 13 4171s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 12: 1748 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+3131 bytes to 11 4171s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 10: 3131 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+1841 bytes to 9 4171s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 8: 1841 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4171s # GLib-DEBUG: io-channel-basic: child writing 8+2604 bytes to 15 4171s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4171s # GLib-DEBUG: io-channel-basic: ...from 14: 2604 bytes 4171s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+2119 bytes to 17 4172s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 16: 2119 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+3846 bytes to 13 4172s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 12: 3846 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+957 bytes to 9 4172s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 8: 957 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+4207 bytes to 11 4172s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 10: 4207 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+3624 bytes to 15 4172s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 14: 3624 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+506 bytes to 17 4172s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 16: 506 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+706 bytes to 13 4172s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 12: 706 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+1484 bytes to 9 4172s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 8: 1484 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+26 bytes to 11 4172s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 10: 26 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+3156 bytes to 15 4172s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 14: 3156 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+1959 bytes to 17 4172s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 16: 1959 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+1237 bytes to 13 4172s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 12: 1237 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+1694 bytes to 9 4172s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 8: 1694 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+828 bytes to 11 4172s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 10: 828 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+3614 bytes to 15 4172s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 14: 3614 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+4081 bytes to 17 4172s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 16: 4081 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+3667 bytes to 13 4172s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 12: 3667 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+3278 bytes to 9 4172s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 8: 3278 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+1759 bytes to 11 4172s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 10: 1759 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4172s # GLib-DEBUG: io-channel-basic: child writing 8+1424 bytes to 15 4172s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4172s # GLib-DEBUG: io-channel-basic: ...from 14: 1424 bytes 4172s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+3383 bytes to 17 4173s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 16: 3383 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+1348 bytes to 13 4173s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 12: 1348 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+2069 bytes to 9 4173s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 8: 2069 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+473 bytes to 15 4173s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 14: 473 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+2889 bytes to 11 4173s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 10: 2889 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+1548 bytes to 17 4173s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 16: 1548 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+2278 bytes to 13 4173s # GLib-DEBUG: io-channel-basic: child writing 8+24 bytes to 9 4173s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 8: 24 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4173s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 12: 2278 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+2836 bytes to 15 4173s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 14: 2836 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+1757 bytes to 11 4173s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 10: 1757 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+4200 bytes to 17 4173s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 16: 4200 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+3232 bytes to 13 4173s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 12: 3232 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+3122 bytes to 9 4173s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 8: 3122 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+527 bytes to 15 4173s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 14: 527 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+1289 bytes to 11 4173s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 10: 1289 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+2081 bytes to 17 4173s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 16: 2081 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+4794 bytes to 13 4173s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 12: 4794 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4173s # GLib-DEBUG: io-channel-basic: child writing 8+1458 bytes to 9 4173s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4173s # GLib-DEBUG: io-channel-basic: ...from 8: 1458 bytes 4173s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+1353 bytes to 15 4174s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 14: 1353 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+2083 bytes to 11 4174s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 10: 2083 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+3723 bytes to 13 4174s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 12: 3723 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+2301 bytes to 17 4174s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 16: 2301 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+759 bytes to 9 4174s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 8: 759 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+1411 bytes to 15 4174s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 14: 1411 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+1029 bytes to 11 4174s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 10: 1029 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+1691 bytes to 17 4174s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 16: 1691 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+2467 bytes to 13 4174s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 12: 2467 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+3003 bytes to 9 4174s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 8: 3003 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+668 bytes to 15 4174s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 14: 668 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+4726 bytes to 11 4174s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 10: 4726 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+4544 bytes to 17 4174s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 16: 4544 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+363 bytes to 13 4174s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 12: 363 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4174s # Executing: glib/io-channel-basic.test 4174s # GLib-DEBUG: io-channel-basic: child writing 8+3875 bytes to 9 4174s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 8: 3875 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+2778 bytes to 15 4174s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 14: 2778 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4174s # GLib-DEBUG: io-channel-basic: child writing 8+4552 bytes to 11 4174s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4174s # GLib-DEBUG: io-channel-basic: ...from 10: 4552 bytes 4174s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+2643 bytes to 17 4175s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 16: 2643 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+836 bytes to 13 4175s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 12: 836 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+3282 bytes to 9 4175s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 8: 3282 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+2664 bytes to 15 4175s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 14: 2664 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+331 bytes to 11 4175s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 10: 331 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+2313 bytes to 17 4175s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 16: 2313 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+4563 bytes to 13 4175s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 12: 4563 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+3948 bytes to 9 4175s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 8: 3948 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+4132 bytes to 15 4175s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 14: 4132 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+1052 bytes to 11 4175s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 10: 1052 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+294 bytes to 17 4175s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 16: 294 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+4585 bytes to 13 4175s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 12: 4585 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+1354 bytes to 9 4175s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 8: 1354 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+4686 bytes to 15 4175s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 14: 4686 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+2644 bytes to 11 4175s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 10: 2644 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+661 bytes to 17 4175s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 16: 661 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+4695 bytes to 13 4175s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 12: 4695 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+148 bytes to 9 4175s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 8: 148 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+1267 bytes to 15 4175s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 14: 1267 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4175s # GLib-DEBUG: io-channel-basic: child writing 8+3642 bytes to 11 4175s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4175s # GLib-DEBUG: io-channel-basic: ...from 10: 3642 bytes 4175s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+2571 bytes to 17 4176s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 16: 2571 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+1462 bytes to 13 4176s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 12: 1462 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+3082 bytes to 9 4176s # GLib-DEBUG: io-channel-basic: ...from 8: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 8: 3082 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+3597 bytes to 15 4176s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 14: 3597 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+260 bytes to 11 4176s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 10: 260 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+2385 bytes to 17 4176s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 16: 2385 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+3663 bytes to 13 4176s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 12: 3663 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+2707 bytes to 9 4176s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 4176s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 4176s # GLib-DEBUG: io-channel-basic: ...from 8: 2707 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 8: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+4711 bytes to 11 4176s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 10: 4711 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+4674 bytes to 15 4176s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 14: 4674 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+4036 bytes to 17 4176s # GLib-DEBUG: io-channel-basic: ...from 16: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 16: 4036 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+2835 bytes to 13 4176s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 12: 2835 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+553 bytes to 15 4176s # GLib-DEBUG: io-channel-basic: ...from 14: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 14: 553 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+629 bytes to 11 4176s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 10: 629 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+33 bytes to 17 4176s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 4176s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 4176s # GLib-DEBUG: io-channel-basic: ...from 16: 33 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 16: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+4469 bytes to 13 4176s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 12: 4469 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+1522 bytes to 15 4176s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 4176s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 4176s # GLib-DEBUG: io-channel-basic: ...from 14: 1522 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 14: OK 4176s # GLib-DEBUG: io-channel-basic: child writing 8+4808 bytes to 11 4176s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4176s # GLib-DEBUG: io-channel-basic: ...from 10: 4808 bytes 4176s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4177s # GLib-DEBUG: io-channel-basic: child writing 8+4018 bytes to 13 4177s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4177s # GLib-DEBUG: io-channel-basic: ...from 12: 4018 bytes 4177s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4177s # GLib-DEBUG: io-channel-basic: child writing 8+4106 bytes to 11 4177s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4177s # GLib-DEBUG: io-channel-basic: ...from 10: 4106 bytes 4177s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4177s # GLib-DEBUG: io-channel-basic: child writing 8+752 bytes to 13 4177s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4177s # GLib-DEBUG: io-channel-basic: ...from 12: 752 bytes 4177s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4177s # GLib-DEBUG: io-channel-basic: child writing 8+3924 bytes to 11 4177s # GLib-DEBUG: io-channel-basic: ...from 10: IN 4177s # GLib-DEBUG: io-channel-basic: ...from 10: 3924 bytes 4177s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4177s # GLib-DEBUG: io-channel-basic: child writing 8+4255 bytes to 13 4177s # GLib-DEBUG: io-channel-basic: ...from 12: IN 4177s # GLib-DEBUG: io-channel-basic: ...from 12: 4255 bytes 4177s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4177s # GLib-DEBUG: io-channel-basic: child writing 8+852 bytes to 11 4177s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 4177s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 4177s # GLib-DEBUG: io-channel-basic: ...from 10: 852 bytes 4177s # GLib-DEBUG: io-channel-basic: ...from 10: OK 4177s ok - glib/io-channel-basic.test 4177s # GLib-DEBUG: io-channel-basic: child writing 8+3070 bytes to 13 4177s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 4177s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 4177s # GLib-DEBUG: io-channel-basic: ...from 12: 3070 bytes 4177s # GLib-DEBUG: io-channel-basic: ...from 12: OK 4177s ok 1 /gio/io-basics 4177s # slow test /gio/io-basics executed in 12.22 secs 4177s # End of gio tests 4177s # Running test: glib/gdbus-connection.test 4177s TAP version 14 4177s # random seed: R02Sb247beb03ef012adfbd296e5c86f9e09 4177s 1..9 4177s # Start of gdbus tests 4177s # Start of connection tests 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/bus-failure/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/bus-failure/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/bus-failure/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/bus-failure/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/bus-failure/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/bus-failure/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/bus-failure/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/bus-failure/.dirs/runtime 4177s ok 1 /gdbus/connection/bus-failure 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/basic/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/basic/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/basic/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/basic/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/basic/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/basic/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/basic/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/basic/.dirs/runtime 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s ok 2 /gdbus/connection/basic 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/life-cycle/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/life-cycle/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/life-cycle/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/life-cycle/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/life-cycle/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/life-cycle/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/life-cycle/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/life-cycle/.dirs/runtime 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s ok 3 /gdbus/connection/life-cycle 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/send/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/send/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/send/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/send/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/send/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/send/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/send/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/send/.dirs/runtime 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s ok 4 /gdbus/connection/send 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signals/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signals/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signals/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signals/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signals/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signals/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signals/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signals/.dirs/runtime 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s ok 5 /gdbus/connection/signals 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signal-match-rules/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signal-match-rules/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signal-match-rules/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signal-match-rules/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signal-match-rules/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signal-match-rules/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signal-match-rules/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/signal-match-rules/.dirs/runtime 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s ok 6 /gdbus/connection/signal-match-rules 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/filter/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/filter/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/filter/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/filter/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/filter/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/filter/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/filter/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/filter/.dirs/runtime 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s ok 7 /gdbus/connection/filter 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/serials/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/serials/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/serials/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/serials/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/serials/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/serials/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/serials/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/serials/.dirs/runtime 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s ok 8 /gdbus/connection/serials 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/cancel/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/cancel/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/cancel/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/cancel/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/cancel/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/cancel/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/cancel/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_9WZ3J3/gdbus/connection/cancel/.dirs/runtime 4177s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4177s ok 9 /gdbus/connection/cancel 4177s # End of connection tests 4177s # End of gdbus tests 4177s ok - glib/gdbus-connection.test 4177s # Running test: glib/throws.test 4177s TAP version 14 4177s # random seed: R02S10546e3233153b194137b185e3a19e50 4177s 1..3 4177s # Start of throws tests 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_Y337J3/throws/invoke-gerror/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_Y337J3/throws/invoke-gerror/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_Y337J3/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_Y337J3/throws/invoke-gerror/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_Y337J3/throws/invoke-gerror/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_Y337J3/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_Y337J3/throws/invoke-gerror/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_Y337J3/throws/invoke-gerror/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_Y337J3/throws/invoke-gerror/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_Y337J3/throws/invoke-gerror/.dirs/runtime 4177s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4177s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 4177s ok 1 /throws/invoke-gerror 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_Y337J3/throws/vfunc-can-throw-gerror/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_Y337J3/throws/vfunc-can-throw-gerror/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_Y337J3/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_Y337J3/throws/vfunc-can-throw-gerror/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_Y337J3/throws/vfunc-can-throw-gerror/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_Y337J3/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_Y337J3/throws/vfunc-can-throw-gerror/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_Y337J3/throws/vfunc-can-throw-gerror/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_Y337J3/throws/vfunc-can-throw-gerror/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_Y337J3/throws/vfunc-can-throw-gerror/.dirs/runtime 4177s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4177s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 4177s ok 2 /throws/vfunc-can-throw-gerror 4177s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_Y337J3/throws/callback-can-throw-gerror/.dirs/home 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_Y337J3/throws/callback-can-throw-gerror/.dirs/cache 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_Y337J3/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_Y337J3/throws/callback-can-throw-gerror/.dirs/system-config2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_Y337J3/throws/callback-can-throw-gerror/.dirs/config 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_Y337J3/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_Y337J3/throws/callback-can-throw-gerror/.dirs/system-data2 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_Y337J3/throws/callback-can-throw-gerror/.dirs/data 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_Y337J3/throws/callback-can-throw-gerror/.dirs/state 4177s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_Y337J3/throws/callback-can-throw-gerror/.dirs/runtime 4177s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4177s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 4177s ok 3 /throws/callback-can-throw-gerror 4177s # End of throws tests 4177s ok - glib/throws.test 4177s # Running test: glib/gsubprocess.test 4177s TAP version 14 4177s # random seed: R02S4e0002a4a9fb4088bd57233117d2564b 4177s 1..84 4177s # Start of gsubprocess tests 4177s ok 1 /gsubprocess/noop 4177s ok 2 /gsubprocess/noop-all-to-null 4177s ok 3 /gsubprocess/noop-no-wait 4177s ok 4 /gsubprocess/noop-stdin-inherit 4177s ok 5 /gsubprocess/search-path 4177s ok 6 /gsubprocess/search-path-from-envp 4179s # Executing: glib/gsubprocess.test 4180s ok 7 /gsubprocess/signal 4180s # slow test /gsubprocess/signal executed in 2.77 secs 4180s ok 8 /gsubprocess/exit1 4180s ok 9 /gsubprocess/echo1 4180s ok 10 /gsubprocess/echo-merged 4180s ok 11 /gsubprocess/cat-utf8 4181s ok 12 /gsubprocess/cat-eof 4181s # slow test /gsubprocess/cat-eof executed in 1.00 secs 4184s # Executing: glib/gsubprocess.test 4184s ok 13 /gsubprocess/multi1 4184s # slow test /gsubprocess/multi1 executed in 3.01 secs 4184s ok 14 /gsubprocess/communicate 4198s ok 15 /gsubprocess/terminate 4199s ok - glib/gsubprocess.test 4199s # Running test: glib/test-printf.test 4199s ok - glib/test-printf.test 4199s # Running test: glib/gdbus-proxy-unique-name.test 4199s ok - glib/gdbus-proxy-unique-name.test 4199s # Running test: glib/option-context.test 4199s ok - glib/option-context.test 4199s # Running test: glib/gthash.test 4199s ok - glib/gthash.test 4199s # Running test: glib/portal-support-snap.test 4199s ok - glib/portal-support-snap.test 4199s # Running test: glib/application-command-line.test 4199s ok - glib/application-command-line.test 4199s # Running test: glib/spawn-singlethread.test 4199s ok - glib/spawn-singlethread.test 4199s # Running test: glib/cancellable.test 4199s ok - glib/cancellable.test 4199s # Running test: glib/repository.test 4199s # slow test /gsubprocess/terminate executed in 2.98 secs 4199s ok 16 /gsubprocess/fail-initialization 4199s ok 17 /gsubprocess/env 4199s ok 18 /gsubprocess/cwd 4199s ok 19 /gsubprocess/launcher-close 4199s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4199s ok 20 /gsubprocess/stdout-file 4199s ok 21 /gsubprocess/stdout-fd 4199s ok 22 /gsubprocess/child-setup 4199s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4199s ok 23 /gsubprocess/launcher-environment 4199s # Start of exit1 tests 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 4199s ok 24 /gsubprocess/exit1/cancel 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 4199s ok 25 /gsubprocess/exit1/cancel_in_cb 4199s # End of exit1 tests 4199s # Start of communicate tests 4199s ok 26 /gsubprocess/communicate/cancelled 4199s ok 27 /gsubprocess/communicate/async 4199s ok 28 /gsubprocess/communicate/utf8 4199s # hello world 4199s ok 29 /gsubprocess/communicate/no-pipes 4199s ok 30 /gsubprocess/communicate/separate-stderr 4199s ok 31 /gsubprocess/communicate/stdout-only 4199s # hello world 4199s ok 32 /gsubprocess/communicate/stderr-only 4199s ok 33 /gsubprocess/communicate/stdout-silence 4199s ok 34 /gsubprocess/communicate/nothing 4199s # Start of async tests 4199s ok 35 /gsubprocess/communicate/async/cancelled 4199s # hello world 4199s ok 36 /gsubprocess/communicate/async/no-pipes 4199s ok 37 /gsubprocess/communicate/async/separate-stderr 4199s ok 38 /gsubprocess/communicate/async/stdout-only 4199s # hello world 4199s ok 39 /gsubprocess/communicate/async/stderr-only 4199s ok 40 /gsubprocess/communicate/async/stdout-silence 4199s # Start of cancelled tests 4199s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 4199s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 4199s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 4199s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 4199s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 4199s # End of cancelled tests 4199s # End of async tests 4199s # Start of utf8 tests 4199s ok 46 /gsubprocess/communicate/utf8/cancelled 4199s ok 47 /gsubprocess/communicate/utf8/async 4199s # hello world 4199s ok 48 /gsubprocess/communicate/utf8/no-pipes 4199s ok 49 /gsubprocess/communicate/utf8/separate-stderr 4199s ok 50 /gsubprocess/communicate/utf8/stdout-only 4199s # hello world 4199s ok 51 /gsubprocess/communicate/utf8/stderr-only 4199s ok 52 /gsubprocess/communicate/utf8/stdout-silence 4199s ok 53 /gsubprocess/communicate/utf8/invalid 4199s # Start of async tests 4199s ok 54 /gsubprocess/communicate/utf8/async/cancelled 4199s # hello world 4199s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 4199s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 4199s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 4199s # hello world 4199s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 4199s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 4199s ok 60 /gsubprocess/communicate/utf8/async/invalid 4199s # Start of cancelled tests 4199s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 4199s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 4199s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 4199s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 4199s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 4199s # End of cancelled tests 4199s # End of async tests 4199s # Start of cancelled tests 4199s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 4199s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 4199s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 4199s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 4199s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 4199s # End of cancelled tests 4199s # End of utf8 tests 4199s # Start of cancelled tests 4199s ok 71 /gsubprocess/communicate/cancelled/no-pipes 4199s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 4199s ok 73 /gsubprocess/communicate/cancelled/stdout-only 4199s ok 74 /gsubprocess/communicate/cancelled/stderr-only 4199s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 4199s # End of cancelled tests 4199s # End of communicate tests 4199s # Start of env tests 4199s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4199s ok 76 /gsubprocess/env/inherit 4199s # End of env tests 4199s # Start of pass-fd tests 4199s ok 77 /gsubprocess/pass-fd/basic 4199s ok 78 /gsubprocess/pass-fd/empty-child-setup 4199s ok 79 /gsubprocess/pass-fd/inherit-fds 4199s # End of pass-fd tests 4199s # Start of fd-conflation tests 4199s ok 80 /gsubprocess/fd-conflation/basic 4199s ok 81 /gsubprocess/fd-conflation/empty-child-setup 4199s ok 82 /gsubprocess/fd-conflation/inherit-fds 4199s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 4199s # End of fd-conflation tests 4199s # Start of exit-status tests 4199s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 4199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 4199s ok 84 /gsubprocess/exit-status/trapped 4199s # End of exit-status tests 4199s # End of gsubprocess tests 4199s TAP version 14 4199s # random seed: R02S6279f0b31e2e41068a01d583b2c14e1c 4199s 1..24 4199s # Start of snprintf tests 4199s ok 1 /snprintf/retval-and-trunc 4199s ok 2 /snprintf/%d 4199s ok 3 /snprintf/%d-invalid 4199s ok 4 /snprintf/%o 4199s ok 5 /snprintf/%u 4199s ok 6 /snprintf/%x 4199s ok 7 /snprintf/%X 4199s ok 8 /snprintf/%f 4199s ok 9 /snprintf/%e 4199s ok 10 /snprintf/%c 4199s ok 11 /snprintf/%s 4199s ok 12 /snprintf/%n 4199s ok 13 /snprintf/test-percent 4199s ok 14 /snprintf/test-positional-params 4199s ok 15 /snprintf/test-64bit 4199s ok 16 /snprintf/produce-embedded-nulls 4199s # End of snprintf tests 4199s # Start of printf tests 4199s ok 17 /printf/test-percent 4199s ok 18 /printf/test-positional-params 4199s ok 19 /printf/test-64bit 4199s # Start of test-64bit tests 4199s # Start of subprocess tests 4199s # End of subprocess tests 4199s # End of test-64bit tests 4199s # End of printf tests 4199s # Start of fprintf tests 4199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3761 4199s # /fprintf/produce-embedded-nulls summary: printf() functions can produce strings with embedded null characters. That happens when passing individual characters (%c) with value ' 4199s ok 20 /fprintf/produce-embedded-nulls 4199s # End of fprintf tests 4199s # Start of sprintf tests 4199s ok 21 /sprintf/test-positional-params 4199s ok 22 /sprintf/upper-bound 4199s # End of sprintf tests 4199s # Start of vasprintf tests 4199s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 4199s ok 23 /vasprintf/invalid-format-placeholder 4199s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 4199s ok 24 /vasprintf/invalid-wide-string 4199s # End of vasprintf tests 4199s TAP version 14 4199s # random seed: R02S35136f294d2c2f837d119294b07b074a 4199s 1..1 4199s # Start of gdbus tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_6563J3/gdbus/proxy-unique-name/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_6563J3/gdbus/proxy-unique-name/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_6563J3/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_6563J3/gdbus/proxy-unique-name/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_6563J3/gdbus/proxy-unique-name/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_6563J3/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_6563J3/gdbus/proxy-unique-name/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_6563J3/gdbus/proxy-unique-name/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_6563J3/gdbus/proxy-unique-name/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_6563J3/gdbus/proxy-unique-name/.dirs/runtime 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s ok 1 /gdbus/proxy-unique-name 4199s # End of gdbus tests 4199s TAP version 14 4199s # random seed: R02S72ba04d8bd5b96b9e739ca4f05e26ad7 4199s 1..61 4199s # Start of option tests 4199s ok 1 /option/basic 4199s ok 2 /option/translate 4199s ok 3 /option/strict-posix 4199s # Testing command: program --double abc 4199s # Testing command: program --double 2e309 4199s # Testing command: program --int abc 4199s # Testing command: program --int 99999999999999999999999999999999999 4199s # Testing command: program --int64 abc 4199s # Testing command: program --int64 99999999999999999999999999999999999 4199s ok 4 /option/parsing-errors 4199s # Start of help tests 4199s ok 5 /option/help/options 4199s ok 6 /option/help/no-options 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 4199s ok 7 /option/help/no-help-options 4199s # Usage: 4199s # /usr/libexec/installed-tests/glib/option-context [OPTION…] blabla 4199s # 4199s # Summary 4199s # 4199s # Help Options: 4199s # -h, --help Show help options 4199s # 4199s # Application Options: 4199s # -t, --test=Argument to use in test (deprecated) Test tests 4199s # --test2 Tests also 4199s # 4199s # Description 4199s # 4199s ok 8 /option/help/deprecated 4199s ok 9 /option/help/main-get_help-format 4199s ok 10 /option/help/group-get_help-format 4199s # End of help tests 4199s # Start of group tests 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 4199s ok 11 /option/group/captions 4199s ok 12 /option/group/main 4199s ok 13 /option/group/error-hook 4199s ok 14 /option/group/parse 4199s # Start of captions tests 4199s # Start of subprocess tests 4199s # End of subprocess tests 4199s # End of captions tests 4199s # End of group tests 4199s # Start of restoration tests 4199s ok 15 /option/restoration/int 4199s ok 16 /option/restoration/string 4199s ok 17 /option/restoration/boolean 4199s # End of restoration tests 4199s # Start of arg tests 4199s ok 18 /option/arg/reverse-string 4199s ok 19 /option/arg/optional-int 4199s # Start of repetition tests 4199s ok 20 /option/arg/repetition/int 4199s ok 21 /option/arg/repetition/string 4199s ok 22 /option/arg/repetition/filename 4199s ok 23 /option/arg/repetition/double 4199s ok 24 /option/arg/repetition/locale 4199s ok 25 /option/arg/repetition/int64 4199s # End of repetition tests 4199s # Start of array tests 4199s ok 26 /option/arg/array/string 4199s # End of array tests 4199s # Start of callback tests 4199s ok 27 /option/arg/callback/string 4199s ok 28 /option/arg/callback/count 4199s ok 29 /option/arg/callback/optional1 4199s ok 30 /option/arg/callback/optional2 4199s ok 31 /option/arg/callback/optional3 4199s ok 32 /option/arg/callback/optional4 4199s ok 33 /option/arg/callback/optional5 4199s ok 34 /option/arg/callback/optional6 4199s ok 35 /option/arg/callback/optional7 4199s ok 36 /option/arg/callback/optional8 4199s # End of callback tests 4199s # Start of remaining tests 4199s ok 37 /option/arg/remaining/callback 4199s ok 38 /option/arg/remaining/callback-false 4199s ok 39 /option/arg/remaining/non-option 4199s ok 40 /option/arg/remaining/separator 4199s ok 41 /option/arg/remaining/array 4199s # End of remaining tests 4199s # Start of ignore tests 4199s ok 42 /option/arg/ignore/long 4199s ok 43 /option/arg/ignore/short 4199s ok 44 /option/arg/ignore/arg 4199s # End of ignore tests 4199s # Start of rest tests 4199s ok 45 /option/arg/rest/non-option 4199s ok 46 /option/arg/rest/separator1 4199s ok 47 /option/arg/rest/separator2 4199s ok 48 /option/arg/rest/separator3 4199s ok 49 /option/arg/rest/separator4 4199s ok 50 /option/arg/rest/separator5 4199s # End of rest tests 4199s # End of arg tests 4199s # Start of context tests 4199s ok 51 /option/context/add 4199s ok 52 /option/context/empty2 4199s ok 53 /option/context/empty3 4199s # End of context tests 4199s # Start of bug tests 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 4199s ok 54 /option/bug/unknown-short 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 4199s ok 55 /option/bug/lonely-dash 4199s ok 56 /option/bug/triple-dash 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 4199s ok 57 /option/bug/missing-arg 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 4199s ok 58 /option/bug/dash-arg 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 4199s ok 59 /option/bug/short-remaining 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 4199s ok 60 /option/bug/double-free 4199s ok 61 /option/bug/double-zero 4199s # End of bug tests 4199s # End of option tests 4199s TAP version 14 4199s # random seed: R02Sdf50f4e893204da93c8b9b22eb9cac37 4199s 1..1 4199s # Start of gthash tests 4199s ok 1 /gthash/build-retrieve 4199s # End of gthash tests 4199s TAP version 14 4199s # random seed: R02S25ee4730f454bc65fe52b379a2b2b85e 4199s 1..7 4199s # Start of portal-support tests 4199s # Start of snap tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl/.dirs/runtime 4199s # Created snap.yaml in /tmp/test_portal-support-snap_CO87J3/meta/snap.yaml 4199s Unable to clean up temporary directory /tmp/test_portal-support-snap_CO87J3/portal-support/snap/no-snapctl: No such file or directory 4199s ok 1 /portal-support/snap/no-snapctl 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/runtime 4199s # Created snap.yaml in /tmp/test_portal-support-snap_CO87J3/meta/snap.yaml 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/none/.dirs/runtime/snapctl 4199s Unable to clean up temporary directory /tmp/test_portal-support-snap_CO87J3/portal-support/snap/none: No such file or directory 4199s ok 2 /portal-support/snap/none 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/runtime 4199s # Created snap.yaml in /tmp/test_portal-support-snap_CO87J3/meta/snap.yaml 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/all/.dirs/runtime/snapctl 4199s Unable to clean up temporary directory /tmp/test_portal-support-snap_CO87J3/portal-support/snap/all: No such file or directory 4199s ok 3 /portal-support/snap/all 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/runtime 4199s # Created snap.yaml in /tmp/test_portal-support-snap_CO87J3/meta/snap.yaml 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only/.dirs/runtime/snapctl 4199s Unable to clean up temporary directory /tmp/test_portal-support-snap_CO87J3/portal-support/snap/desktop-only: No such file or directory 4199s ok 4 /portal-support/snap/desktop-only 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/runtime 4199s # Created snap.yaml in /tmp/test_portal-support-snap_CO87J3/meta/snap.yaml 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only/.dirs/runtime/snapctl 4199s Unable to clean up temporary directory /tmp/test_portal-support-snap_CO87J3/portal-support/snap/network-only: No such file or directory 4199s ok 5 /portal-support/snap/network-only 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/runtime 4199s # Created snap.yaml in /tmp/test_portal-support-snap_CO87J3/meta/snap.yaml 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 4199s Unable to clean up temporary directory /tmp/test_portal-support-snap_CO87J3/portal-support/snap/gsettings-only: No such file or directory 4199s ok 6 /portal-support/snap/gsettings-only 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/runtime 4199s # Created snap.yaml in /tmp/test_portal-support-snap_CO87J3/meta/snap.yaml 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 4199s # Created snapctl in /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 4199s Unable to clean up temporary directory /tmp/test_portal-support-snap_CO87J3/portal-support/snap/updates-dynamically: No such file or directory 4199s ok 7 /portal-support/snap/updates-dynamically 4199s # End of snap tests 4199s # End of portal-support tests 4199s Unable to clean up temporary directory /tmp/test_portal-support-snap_CO87J3: No such file or directory 4199s TAP version 14 4199s # random seed: R02S9d98b9b8d3a95b7f5188d461da9f99db 4199s 1..1 4199s # Start of application-command-line tests 4199s ok 1 /application-command-line/basic-properties 4199s # End of application-command-line tests 4199s TAP version 14 4199s # random seed: R02Sfb67046421b1a0992e645a876c1315b4 4199s 1..9 4199s # Start of gthread tests 4199s ok 1 /gthread/spawn-single-sync 4199s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 4199s ok 2 /gthread/spawn-stderr-socket 4199s ok 3 /gthread/spawn-single-async 4199s # thread 1 4199s # thread 1 4199s ok 4 /gthread/spawn-single-async-with-fds 4199s ok 5 /gthread/spawn-async-with-invalid-fds 4199s ok 6 /gthread/spawn-script 4199s ok 7 /gthread/spawn-posix-spawn 4199s # Start of spawn tests 4199s ok 8 /gthread/spawn/nonexistent 4199s # FD map: 4199s # • 5 → 15 4199s # • 6 → 16 4199s # • 7 → 17 4199s # • 8 → 18 4199s # • 9 → 19 4199s # • 10 → 20 4199s # • 11 → 21 4199s # • 12 → 22 4199s # • 13 → 23 4199s # • 3 → 13 4199s ok 9 /gthread/spawn/fd-assignment-clash 4199s # End of spawn tests 4199s # End of gthread tests 4199s TAP version 14 4199s # random seed: R02S901568c19175642eae1caa2502ed8675 4199s 1..18 4199s # Start of cancellable tests 4199s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 4199s ok 2 /cancellable/null 4199s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 4199s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 4199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 4199s ok 4 /cancellable/connect-to-disposing-callback 4199s ok 5 /cancellable/connect-cancelled-data-is-destroyed 4199s # Toggle reference callback for GCancellable (0xc11120d88c10), last: 1 4199s # Toggle reference callback for GCancellable (0xc11120d88c10), last: 0 4199s # Toggle reference callback for GCancellable (0xc11120d88c10), last: 1 4199s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 4199s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 4199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 4199s ok 7 /cancellable/connect-cancelled-to-disposing-callback 4199s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 4199s # Toggle reference callback for GCancellable (0xc11120d88c10), last: 1 4199s # Toggle reference callback for GCancellable (0xc11120d88c10), last: 0 4199s # Toggle reference callback for GCancellable (0xc11120d88c10), last: 1 4199s # Toggle reference callback for GCancellable (0xc11120d88c10), last: 0 4199s # Toggle reference callback for GCancellable (0xc11120d88c10), last: 1 4199s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 4199s # /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 4199s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 4199s # /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 4199s ok 11 /cancellable/resets-on-cancel-callback-hangs 4199s ok 12 /cancellable/poll-fd 4199s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 4199s ok 13 /cancellable/poll-fd-cancelled 4199s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 4199s ok 14 /cancellable/poll-fd-cancelled-threaded 4199s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 4199s ok 15 /cancellable/cancel-reset-races 4199s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 4199s not ok 16 /cancellable/cancel-reset-connect-races # TODO We didn't really checked if callbacks is called properly 4199s # End of cancellable tests 4199s # Start of cancellable-source tests 4199s # /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) 4199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 4199s ok 17 /cancellable-source/threaded-dispose 4199s # slow test /cancellable-source/threaded-dispose executed in 0.58 secs 4199s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 4199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 4199s ok 18 /cancellable-source/can-be-fired-multiple-times 4199s # End of cancellable-source tests 4199s TAP version 14 4199s # random seed: R02Sa90c075f1ae61262e70f0fa0f744ca74 4199s 1..24 4199s # Start of repository tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/basic/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/basic/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/basic/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/basic/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/basic/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/basic/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/basic/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/basic/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/basic/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/basic/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 4199s ok 1 /repository/basic 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/info/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/info/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/info/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/info/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/info/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/info/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/info/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/info/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/info/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/info/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/info summary: Test retrieving some basic info blobs from a typelib 4199s ok 2 /repository/info 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/dependencies/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/dependencies/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/dependencies/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/dependencies/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/dependencies/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/dependencies/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/dependencies/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/dependencies/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/dependencies/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/dependencies/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 4199s ok 3 /repository/dependencies 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/arg-info/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/arg-info/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/arg-info/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/arg-info/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/arg-info/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/arg-info/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/arg-info/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/arg-info/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/arg-info/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/arg-info/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 4199s ok 4 /repository/arg-info 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/callable-info/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/callable-info/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/callable-info/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/callable-info/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/callable-info/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/callable-info/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/callable-info/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/callable-info/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/callable-info/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/callable-info/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 4199s ok 5 /repository/callable-info 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/callback-info/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/callback-info/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/callback-info/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/callback-info/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/callback-info/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/callback-info/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/callback-info/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/callback-info/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/callback-info/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/callback-info/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 4199s ok 6 /repository/callback-info 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/char-types/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/char-types/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/char-types/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/char-types/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/char-types/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/char-types/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/char-types/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/char-types/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/char-types/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/char-types/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 4199s ok 7 /repository/char-types 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/constructor-return-type/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/constructor-return-type/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/constructor-return-type/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/constructor-return-type/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/constructor-return-type/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/constructor-return-type/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/constructor-return-type/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/constructor-return-type/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 4199s ok 8 /repository/constructor-return-type 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/enum-info-c-identifier/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/enum-info-c-identifier/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/enum-info-c-identifier/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/enum-info-c-identifier/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/enum-info-c-identifier/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/enum-info-c-identifier/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/enum-info-c-identifier/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/enum-info-c-identifier/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 4199s ok 9 /repository/enum-info-c-identifier 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/enum-info-static-methods/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/enum-info-static-methods/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/enum-info-static-methods/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/enum-info-static-methods/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/enum-info-static-methods/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/enum-info-static-methods/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/enum-info-static-methods/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/enum-info-static-methods/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/enum-info-static-methods summary: Test an enum with methods 4199s ok 10 /repository/enum-info-static-methods 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/error-quark/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/error-quark/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/error-quark/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/error-quark/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/error-quark/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/error-quark/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/error-quark/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/error-quark/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/error-quark/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/error-quark/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/error-quark summary: Test finding an error quark by error domain 4199s ok 11 /repository/error-quark 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/flags-info-c-identifier/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/flags-info-c-identifier/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/flags-info-c-identifier/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/flags-info-c-identifier/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/flags-info-c-identifier/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/flags-info-c-identifier/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/flags-info-c-identifier/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/flags-info-c-identifier/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 4199s ok 12 /repository/flags-info-c-identifier 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/fundamental-ref-func/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/fundamental-ref-func/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/fundamental-ref-func/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/fundamental-ref-func/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/fundamental-ref-func/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/fundamental-ref-func/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/fundamental-ref-func/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/fundamental-ref-func/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 4199s ok 13 /repository/fundamental-ref-func 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/instance-method-ownership-transfer/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/instance-method-ownership-transfer/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/instance-method-ownership-transfer/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/instance-method-ownership-transfer/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/instance-method-ownership-transfer/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/instance-method-ownership-transfer/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/instance-method-ownership-transfer/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/instance-method-ownership-transfer/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 4199s ok 14 /repository/instance-method-ownership-transfer 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/object-gtype-interfaces/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/object-gtype-interfaces/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/object-gtype-interfaces/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/object-gtype-interfaces/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/object-gtype-interfaces/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/object-gtype-interfaces/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/object-gtype-interfaces/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/object-gtype-interfaces/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 4199s ok 15 /repository/object-gtype-interfaces 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/signal-info-with-array-length-arg/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/signal-info-with-array-length-arg/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/signal-info-with-array-length-arg/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/signal-info-with-array-length-arg/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/signal-info-with-array-length-arg/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/signal-info-with-array-length-arg/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/signal-info-with-array-length-arg/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/signal-info-with-array-length-arg/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 4199s ok 16 /repository/signal-info-with-array-length-arg 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/type-info-name/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/type-info-name/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/type-info-name/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/type-info-name/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/type-info-name/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/type-info-name/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/type-info-name/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/type-info-name/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 4199s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 4199s ok 17 /repository/type-info-name 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-no-invoker/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-no-invoker/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/vfunc-info-with-no-invoker/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-no-invoker/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/vfunc-info-with-no-invoker/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-no-invoker/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-no-invoker/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-no-invoker/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 4199s ok 18 /repository/vfunc-info-with-no-invoker 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 4199s ok 19 /repository/vfunc-info-with-invoker-on-interface 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-object/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-object/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-object/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-object/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-object/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 4199s ok 20 /repository/vfunc-info-with-invoker-on-object 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/find-by-gtype/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/find-by-gtype/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/find-by-gtype/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/find-by-gtype/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/find-by-gtype/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/find-by-gtype/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/find-by-gtype/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/find-by-gtype/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/find-by-gtype summary: Test finding a GType 4199s ok 21 /repository/find-by-gtype 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/loaded-namespaces/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/loaded-namespaces/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/loaded-namespaces/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/loaded-namespaces/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/loaded-namespaces/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/loaded-namespaces/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/loaded-namespaces/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/loaded-namespaces/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/loaded-namespaces summary: Test listing loaded namespaces 4199s ok 22 /repository/loaded-namespaces 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/dup_default/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/dup_default/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/dup_default/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/dup_default/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/dup_default/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/dup_default/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/dup_default/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/dup_default/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/dup_default/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/dup_default/.dirs/runtime 4199s ok 23 /repository/dup_default 4199s # Start of base-info tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_UNA8J3/repository/base-info/clear/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_UNA8J3/repository/base-info/clear/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_UNA8J3/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_UNA8J3/repository/base-info/clear/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_UNA8J3/repository/base-info/clear/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_UNA8J3/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_UNA8J3/repository/base-info/clear/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_UNA8J3/repository/base-info/clear/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_UNA8J3/repository/base-info/clear/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_UNA8J3/repository/base-info/clear/.dirs/runtime 4199s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4199s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 4199s ok 24 /repository/base-info/clear 4199s # End of base-info tests 4199s # End of repository tests 4199s TAP version 14 4199s # random seed: R02S9022e00911f915b6ac84b5bc39850486 4199s 1..1 4199s # Start of closure tests 4199s # Init 0xb5c26189adc0 4199s # Yielding from main thread 4199s # Yielding from main thread 4199s # Yielding from main thread 4199s # Yielding from main thread 4199s # Yielding from thread1 4199s # Yielding from main thread 4199s # Yielding from main thread 4199s # Yielding from main thread 4199s # Yielding from thread2 4199s # Yielding from main thread 4199s # Yielding from main thread 4199s # Yielding from thread2 4199s # Stopping 4199s # Stopped 4199s ok 1 /closure/refcount 4199s # End of closure tests 4199s TAP version 14 4199s # random seed: R02Sb3065ce4eabe8857258ee6fa8ea437df 4199s 1..5 4199s # Start of gio tests 4199s # Start of contexts tests 4199s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4199s ok 1 /gio/contexts/thread-independence 4199s ok 2 /gio/contexts/context-independence 4199s # Start of context-specific tests 4199s ok 3 /gio/contexts/context-specific/identity 4199s ok 4 /gio/contexts/context-specific/emit 4199s ok 5 /gio/contexts/context-specific/emit-and-unref 4199s # End of context-specific tests 4199s # End of contexts tests 4199s # End of gio tests 4199s TAP version 14 4199s # random seed: R02S7ae9ebe67c1bddde86973011a5def499 4199s 1..2 4199s # Start of mem tests 4199s ok 1 /mem/overflow 4199s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 4199s ok 2 /mem/empty-alloc 4199s # Start of overflow tests 4199s # Start of subprocess tests 4199s # End of subprocess tests 4199s # End of overflow tests 4199s # Start of empty-alloc tests 4199s # End of empty-alloc tests 4199s # End of mem tests 4199s TAP version 13 4199s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 4199s 1..1 4199s TAP version 14 4199s # random seed: R02S5415670468b179fbb065ede5290f0f81 4199s 1..2 4199s # Start of mount-operation tests 4199s ok 1 /mount-operation/construction 4199s ok 2 /mount-operation/properties 4199s # End of mount-operation tests 4199s TAP version 14 4199s # random seed: R02Sd8fbc2aecaa6c691447463dd6b832821 4199s 1..20 4199s # Start of list tests 4199s ok 1 /list/sort 4199s ok 2 /list/sort-with-data 4199s ok 3 /list/insert-before-link 4199s ok 4 /list/insert-sorted 4199s ok 5 /list/insert-sorted-with-data 4199s ok 6 /list/reverse 4199s ok 7 /list/nth 4199s ok 8 /list/concat 4199s ok 9 /list/remove 4199s ok 10 /list/remove-all 4199s ok 11 /list/first-last 4199s ok 12 /list/insert 4199s ok 13 /list/free-full 4199s ok 14 /list/copy 4199s ok 15 /list/copy-deep 4199s ok 16 /list/delete-link 4199s ok 17 /list/prepend 4199s ok 18 /list/position 4199s ok 19 /list/double-free 4199s # Start of sort tests 4199s ok 20 /list/sort/stable 4199s # End of sort tests 4199s # End of list tests 4199s TAP version 14 4199s # random seed: R02S21897c76329912ccb0ddccfbd2cf34b6 4199s 1..1 4199s # Start of gobject tests 4199s # Start of flags tests 4199s ok 1 /gobject/flags/validate 4199s # End of flags tests 4199s # End of gobject tests 4199s TAP version 14 4199s # random seed: R02S83567cfc717c8fe553b7c5e89f437180 4199s 1..3 4199s # Start of module tests 4199s ok 1 /module/basics 4199s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 4199s ok 2 /module/invalid-libtool-archive 4199s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 4199s ok 3 /module/local-binding 4199s # End of module tests 4199s TAP version 14 4199s # random seed: R02S48618d73495f02114b652d5f78fc23a8 4199s 1..5 4199s # Start of gdbus tests 4199s # Start of auth tests 4199s # Start of client tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/EXTERNAL/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/EXTERNAL/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/EXTERNAL/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/EXTERNAL/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/EXTERNAL/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/EXTERNAL/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/EXTERNAL/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/EXTERNAL/.dirs/runtime 4199s ok 1 /gdbus/auth/client/EXTERNAL 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 4199s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 4199s # End of client tests 4199s # Start of server tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/ANONYMOUS/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/ANONYMOUS/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/ANONYMOUS/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/ANONYMOUS/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/ANONYMOUS/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/ANONYMOUS/.dirs/runtime 4199s ok 3 /gdbus/auth/server/ANONYMOUS 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/EXTERNAL/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/EXTERNAL/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/EXTERNAL/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/EXTERNAL/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/EXTERNAL/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/EXTERNAL/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/EXTERNAL/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/EXTERNAL/.dirs/runtime 4199s ok 4 /gdbus/auth/server/EXTERNAL 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_2N1IK3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 4199s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 4199s # End of server tests 4199s # End of auth tests 4199s # End of gdbus tests 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s TAP version 14 4199s # random seed: R02S1c5ec6c5270d11305f4ada8a794d7362 4199s 1..1 4199s # Start of null-settings-backend tests 4199s ok 1 /null-settings-backend/extension-point-registered 4199s # End of null-settings-backend tests 4199s TAP version 13 4199s ok 1 __main__.TestMkenums.test_available_in 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpf0wz117f 4199s # rspfile: False 4199s # /tmp/tmpf0wz117f/tmp_4lokzov.h: 4199s # typedef enum { 4199s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 4199s # } GDBusServerFlags; 4199s # 4199s # /tmp/tmpf0wz117f/tmptvfdl1qe.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpf0wz117f/tmptvfdl1qe.template', '/tmp/tmpf0wz117f/tmp_4lokzov.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpf0wz117f/tmp_4lokzov.h 4199s # basename: tmp_4lokzov.h 4199s # enumeration-production 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-header 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-production 4199s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 4199s # valuenick: user 4199s # valuenum: 4 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-tail 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 2 __main__.TestMkenums.test_comma_in_enum_value 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpsn0h49mu 4199s # rspfile: False 4199s # /tmp/tmpsn0h49mu/tmp29iyimtv.h: 4199s # typedef enum { 4199s # ENUM_VALUE_WITH_COMMA = ',', 4199s # } TestCommaEnum; 4199s # 4199s # /tmp/tmpsn0h49mu/tmpmhb2ryy9.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpsn0h49mu/tmpmhb2ryy9.template', '/tmp/tmpsn0h49mu/tmp29iyimtv.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpsn0h49mu/tmp29iyimtv.h 4199s # basename: tmp29iyimtv.h 4199s # enumeration-production 4199s # EnumName: TestCommaEnum 4199s # enum_name: test_comma_enum 4199s # ENUMNAME: TEST_COMMA_ENUM 4199s # ENUMSHORT: COMMA_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: TestCommaEnum 4199s # enum_name: test_comma_enum 4199s # ENUMNAME: TEST_COMMA_ENUM 4199s # ENUMSHORT: COMMA_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE_WITH_COMMA 4199s # valuenick: comma 4199s # valuenum: 44 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: TestCommaEnum 4199s # enum_name: test_comma_enum 4199s # ENUMNAME: TEST_COMMA_ENUM 4199s # ENUMSHORT: COMMA_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 3 __main__.TestMkenums.test_deprecated_in 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpnevxwbl9 4199s # rspfile: False 4199s # /tmp/tmpnevxwbl9/tmplzvhzgmj.h: 4199s # typedef enum { 4199s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 4199s # } GDBusServerFlags; 4199s # 4199s # /tmp/tmpnevxwbl9/tmpazioa8qp.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpnevxwbl9/tmpazioa8qp.template', '/tmp/tmpnevxwbl9/tmplzvhzgmj.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpnevxwbl9/tmplzvhzgmj.h 4199s # basename: tmplzvhzgmj.h 4199s # enumeration-production 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-header 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-production 4199s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 4199s # valuenick: user 4199s # valuenum: 4 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-tail 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 4 __main__.TestMkenums.test_deprecated_in_for 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpudiyiw89 4199s # rspfile: False 4199s # /tmp/tmpudiyiw89/tmpqzef6u4b.h: 4199s # typedef enum { 4199s # 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) 4199s # } GDBusServerFlags; 4199s # 4199s # /tmp/tmpudiyiw89/tmpo3ygh0qm.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpudiyiw89/tmpo3ygh0qm.template', '/tmp/tmpudiyiw89/tmpqzef6u4b.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpudiyiw89/tmpqzef6u4b.h 4199s # basename: tmpqzef6u4b.h 4199s # enumeration-production 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-header 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-production 4199s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 4199s # valuenick: user 4199s # valuenum: 4 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-tail 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 5 __main__.TestMkenums.test_empty_header 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpsrelwk5d 4199s # rspfile: False 4199s # /tmp/tmpsrelwk5d/tmp8rprojt9.h: 4199s # /tmp/tmpsrelwk5d/tmpjnn7pgdo.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpsrelwk5d/tmpjnn7pgdo.template', '/tmp/tmpsrelwk5d/tmp8rprojt9.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 6 __main__.TestMkenums.test_empty_template 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpht75oi5_ 4199s # rspfile: False 4199s # /tmp/tmpht75oi5_/tmp_spnkhcb.template: 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpht75oi5_/tmp_spnkhcb.template'] 4199s # Return code: 0 4199s # Output: 4199s # /* 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. */ 4199s # 4199s # 4199s # /* Generated data ends here */ 4199s # Error: 4199s ok 7 __main__.TestMkenums.test_enum_name 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpuddmjavm 4199s # rspfile: False 4199s # /tmp/tmpuddmjavm/tmpvxlnm151.h: 4199s # typedef enum _SomeEnumIdentifier { 4199s # ENUM_VALUE 4199s # } SomeEnumIdentifier; 4199s # 4199s # /tmp/tmpuddmjavm/tmp6gn59z_a.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpuddmjavm/tmp6gn59z_a.template', '/tmp/tmpuddmjavm/tmpvxlnm151.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpuddmjavm/tmpvxlnm151.h 4199s # basename: tmpvxlnm151.h 4199s # enumeration-production 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE 4199s # valuenick: value 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 8 __main__.TestMkenums.test_enum_private_public 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpok55rqzj 4199s # rspfile: False 4199s # /tmp/tmpok55rqzj/tmphkpr1kqx.h: 4199s # typedef enum { 4199s # ENUM_VALUE_PUBLIC1, 4199s # /*< private >*/ 4199s # ENUM_VALUE_PRIVATE, 4199s # } SomeEnumA 4199s # 4199s # /tmp/tmpok55rqzj/tmpmiprnn7i.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /ok - glib/repository.test 4199s # Running test: glib/closure-refcount.test 4199s ok - glib/closure-refcount.test 4199s # Running test: glib/contexts.test 4199s ok - glib/contexts.test 4199s # Running test: glib/mem-overflow.test 4199s ok - glib/mem-overflow.test 4199s # Running test: glib/memory-monitor-dbus.test 4199s ok - glib/memory-monitor-dbus.test 4199s # Running test: glib/mount-operation.test 4199s ok - glib/mount-operation.test 4199s # Running test: glib/list.test 4199s ok - glib/list.test 4199s # Running test: glib/flags.test 4199s ok - glib/flags.test 4199s # Running test: glib/module-test-plugin.test 4199s ok - glib/module-test-plugin.test 4199s # Running test: glib/gdbus-auth.test 4199s ok - glib/gdbus-auth.test 4199s # Running test: glib/null-settings-backend.test 4199s ok - glib/null-settings-backend.test 4199s # Running test: glib/mkenums.py.test 4199s # Executing: glib/mkenums.py.test 4199s ok - glib/mkenums.py.test 4199s # Running test: glib/markup-escape.test 4199s ok - glib/markup-escape.test 4199s # Running test: glib/actions.test 4199s ok - glib/actions.test 4199s # Running test: glib/gdbus-peer.test 4199s ok - glib/gdbus-peer.test 4199s # Running test: glib/markup-collect.test 4199s ok - glib/markup-collect.test 4199s # Running test: glib/io-channel.test 4199s ok - glib/io-channel.test 4199s # Running test: glib/gdbus-test-codegen-old.test 4199s ok - glib/gdbus-test-codegen-old.test 4199s # Running test: glib/ir-parser.test 4199s ok - glib/ir-parser.test 4199s # Running test: glib/network-monitor.test 4199s ok - glib/network-monitor.test 4199s # Running test: glib/g-file-info.test 4199s ok - glib/g-file-info.test 4199s # Running test: glib/gdbus-error.test 4199s ok - glib/gdbus-error.test 4199s # Running test: glib/io-stream.test 4199s ok - glib/io-stream.test 4199s # Running test: glib/bitlock.test 4199s ok - glib/bitlock.test 4199s # Running test: glib/gvariant.test 4199s # Executing: glib/gvariant.test 4199s ok - glib/gvariant.test 4199s # Running test: glib/atomic-c-99.test 4199s ok - glib/atomic-c-99.test 4199s # Running test: glib/properties-refcount2.test 4199s ok - glib/properties-refcount2.test 4199s # Running test: glib/overflow-fallback.test 4199s ok - glib/overflow-fallback.test 4199s # Running test: glib/deftype.test 4199s ok - glib/deftype.test 4199s # Running test: glib/cxx-2b.test 4199s ok - glib/cxx-2b.test 4199s # Running test: glib/struct-info.test 4199s ok - glib/struct-info.test 4199s # Running test: glib/gdbus-message.test 4199s ok - glib/gdbus-message.test 4199s # Running test: glib/tree.test 4199s ok - glib/tree.test 4199s # Running test: glib/rand.test 4199s ok - glib/rand.test 4199s # Running test: glib/closure.test 4199s ok - glib/closure.test 4199s # Running test: glib/cache.test 4199s ok - glib/cache.test 4199s # Running test: glib/enums.test 4199s ok - glib/enums.test 4199s # Running test: glib/boxed.test 4199s ok - glib/boxed.test 4199s # Running test: glib/gobject-private.test 4199s ok - glib/gobject-private.test 4199s # Running test: glib/gsocketclient-slow.test 4199s *** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpok55rqzj/tmpmiprnn7i.template', '/tmp/tmpok55rqzj/tmphkpr1kqx.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpok55rqzj/tmphkpr1kqx.h 4199s # basename: tmphkpr1kqx.h 4199s # enumeration-production 4199s # EnumName: SomeEnumA 4199s # enum_name: some_enum_a 4199s # ENUMNAME: SOME_ENUM_A 4199s # ENUMSHORT: ENUM_A 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: SomeEnumA 4199s # enum_name: some_enum_a 4199s # ENUMNAME: SOME_ENUM_A 4199s # ENUMSHORT: ENUM_A 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE_PUBLIC1 4199s # valuenick: public1 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: SomeEnumA 4199s # enum_name: some_enum_a 4199s # ENUMNAME: SOME_ENUM_A 4199s # ENUMSHORT: ENUM_A 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s # 4199s # /tmp/tmpok55rqzj/tmp6a36p6qs.h: 4199s # typedef enum { 4199s # /*< private >*/ 4199s # ENUM_VALUE_PRIVATE, 4199s # /*< public >*/ 4199s # ENUM_VALUE_PUBLIC2, 4199s # } SomeEnumB; 4199s # 4199s # /tmp/tmpok55rqzj/tmpifvz0z88.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpok55rqzj/tmpifvz0z88.template', '/tmp/tmpok55rqzj/tmp6a36p6qs.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpok55rqzj/tmp6a36p6qs.h 4199s # basename: tmp6a36p6qs.h 4199s # enumeration-production 4199s # EnumName: SomeEnumB 4199s # enum_name: some_enum_b 4199s # ENUMNAME: SOME_ENUM_B 4199s # ENUMSHORT: ENUM_B 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: SomeEnumB 4199s # enum_name: some_enum_b 4199s # ENUMNAME: SOME_ENUM_B 4199s # ENUMSHORT: ENUM_B 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE_PUBLIC2 4199s # valuenick: public2 4199s # valuenum: 1 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: SomeEnumB 4199s # enum_name: some_enum_b 4199s # ENUMNAME: SOME_ENUM_B 4199s # ENUMSHORT: ENUM_B 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmppiq67l8m 4199s # rspfile: False 4199s # /tmp/tmppiq67l8m/tmph3dto7vl.h: 4199s # typedef enum { 4199s # /*< private >*/ 4199s # ENUM_VALUE_PRIVATE = 5, 4199s # /*< public >*/ 4199s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 4199s # } TestSymbolicEnum; 4199s # 4199s # /tmp/tmppiq67l8m/tmplrp2_9z8.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmppiq67l8m/tmplrp2_9z8.template', '/tmp/tmppiq67l8m/tmph3dto7vl.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmppiq67l8m/tmph3dto7vl.h 4199s # basename: tmph3dto7vl.h 4199s # enumeration-production 4199s # EnumName: TestSymbolicEnum 4199s # enum_name: test_symbolic_enum 4199s # ENUMNAME: TEST_SYMBOLIC_ENUM 4199s # ENUMSHORT: SYMBOLIC_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: TestSymbolicEnum 4199s # enum_name: test_symbolic_enum 4199s # ENUMNAME: TEST_SYMBOLIC_ENUM 4199s # ENUMSHORT: SYMBOLIC_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE_PUBLIC 4199s # valuenick: public 4199s # valuenum: 7 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: TestSymbolicEnum 4199s # enum_name: test_symbolic_enum 4199s # ENUMNAME: TEST_SYMBOLIC_ENUM 4199s # ENUMSHORT: SYMBOLIC_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpzbcrns_l 4199s # rspfile: False 4199s # /tmp/tmpzbcrns_l/tmpx3om505x.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-tail ***/ 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpzbcrns_l/tmpx3om505x.template'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # file-tail 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s # WARNING: @filename@ used in file-header section. 4199s # WARNING: @basename@ used in file-header section. 4199s # WARNING: @filename@ used in file-tail section. 4199s # WARNING: @basename@ used in file-tail section. 4199s ok 11 __main__.TestMkenums.test_help 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmp5mp06hil 4199s # rspfile: False 4199s # Running: ['/usr/bin/glib-mkenums', '--help'] 4199s # Return code: 0 4199s # Output: 4199s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 4199s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 4199s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 4199s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 4199s # [--comments COMMENT_TMPL] [--template TEMPLATE] 4199s # [--output OUTPUT] [--version] 4199s # [args ...] 4199s # 4199s # positional arguments: 4199s # args One or more input files, or a single argument 4199s # @rspfile_path pointing to a file that contains the 4199s # actual arguments 4199s # 4199s # options: 4199s # -h, --help show this help message and exit 4199s # --identifier-prefix IDPREFIX 4199s # Identifier prefix 4199s # --symbol-prefix SYMPREFIX 4199s # Symbol prefix 4199s # --fhead FHEAD Output file header 4199s # --ftail FTAIL Output file footer 4199s # --fprod FPROD Put out TEXT every time a new input file is being 4199s # processed. 4199s # --eprod EPROD Per enum text, produced prior to value iterations 4199s # --vhead VHEAD Value header, produced before iterating over enum 4199s # values 4199s # --vprod VPROD Value text, produced for each enum value. 4199s # --vtail VTAIL Value tail, produced after iterating over enum values 4199s # --comments COMMENT_TMPL 4199s # Comment structure 4199s # --template TEMPLATE Template file 4199s # --output OUTPUT 4199s # --version, -v Print version information 4199s # 4199s # Production text substitutions: 4199s # @EnumName@ PrefixTheXEnum 4199s # @enum_name@ prefix_the_xenum 4199s # @ENUMNAME@ PREFIX_THE_XENUM 4199s # @ENUMSHORT@ THE_XENUM 4199s # @ENUMPREFIX@ PREFIX 4199s # @enumsince@ the user-provided since value given 4199s # @VALUENAME@ PREFIX_THE_XVALUE 4199s # @valuenick@ the-xvalue 4199s # @valuenum@ the integer value (limited support, Since: 2.26) 4199s # @type@ either enum or flags 4199s # @Type@ either Enum or Flags 4199s # @TYPE@ either ENUM or FLAGS 4199s # @filename@ name of current input file 4199s # @basename@ base name of the current input file (Since: 2.22) 4199s # Error: 4199s ok 12 __main__.TestMkenums.test_no_args 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpw49r6l95 4199s # rspfile: False 4199s # Running: ['/usr/bin/glib-mkenums'] 4199s # Return code: 0 4199s # Output: 4199s # /* 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. */ 4199s # 4199s # 4199s # /* Generated data ends here */ 4199s # Error: 4199s ok 13 __main__.TestMkenums.test_no_headers 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmp8un33uxx 4199s # rspfile: False 4199s # /tmp/tmp8un33uxx/tmpwnuh7kky.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp8un33uxx/tmpwnuh7kky.template'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 14 __main__.TestMkenums.test_no_nick 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpmgia3vcf 4199s # rspfile: False 4199s # /tmp/tmpmgia3vcf/tmpzydt58lz.h: 4199s # typedef enum { 4199s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 4199s # } GeglSamplerType; 4199s # 4199s # /tmp/tmpmgia3vcf/tmpxjf_u43w.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpmgia3vcf/tmpxjf_u43w.template', '/tmp/tmpmgia3vcf/tmpzydt58lz.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpmgia3vcf/tmpzydt58lz.h 4199s # basename: tmpzydt58lz.h 4199s # enumeration-production 4199s # EnumName: GeglSamplerType 4199s # enum_name: gegl_sampler_type 4199s # ENUMNAME: GEGL_SAMPLER_TYPE 4199s # ENUMSHORT: SAMPLER_TYPE 4199s # ENUMPREFIX: GEGL 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: GeglSamplerType 4199s # enum_name: gegl_sampler_type 4199s # ENUMNAME: GEGL_SAMPLER_TYPE 4199s # ENUMSHORT: SAMPLER_TYPE 4199s # ENUMPREFIX: GEGL 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: GEGL_SAMPLER_NEAREST 4199s # valuenick: nearest 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: GeglSamplerType 4199s # enum_name: gegl_sampler_type 4199s # ENUMNAME: GEGL_SAMPLER_TYPE 4199s # ENUMSHORT: SAMPLER_TYPE 4199s # ENUMPREFIX: GEGL 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 15 __main__.TestMkenums.test_non_utf8_encoding 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmp64tn262n 4199s # rspfile: False 4199s # /tmp/tmp64tn262n/tmp22dlyni5.h: 4199s # /* Copyright © La Peña */ 4199s # typedef enum { 4199s # ENUM_VALUE 4199s # } SomeEnumIdentifier; 4199s # 4199s # /tmp/tmp64tn262n/tmppakhomii.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp64tn262n/tmppakhomii.template', '/tmp/tmp64tn262n/tmp22dlyni5.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmp64tn262n/tmp22dlyni5.h 4199s # basename: tmp22dlyni5.h 4199s # enumeration-production 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE 4199s # valuenick: value 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 4199s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 4199s ok 16 __main__.TestMkenums.test_reproducible 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpz4q5qkoz 4199s # rspfile: False 4199s # /tmp/tmpz4q5qkoz/tmpdb8vdgud.template: template 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpz4q5qkoz/tmpdb8vdgud.template', '/tmp/tmpz4q5qkoz/tmpqr9ujtm71.h', '/tmp/tmpz4q5qkoz/tmpqvpxjyhm2.h'] 4199s # Return code: 0 4199s # Output: 4199s # /* 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. */ 4199s # 4199s # 4199s # /* Generated data ends here */ 4199s # Error: 4199s # 4199s # /tmp/tmpz4q5qkoz/tmpf71528c5.template: template 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpz4q5qkoz/tmpf71528c5.template', '/tmp/tmpz4q5qkoz/tmpqvpxjyhm2.h', '/tmp/tmpz4q5qkoz/tmpqr9ujtm71.h'] 4199s # Return code: 0 4199s # Output: 4199s # /* 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. */ 4199s # 4199s # 4199s # /* Generated data ends here */ 4199s # Error: 4199s ok 17 __main__.TestMkenums.test_since 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpcucszfk4 4199s # rspfile: False 4199s # /tmp/tmpcucszfk4/tmp0qjyv2iy.h: 4199s # typedef enum { /*< since=1.0 >*/ 4199s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 4199s # } QmiWmsMessageProtocol; 4199s # 4199s # /tmp/tmpcucszfk4/tmpx2ach8iu.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpcucszfk4/tmpx2ach8iu.template', '/tmp/tmpcucszfk4/tmp0qjyv2iy.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpcucszfk4/tmp0qjyv2iy.h 4199s # basename: tmp0qjyv2iy.h 4199s # enumeration-production 4199s # EnumName: QmiWmsMessageProtocol 4199s # enum_name: qmi_wms_message_protocol 4199s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 4199s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 4199s # ENUMPREFIX: QMI 4199s # enumsince: 1.0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: QmiWmsMessageProtocol 4199s # enum_name: qmi_wms_message_protocol 4199s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 4199s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 4199s # ENUMPREFIX: QMI 4199s # enumsince: 1.0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 4199s # valuenick: cdma 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: QmiWmsMessageProtocol 4199s # enum_name: qmi_wms_message_protocol 4199s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 4199s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 4199s # ENUMPREFIX: QMI 4199s # enumsince: 1.0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 18 __main__.TestMkenums.test_with_double_quotes 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpdl22ee4m 4199s # rspfile: False 4199s # /tmp/tmpdl22ee4m/tmp9xhfsiqn.h: 4199s # typedef enum { 4199s # FOO_VALUE /*< nick="eek, a comma" >*/ 4199s # } Foo; 4199s # 4199s # /tmp/tmpdl22ee4m/tmp_lqhg0cb.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpdl22ee4m/tmp_lqhg0cb.template', '/tmp/tmpdl22ee4m/tmp9xhfsiqn.h'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpdl22ee4m/tmp9xhfsiqn.h 4199s # basename: tmp9xhfsiqn.h 4199s # enumeration-production 4199s # EnumName: Foo 4199s # enum_name: foo_ 4199s # ENUMNAME: FOO_ 4199s # ENUMSHORT: 4199s # ENUMPREFIX: FOO 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: Foo 4199s # enum_name: foo_ 4199s # ENUMNAME: FOO_ 4199s # ENUMSHORT: 4199s # ENUMPREFIX: FOO 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: FOO_VALUE 4199s # valuenick: eek, a comma 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: Foo 4199s # enum_name: foo_ 4199s # ENUMNAME: FOO_ 4199s # ENUMSHORT: 4199s # ENUMPREFIX: FOO 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 19 __main__.TestRspMkenums.test_available_in 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmp45mk6tcb 4199s # rspfile: True 4199s # /tmp/tmp45mk6tcb/tmp_axiw5ah.h: 4199s # typedef enum { 4199s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 4199s # } GDBusServerFlags; 4199s # 4199s # /tmp/tmp45mk6tcb/tmp299cfw2l.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmp45mk6tcb/tmp299cfw2l.template /tmp/tmp45mk6tcb/tmp_axiw5ah.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp45mk6tcb/tmpbmlu5l2v'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmp45mk6tcb/tmp_axiw5ah.h 4199s # basename: tmp_axiw5ah.h 4199s # enumeration-production 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-header 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-production 4199s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 4199s # valuenick: user 4199s # valuenum: 4 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-tail 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpy07874rs 4199s # rspfile: True 4199s # /tmp/tmpy07874rs/tmp2iakvqx2.h: 4199s # typedef enum { 4199s # ENUM_VALUE_WITH_COMMA = ',', 4199s # } TestCommaEnum; 4199s # 4199s # /tmp/tmpy07874rs/tmpdvuwxxgv.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmpy07874rs/tmpdvuwxxgv.template /tmp/tmpy07874rs/tmp2iakvqx2.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpy07874rs/tmpdvyggwyg'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpy07874rs/tmp2iakvqx2.h 4199s # basename: tmp2iakvqx2.h 4199s # enumeration-production 4199s # EnumName: TestCommaEnum 4199s # enum_name: test_comma_enum 4199s # ENUMNAME: TEST_COMMA_ENUM 4199s # ENUMSHORT: COMMA_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: TestCommaEnum 4199s # enum_name: test_comma_enum 4199s # ENUMNAME: TEST_COMMA_ENUM 4199s # ENUMSHORT: COMMA_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE_WITH_COMMA 4199s # valuenick: comma 4199s # valuenum: 44 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: TestCommaEnum 4199s # enum_name: test_comma_enum 4199s # ENUMNAME: TEST_COMMA_ENUM 4199s # ENUMSHORT: COMMA_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 21 __main__.TestRspMkenums.test_deprecated_in 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmp38gl6djz 4199s # rspfile: True 4199s # /tmp/tmp38gl6djz/tmplrprryec.h: 4199s # typedef enum { 4199s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 4199s # } GDBusServerFlags; 4199s # 4199s # /tmp/tmp38gl6djz/tmpa8ghfgu7.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmp38gl6djz/tmpa8ghfgu7.template /tmp/tmp38gl6djz/tmplrprryec.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp38gl6djz/tmppqney09v'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmp38gl6djz/tmplrprryec.h 4199s # basename: tmplrprryec.h 4199s # enumeration-production 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-header 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-production 4199s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 4199s # valuenick: user 4199s # valuenum: 4 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-tail 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmphkvdwhy9 4199s # rspfile: True 4199s # /tmp/tmphkvdwhy9/tmpfkqsjujt.h: 4199s # typedef enum { 4199s # 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) 4199s # } GDBusServerFlags; 4199s # 4199s # /tmp/tmphkvdwhy9/tmpr1m0yb9w.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmphkvdwhy9/tmpr1m0yb9w.template /tmp/tmphkvdwhy9/tmpfkqsjujt.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmphkvdwhy9/tmpfnz_ptdm'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmphkvdwhy9/tmpfkqsjujt.h 4199s # basename: tmpfkqsjujt.h 4199s # enumeration-production 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-header 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-production 4199s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 4199s # valuenick: user 4199s # valuenum: 4 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # value-tail 4199s # EnumName: GDBusServerFlags 4199s # enum_name: g_dbus_server_flags 4199s # ENUMNAME: G_DBUS_SERVER_FLAGS 4199s # ENUMSHORT: DBUS_SERVER_FLAGS 4199s # ENUMPREFIX: G 4199s # enumsince: 4199s # type: flags 4199s # Type: Flags 4199s # TYPE: FLAGS 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 23 __main__.TestRspMkenums.test_empty_header 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpi_984t7k 4199s # rspfile: True 4199s # /tmp/tmpi_984t7k/tmponwgyqy7.h: 4199s # /tmp/tmpi_984t7k/tmprvkl7hay.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmpi_984t7k/tmprvkl7hay.template /tmp/tmpi_984t7k/tmponwgyqy7.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpi_984t7k/tmphthaxobg'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 24 __main__.TestRspMkenums.test_empty_template 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpn3wo8ojw 4199s # rspfile: True 4199s # /tmp/tmpn3wo8ojw/tmpskzt69wp.template: 4199s # Response file contains: --template /tmp/tmpn3wo8ojw/tmpskzt69wp.template 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpn3wo8ojw/tmp6xa3xy2z'] 4199s # Return code: 0 4199s # Output: 4199s # /* 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. */ 4199s # 4199s # 4199s # /* Generated data ends here */ 4199s # Error: 4199s ok 25 __main__.TestRspMkenums.test_enum_name 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmplq6z5gcs 4199s # rspfile: True 4199s # /tmp/tmplq6z5gcs/tmp3u7sz66d.h: 4199s # typedef enum _SomeEnumIdentifier { 4199s # ENUM_VALUE 4199s # } SomeEnumIdentifier; 4199s # 4199s # /tmp/tmplq6z5gcs/tmp5p1hsrs5.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmplq6z5gcs/tmp5p1hsrs5.template /tmp/tmplq6z5gcs/tmp3u7sz66d.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmplq6z5gcs/tmpdap6x2i3'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmplq6z5gcs/tmp3u7sz66d.h 4199s # basename: tmp3u7sz66d.h 4199s # enumeration-production 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE 4199s # valuenick: value 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 26 __main__.TestRspMkenums.test_enum_private_public 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpmmbpkhx2 4199s # rspfile: True 4199s # /tmp/tmpmmbpkhx2/tmp9auhdlz2.h: 4199s # typedef enum { 4199s # ENUM_VALUE_PUBLIC1, 4199s # /*< private >*/ 4199s # ENUM_VALUE_PRIVATE, 4199s # } SomeEnumA 4199s # 4199s # /tmp/tmpmmbpkhx2/tmph1iofai3.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmpmmbpkhx2/tmph1iofai3.template /tmp/tmpmmbpkhx2/tmp9auhdlz2.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpmmbpkhx2/tmppxl4t1t1'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpmmbpkhx2/tmp9auhdlz2.h 4199s # basename: tmp9auhdlz2.h 4199s # enumeration-production 4199s # EnumName: SomeEnumA 4199s # enum_name: some_enum_a 4199s # ENUMNAME: SOME_ENUM_A 4199s # ENUMSHORT: ENUM_A 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: SomeEnumA 4199s # enum_name: some_enum_a 4199s # ENUMNAME: SOME_ENUM_A 4199s # ENUMSHORT: ENUM_A 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE_PUBLIC1 4199s # valuenick: public1 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: SomeEnumA 4199s # enum_name: some_enum_a 4199s # ENUMNAME: SOME_ENUM_A 4199s # ENUMSHORT: ENUM_A 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s # 4199s # /tmp/tmpmmbpkhx2/tmpn5lk0cot.h: 4199s # typedef enum { 4199s # /*< private >*/ 4199s # ENUM_VALUE_PRIVATE, 4199s # /*< public >*/ 4199s # ENUM_VALUE_PUBLIC2, 4199s # } SomeEnumB; 4199s # 4199s # /tmp/tmpmmbpkhx2/tmp8kqcvh5e.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmpmmbpkhx2/tmp8kqcvh5e.template /tmp/tmpmmbpkhx2/tmpn5lk0cot.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpmmbpkhx2/tmp1sfniedl'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpmmbpkhx2/tmpn5lk0cot.h 4199s # basename: tmpn5lk0cot.h 4199s # enumeration-production 4199s # EnumName: SomeEnumB 4199s # enum_name: some_enum_b 4199s # ENUMNAME: SOME_ENUM_B 4199s # ENUMSHORT: ENUM_B 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: SomeEnumB 4199s # enum_name: some_enum_b 4199s # ENUMNAME: SOME_ENUM_B 4199s # ENUMSHORT: ENUM_B 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE_PUBLIC2 4199s # valuenick: public2 4199s # valuenum: 1 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: SomeEnumB 4199s # enum_name: some_enum_b 4199s # ENUMNAME: SOME_ENUM_B 4199s # ENUMSHORT: ENUM_B 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmp660cjzzg 4199s # rspfile: True 4199s # /tmp/tmp660cjzzg/tmp86pzfyvf.h: 4199s # typedef enum { 4199s # /*< private >*/ 4199s # ENUM_VALUE_PRIVATE = 5, 4199s # /*< public >*/ 4199s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 4199s # } TestSymbolicEnum; 4199s # 4199s # /tmp/tmp660cjzzg/tmpjpvouu37.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmp660cjzzg/tmpjpvouu37.template /tmp/tmp660cjzzg/tmp86pzfyvf.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp660cjzzg/tmpu361zhu3'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmp660cjzzg/tmp86pzfyvf.h 4199s # basename: tmp86pzfyvf.h 4199s # enumeration-production 4199s # EnumName: TestSymbolicEnum 4199s # enum_name: test_symbolic_enum 4199s # ENUMNAME: TEST_SYMBOLIC_ENUM 4199s # ENUMSHORT: SYMBOLIC_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: TestSymbolicEnum 4199s # enum_name: test_symbolic_enum 4199s # ENUMNAME: TEST_SYMBOLIC_ENUM 4199s # ENUMSHORT: SYMBOLIC_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE_PUBLIC 4199s # valuenick: public 4199s # valuenum: 7 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: TestSymbolicEnum 4199s # enum_name: test_symbolic_enum 4199s # ENUMNAME: TEST_SYMBOLIC_ENUM 4199s # ENUMSHORT: SYMBOLIC_ENUM 4199s # ENUMPREFIX: TEST 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpcevtitdp 4199s # rspfile: True 4199s # /tmp/tmpcevtitdp/tmp0z_97izb.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-tail ***/ 4199s # Response file contains: --template /tmp/tmpcevtitdp/tmp0z_97izb.template 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpcevtitdp/tmp83aj__q9'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # file-tail 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s # WARNING: @filename@ used in file-header section. 4199s # WARNING: @basename@ used in file-header section. 4199s # WARNING: @filename@ used in file-tail section. 4199s # WARNING: @basename@ used in file-tail section. 4199s ok 29 __main__.TestRspMkenums.test_help 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmp9m1rxocy 4199s # rspfile: True 4199s # Response file contains: --help 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp9m1rxocy/tmpc95qmlom'] 4199s # Return code: 0 4199s # Output: 4199s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 4199s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 4199s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 4199s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 4199s # [--comments COMMENT_TMPL] [--template TEMPLATE] 4199s # [--output OUTPUT] [--version] 4199s # [args ...] 4199s # 4199s # positional arguments: 4199s # args One or more input files, or a single argument 4199s # @rspfile_path pointing to a file that contains the 4199s # actual arguments 4199s # 4199s # options: 4199s # -h, --help show this help message and exit 4199s # --identifier-prefix IDPREFIX 4199s # Identifier prefix 4199s # --symbol-prefix SYMPREFIX 4199s # Symbol prefix 4199s # --fhead FHEAD Output file header 4199s # --ftail FTAIL Output file footer 4199s # --fprod FPROD Put out TEXT every time a new input file is being 4199s # processed. 4199s # --eprod EPROD Per enum text, produced prior to value iterations 4199s # --vhead VHEAD Value header, produced before iterating over enum 4199s # values 4199s # --vprod VPROD Value text, produced for each enum value. 4199s # --vtail VTAIL Value tail, produced after iterating over enum values 4199s # --comments COMMENT_TMPL 4199s # Comment structure 4199s # --template TEMPLATE Template file 4199s # --output OUTPUT 4199s # --version, -v Print version information 4199s # 4199s # Production text substitutions: 4199s # @EnumName@ PrefixTheXEnum 4199s # @enum_name@ prefix_the_xenum 4199s # @ENUMNAME@ PREFIX_THE_XENUM 4199s # @ENUMSHORT@ THE_XENUM 4199s # @ENUMPREFIX@ PREFIX 4199s # @enumsince@ the user-provided since value given 4199s # @VALUENAME@ PREFIX_THE_XVALUE 4199s # @valuenick@ the-xvalue 4199s # @valuenum@ the integer value (limited support, Since: 2.26) 4199s # @type@ either enum or flags 4199s # @Type@ either Enum or Flags 4199s # @TYPE@ either ENUM or FLAGS 4199s # @filename@ name of current input file 4199s # @basename@ base name of the current input file (Since: 2.22) 4199s # Error: 4199s ok 30 __main__.TestRspMkenums.test_no_args 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmp3y9yfrzm 4199s # rspfile: True 4199s # Response file contains: 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp3y9yfrzm/tmpvapxo_x3'] 4199s # Return code: 0 4199s # Output: 4199s # /* 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. */ 4199s # 4199s # 4199s # /* Generated data ends here */ 4199s # Error: 4199s ok 31 __main__.TestRspMkenums.test_no_headers 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpdje2stjf 4199s # rspfile: True 4199s # /tmp/tmpdje2stjf/tmp99e5dc01.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmpdje2stjf/tmp99e5dc01.template 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpdje2stjf/tmp6yodebqc'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 32 __main__.TestRspMkenums.test_no_nick 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmp_bv90ydh 4199s # rspfile: True 4199s # /tmp/tmp_bv90ydh/tmp4b6nco5s.h: 4199s # typedef enum { 4199s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 4199s # } GeglSamplerType; 4199s # 4199s # /tmp/tmp_bv90ydh/tmpavdnv8uz.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmp_bv90ydh/tmpavdnv8uz.template /tmp/tmp_bv90ydh/tmp4b6nco5s.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_bv90ydh/tmpxt6703bh'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmp_bv90ydh/tmp4b6nco5s.h 4199s # basename: tmp4b6nco5s.h 4199s # enumeration-production 4199s # EnumName: GeglSamplerType 4199s # enum_name: gegl_sampler_type 4199s # ENUMNAME: GEGL_SAMPLER_TYPE 4199s # ENUMSHORT: SAMPLER_TYPE 4199s # ENUMPREFIX: GEGL 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: GeglSamplerType 4199s # enum_name: gegl_sampler_type 4199s # ENUMNAME: GEGL_SAMPLER_TYPE 4199s # ENUMSHORT: SAMPLER_TYPE 4199s # ENUMPREFIX: GEGL 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: GEGL_SAMPLER_NEAREST 4199s # valuenick: nearest 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: GeglSamplerType 4199s # enum_name: gegl_sampler_type 4199s # ENUMNAME: GEGL_SAMPLER_TYPE 4199s # ENUMSHORT: SAMPLER_TYPE 4199s # ENUMPREFIX: GEGL 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpzuwzd6rp 4199s # rspfile: True 4199s # /tmp/tmpzuwzd6rp/tmpo8p9ax_u.h: 4199s # /* Copyright © La Peña */ 4199s # typedef enum { 4199s # ENUM_VALUE 4199s # } SomeEnumIdentifier; 4199s # 4199s # /tmp/tmpzuwzd6rp/tmpvy72fd2q.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmpzuwzd6rp/tmpvy72fd2q.template /tmp/tmpzuwzd6rp/tmpo8p9ax_u.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpzuwzd6rp/tmpyadamc4f'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmpzuwzd6rp/tmpo8p9ax_u.h 4199s # basename: tmpo8p9ax_u.h 4199s # enumeration-production 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: ENUM_VALUE 4199s # valuenick: value 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: SomeEnumIdentifier 4199s # enum_name: some_enum_identifier 4199s # ENUMNAME: SOME_ENUM_IDENTIFIER 4199s # ENUMSHORT: ENUM_IDENTIFIER 4199s # ENUMPREFIX: SOME 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 4199s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 4199s ok 34 __main__.TestRspMkenums.test_reproducible 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmpfvfsklxs 4199s # rspfile: True 4199s # /tmp/tmpfvfsklxs/tmpl6w5m7bf.template: template 4199s # Response file contains: --template /tmp/tmpfvfsklxs/tmpl6w5m7bf.template /tmp/tmpfvfsklxs/tmpk4gwcpux1.h /tmp/tmpfvfsklxs/tmp50pylnti2.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpfvfsklxs/tmpkbavcijr'] 4199s # Return code: 0 4199s # Output: 4199s # /* 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. */ 4199s # 4199s # 4199s # /* Generated data ends here */ 4199s # Error: 4199s # 4199s # /tmp/tmpfvfsklxs/tmpmkerz4ci.template: template 4199s # Response file contains: --template /tmp/tmpfvfsklxs/tmpmkerz4ci.template /tmp/tmpfvfsklxs/tmp50pylnti2.h /tmp/tmpfvfsklxs/tmpk4gwcpux1.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpfvfsklxs/tmppoqludk9'] 4199s # Return code: 0 4199s # Output: 4199s # /* 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. */ 4199s # 4199s # 4199s # /* Generated data ends here */ 4199s # Error: 4199s ok 35 __main__.TestRspMkenums.test_since 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmppp3hdk2e 4199s # rspfile: True 4199s # /tmp/tmppp3hdk2e/tmpmn0t7bua.h: 4199s # typedef enum { /*< since=1.0 >*/ 4199s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 4199s # } QmiWmsMessageProtocol; 4199s # 4199s # /tmp/tmppp3hdk2e/tmp81yheeos.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmppp3hdk2e/tmp81yheeos.template /tmp/tmppp3hdk2e/tmpmn0t7bua.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmppp3hdk2e/tmp3e1kx0xe'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmppp3hdk2e/tmpmn0t7bua.h 4199s # basename: tmpmn0t7bua.h 4199s # enumeration-production 4199s # EnumName: QmiWmsMessageProtocol 4199s # enum_name: qmi_wms_message_protocol 4199s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 4199s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 4199s # ENUMPREFIX: QMI 4199s # enumsince: 1.0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: QmiWmsMessageProtocol 4199s # enum_name: qmi_wms_message_protocol 4199s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 4199s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 4199s # ENUMPREFIX: QMI 4199s # enumsince: 1.0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 4199s # valuenick: cdma 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: QmiWmsMessageProtocol 4199s # enum_name: qmi_wms_message_protocol 4199s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 4199s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 4199s # ENUMPREFIX: QMI 4199s # enumsince: 1.0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s ok 36 __main__.TestRspMkenums.test_with_double_quotes 4199s # glib-mkenums: /usr/bin/glib-mkenums 4199s # tmpdir: /tmp/tmp5n322vyk 4199s # rspfile: True 4199s # /tmp/tmp5n322vyk/tmp62giuurf.h: 4199s # typedef enum { 4199s # FOO_VALUE /*< nick="eek, a comma" >*/ 4199s # } Foo; 4199s # 4199s # /tmp/tmp5n322vyk/tmpcnbhh2em.template: 4199s # /*** BEGIN file-header ***/ 4199s # file-header 4199s # /*** END file-header ***/ 4199s # 4199s # /*** BEGIN file-production ***/ 4199s # file-production 4199s # filename: @filename@ 4199s # basename: @basename@ 4199s # /*** END file-production ***/ 4199s # 4199s # /*** BEGIN enumeration-production ***/ 4199s # enumeration-production 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END enumeration-production ***/ 4199s # 4199s # /*** BEGIN value-header ***/ 4199s # value-header 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-header ***/ 4199s # 4199s # /*** BEGIN value-production ***/ 4199s # value-production 4199s # VALUENAME: @VALUENAME@ 4199s # valuenick: @valuenick@ 4199s # valuenum: @valuenum@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-production ***/ 4199s # 4199s # /*** BEGIN value-tail ***/ 4199s # value-tail 4199s # EnumName: @EnumName@ 4199s # enum_name: @enum_name@ 4199s # ENUMNAME: @ENUMNAME@ 4199s # ENUMSHORT: @ENUMSHORT@ 4199s # ENUMPREFIX: @ENUMPREFIX@ 4199s # enumsince: @enumsince@ 4199s # type: @type@ 4199s # Type: @Type@ 4199s # TYPE: @TYPE@ 4199s # /*** END value-tail ***/ 4199s # 4199s # /*** BEGIN comment ***/ 4199s # comment 4199s # comment: @comment@ 4199s # /*** END comment ***/ 4199s # 4199s # /*** BEGIN file-tail ***/ 4199s # file-tail 4199s # /*** END file-tail ***/ 4199s # 4199s # Response file contains: --template /tmp/tmp5n322vyk/tmpcnbhh2em.template /tmp/tmp5n322vyk/tmp62giuurf.h 4199s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp5n322vyk/tmpstkoyx00'] 4199s # Return code: 0 4199s # Output: 4199s # comment 4199s # 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. 4199s # 4199s # 4199s # file-header 4199s # file-production 4199s # filename: /tmp/tmp5n322vyk/tmp62giuurf.h 4199s # basename: tmp62giuurf.h 4199s # enumeration-production 4199s # EnumName: Foo 4199s # enum_name: foo_ 4199s # ENUMNAME: FOO_ 4199s # ENUMSHORT: 4199s # ENUMPREFIX: FOO 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-header 4199s # EnumName: Foo 4199s # enum_name: foo_ 4199s # ENUMNAME: FOO_ 4199s # ENUMSHORT: 4199s # ENUMPREFIX: FOO 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-production 4199s # VALUENAME: FOO_VALUE 4199s # valuenick: eek, a comma 4199s # valuenum: 0 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # value-tail 4199s # EnumName: Foo 4199s # enum_name: foo_ 4199s # ENUMNAME: FOO_ 4199s # ENUMSHORT: 4199s # ENUMPREFIX: FOO 4199s # enumsince: 4199s # type: enum 4199s # Type: Enum 4199s # TYPE: ENUM 4199s # file-tail 4199s # 4199s # comment 4199s # comment: Generated data ends here 4199s # Error: 4199s 1..36 4199s TAP version 14 4199s # random seed: R02S9eebd058b24b2dabeac353e23c24ec04 4199s 1..41 4199s # Start of markup tests 4199s ok 1 /markup/format 4199s # Start of escape-text tests 4199s ok 2 /markup/escape-text/0 4199s ok 3 /markup/escape-text/1 4199s ok 4 /markup/escape-text/2 4199s ok 5 /markup/escape-text/3 4199s ok 6 /markup/escape-text/4 4199s ok 7 /markup/escape-text/5 4199s ok 8 /markup/escape-text/6 4199s ok 9 /markup/escape-text/7 4199s ok 10 /markup/escape-text/8 4199s ok 11 /markup/escape-text/9 4199s ok 12 /markup/escape-text/10 4199s ok 13 /markup/escape-text/11 4199s ok 14 /markup/escape-text/12 4199s ok 15 /markup/escape-text/13 4199s ok 16 /markup/escape-text/14 4199s ok 17 /markup/escape-text/15 4199s ok 18 /markup/escape-text/16 4199s ok 19 /markup/escape-text/17 4199s ok 20 /markup/escape-text/18 4199s ok 21 /markup/escape-text/19 4199s ok 22 /markup/escape-text/20 4199s ok 23 /markup/escape-text/21 4199s ok 24 /markup/escape-text/22 4199s # End of escape-text tests 4199s # Start of escape-unichar tests 4199s ok 25 /markup/escape-unichar/0 4199s ok 26 /markup/escape-unichar/1 4199s ok 27 /markup/escape-unichar/2 4199s ok 28 /markup/escape-unichar/3 4199s ok 29 /markup/escape-unichar/4 4199s ok 30 /markup/escape-unichar/5 4199s ok 31 /markup/escape-unichar/6 4199s ok 32 /markup/escape-unichar/7 4199s ok 33 /markup/escape-unichar/8 4199s ok 34 /markup/escape-unichar/9 4199s ok 35 /markup/escape-unichar/10 4199s ok 36 /markup/escape-unichar/11 4199s ok 37 /markup/escape-unichar/12 4199s ok 38 /markup/escape-unichar/13 4199s ok 39 /markup/escape-unichar/14 4199s ok 40 /markup/escape-unichar/15 4199s ok 41 /markup/escape-unichar/16 4199s # End of escape-unichar tests 4199s # End of markup tests 4199s TAP version 14 4199s # random seed: R02S05725c4297c4b4749bd89896c9193902 4199s 1..13 4199s # Start of actions tests 4199s ok 1 /actions/basic 4199s ok 2 /actions/name 4199s ok 3 /actions/simplegroup 4199s ok 4 /actions/stateful 4199s ok 5 /actions/default-activate 4199s ok 6 /actions/entries 4199s ok 7 /actions/parse-detailed 4199s ok 8 /actions/property 4199s ok 9 /actions/no-properties 4199s # Start of dbus tests 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s ok 10 /actions/dbus/export 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s ok 11 /actions/dbus/threaded 4199s # slow test /actions/dbus/threaded executed in 1.10 secs 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s ok 12 /actions/dbus/bug679509 4199s # Start of export tests 4199s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 4199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s ok 13 /actions/dbus/export/error-handling 4199s # End of export tests 4199s # End of dbus tests 4199s # End of actions tests 4199s TAP version 14 4199s # random seed: R02S5e0ad5656d07bdf6b533fadc38e71dcb 4199s 1..12 4199s # Start of gdbus tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/.dirs/runtime 4199s # Testing with unix:dir address 4199s # Testing with unix:tmpdir address 4199s # Testing with unix:path address 4199s ok 1 /gdbus/peer-to-peer 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/delayed-message-processing/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/delayed-message-processing/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/delayed-message-processing/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/delayed-message-processing/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/delayed-message-processing/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/delayed-message-processing/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/delayed-message-processing/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/delayed-message-processing/.dirs/runtime 4199s # Testing with unix:dir address 4199s ok 2 /gdbus/delayed-message-processing 4199s # slow test /gdbus/delayed-message-processing executed in 0.51 secs 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/nonce-tcp/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/nonce-tcp/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/nonce-tcp/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/nonce-tcp/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/nonce-tcp/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/nonce-tcp/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/nonce-tcp/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/nonce-tcp/.dirs/runtime 4199s ok 3 /gdbus/nonce-tcp 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/tcp-anonymous/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/tcp-anonymous/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/tcp-anonymous/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/tcp-anonymous/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/tcp-anonymous/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/tcp-anonymous/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/tcp-anonymous/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/tcp-anonymous/.dirs/runtime 4199s ok 4 /gdbus/tcp-anonymous 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/credentials/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/credentials/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/credentials/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/credentials/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/credentials/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/credentials/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/credentials/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/credentials/.dirs/runtime 4199s ok 5 /gdbus/credentials 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/codegen-peer-to-peer/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/codegen-peer-to-peer/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/codegen-peer-to-peer/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/codegen-peer-to-peer/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/codegen-peer-to-peer/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/codegen-peer-to-peer/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/codegen-peer-to-peer/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/codegen-peer-to-peer/.dirs/runtime 4199s # Testing with unix:dir address 4199s # Machine ID: 283fc5d16e1e4905b3369d4abb8a0cff 4199s ok 6 /gdbus/codegen-peer-to-peer 4199s # slow test /gdbus/codegen-peer-to-peer executed in 1.10 secs 4199s # Start of peer-to-peer tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/signals/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/signals/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/signals/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/signals/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/signals/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/signals/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/signals/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/signals/.dirs/runtime 4199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 4199s # Testing with unix:dir address 4199s ok 7 /gdbus/peer-to-peer/signals 4199s # Start of invalid tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/server/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/server/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/server/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/server/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/server/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/server/.dirs/runtime 4199s ok 8 /gdbus/peer-to-peer/invalid/server 4199s # Start of conn tests 4199s # Start of stream tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 4199s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 4199s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 4199s # End of stream tests 4199s # Start of addr tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 4199s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_TRXFK3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 4199s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 4199s # End of addr tests 4199s # End of conn tests 4199s # End of invalid tests 4199s # End of peer-to-peer tests 4199s # End of gdbus tests 4199s TAP version 14 4199s # random seed: R02S9937b9036f0050907a5663041efb0609 4199s 1..21 4199s # Start of markup tests 4199s # Start of collect tests 4199s ok 1 /markup/collect/0 4199s ok 2 /markup/collect/1 4199s ok 3 /markup/collect/2 4199s ok 4 /markup/collect/3 4199s ok 5 /markup/collect/4 4199s ok 6 /markup/collect/5 4199s ok 7 /markup/collect/6 4199s ok 8 /markup/collect/7 4199s ok 9 /markup/collect/8 4199s ok 10 /markup/collect/9 4199s ok 11 /markup/collect/10 4199s ok 12 /markup/collect/11 4199s ok 13 /markup/collect/12 4199s ok 14 /markup/collect/13 4199s ok 15 /markup/collect/14 4199s ok 16 /markup/collect/15 4199s ok 17 /markup/collect/16 4199s ok 18 /markup/collect/17 4199s ok 19 /markup/collect/18 4199s ok 20 /markup/collect/19 4199s ok 21 /markup/collect/cleanup 4199s # End of collect tests 4199s # End of markup tests 4199s TAP version 14 4199s # random seed: R02Sd624e75c63482b3ee28701929087ea9d 4199s 1..2 4199s # Start of io-channel tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_0NLKK3/io-channel/read-write/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_0NLKK3/io-channel/read-write/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_0NLKK3/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_0NLKK3/io-channel/read-write/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_0NLKK3/io-channel/read-write/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_0NLKK3/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_0NLKK3/io-channel/read-write/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_0NLKK3/io-channel/read-write/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_0NLKK3/io-channel/read-write/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_0NLKK3/io-channel/read-write/.dirs/runtime 4199s # Line one 4199s # 4199s # Line two 4199s # 4199s # Line three 4199s # 4199s # /* Hello */ 4199s # 4199s # \x1234\x567890\x6666 4199s # 4199s # read 62 bytes, wrote 62 bytes 4199s ok 1 /io-channel/read-write 4199s # Start of read-line tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_0NLKK3/io-channel/read-line/embedded-nuls/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_0NLKK3/io-channel/read-line/embedded-nuls/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_0NLKK3/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_0NLKK3/io-channel/read-line/embedded-nuls/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_0NLKK3/io-channel/read-line/embedded-nuls/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_0NLKK3/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_0NLKK3/io-channel/read-line/embedded-nuls/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_0NLKK3/io-channel/read-line/embedded-nuls/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_0NLKK3/io-channel/read-line/embedded-nuls/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_0NLKK3/io-channel/read-line/embedded-nuls/.dirs/runtime 4199s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 4199s ok 2 /io-channel/read-line/embedded-nuls 4199s # End of read-line tests 4199s # End of io-channel tests 4199s TAP version 14 4199s # random seed: R02S1713b22498b2e77fa6c7b63b7388bd3d 4199s 1..8 4199s # Start of gdbus tests 4199s # Start of codegen tests 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/annotations/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/annotations/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/annotations/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/annotations/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/annotations/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/annotations/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/annotations/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/annotations/.dirs/runtime 4199s ok 1 /gdbus/codegen/annotations 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/interface_stability/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/interface_stability/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/interface_stability/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/interface_stability/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/interface_stability/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/interface_stability/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/interface_stability/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/interface_stability/.dirs/runtime 4199s ok 2 /gdbus/codegen/interface_stability 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/object-manager/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/object-manager/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/object-manager/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/object-manager/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/object-manager/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/object-manager/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/object-manager/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/object-manager/.dirs/runtime 4199s ok 3 /gdbus/codegen/object-manager 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/property-naming/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/property-naming/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/property-naming/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/property-naming/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/property-naming/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/property-naming/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/property-naming/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/property-naming/.dirs/runtime 4199s ok 4 /gdbus/codegen/property-naming 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/autocleanups/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/autocleanups/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/autocleanups/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/autocleanups/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/autocleanups/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/autocleanups/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/autocleanups/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/autocleanups/.dirs/runtime 4199s ok 5 /gdbus/codegen/autocleanups 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/deprecations/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/deprecations/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/deprecations/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/deprecations/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/deprecations/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/deprecations/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/deprecations/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/deprecations/.dirs/runtime 4199s ok 6 /gdbus/codegen/deprecations 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/standalone-interface-info/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/standalone-interface-info/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/standalone-interface-info/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/standalone-interface-info/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/standalone-interface-info/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/standalone-interface-info/.dirs/runtime 4199s ok 7 /gdbus/codegen/standalone-interface-info 4199s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/unix-fd-list/.dirs/home 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/unix-fd-list/.dirs/cache 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/unix-fd-list/.dirs/system-config2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/unix-fd-list/.dirs/config 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/unix-fd-list/.dirs/system-data2 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/unix-fd-list/.dirs/data 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/unix-fd-list/.dirs/state 4199s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_S7GKK3/gdbus/codegen/unix-fd-list/.dirs/runtime 4199s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 4199s ok 8 /gdbus/codegen/unix-fd-list 4199s # End of codegen tests 4199s # End of gdbus tests 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4199s TAP version 14 4199s # random seed: R02S94b647852a6ecb173a76713929f407c3 4199s 1..1 4199s # Start of ir-parser tests 4199s # /ir-parser/type-parsing summary: Test parsing different valid and invalid types 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: pushing node 1 dummy 4199s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: popping node 1 dummy 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: pushing node 1 dummy 4199s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: popping node 1 dummy 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: 4199s # GLib-GIRepository-DEBUG: pushing node 1 dummy 4199s # GLib-GIRepository-DEBUG: Failed to parse type: 'GLib.Error" 4261s # MAIN: call iface print-string on test and derived object: 4261s # Iface-FOO: "iface-string-from-test-type" from 0xb196d98d1880 4261s # Iface-BAR: "iface-string-from-derived-type" from 0xb196d98d1730 4261s # chaining: 4261s # Iface-FOO: "iface-string-from-derived-type" from 0xb196d98d1730 4261s # private data after initialization: 54321 == 54321 4261s ok 1 /gobject/basics 4261s # End of gobject tests 4261s TAP version 14 4261s # random seed: R02S3320e52f450c03ea9542617641214be2 4261s 1..2 4261s # Start of charset tests 4261s # Test 0 4261s # Test 1 4261s # Test 2 4261s # Test 3 4261s ok 1 /charset/language_names_with_category 4261s ok 2 /charset/language_names_with_category_async 4261s # End of charset tests 4261s TAP version 14 4261s # random seed: R02S07c61441f3d042ad8478e1ca5fefd798 4261s 1..1 4261s # Start of gdbus tests 4261s # Start of sasl tests 4261s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_G414J3/gdbus/sasl/server/.dirs/home 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_G414J3/gdbus/sasl/server/.dirs/cache 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_G414J3/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_G414J3/gdbus/sasl/server/.dirs/system-config2 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_G414J3/gdbus/sasl/server/.dirs/config 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_G414J3/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_G414J3/gdbus/sasl/server/.dirs/system-data2 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_G414J3/gdbus/sasl/server/.dirs/data 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_G414J3/gdbus/sasl/server/.dirs/state 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_G414J3/gdbus/sasl/server/.dirs/runtime 4261s # New handshake: EXTERNAL with incorrect initial response 4261s # C:“AUTH EXTERNAL 30” 4261s # Expect: /^REJECTED.*$/ 4261s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 4261s # New handshake: EXTERNAL without initial response, failing to authenticate 4261s # C:“AUTH EXTERNAL” 4261s # Expect: /^DATA$/ 4261s # S:“DATA” 4261s # C:“DATA 30” 4261s # Expect: /^REJECTED.*$/ 4261s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 4261s # New handshake: EXTERNAL with initial response 4261s # C:“AUTH EXTERNAL 31303030” 4261s # Expect: /^OK [0-9a-f]+$/ 4261s # S:“OK 34ff4518ca970e0d42956cad69853ebd” 4261s # New handshake: EXTERNAL without initial response 4261s # C:“AUTH EXTERNAL” 4261s # Expect: /^DATA$/ 4261s ok - glib/gdbus-sasl.test 4261s # Running test: glib/gdbus-connection-loss.test 4261s # S:“DATA” 4261s # C:“DATA 31303030” 4261s # Expect: /^OK [0-9a-f]+$/ 4261s # S:“OK 34ff4518ca970e0d42956cad69853ebd” 4261s # New handshake: EXTERNAL with empty authorization identity 4261s # C:“AUTH EXTERNAL” 4261s # Expect: /^DATA$/ 4261s # S:“DATA” 4261s # C:“DATA” 4261s # Expect: /^OK [0-9a-f]+$/ 4261s # S:“OK 34ff4518ca970e0d42956cad69853ebd” 4261s # New handshake: EXTERNAL with empty authorization identity and whitespace 4261s # C:“AUTH EXTERNAL” 4261s # Expect: /^DATA$/ 4261s # S:“DATA” 4261s # C:“DATA ” 4261s # Expect: /^OK [0-9a-f]+$/ 4261s # S:“OK 34ff4518ca970e0d42956cad69853ebd” 4261s ok 1 /gdbus/sasl/server 4261s # End of sasl tests 4261s # End of gdbus tests 4261s TAP version 14 4261s # random seed: R02Sd6ae9a58499c4dfde1655a7cebaee29a 4261s 1..1 4261s # Start of gdbus tests 4261s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_FTV4J3/gdbus/connection-loss/.dirs/home 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_FTV4J3/gdbus/connection-loss/.dirs/cache 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_FTV4J3/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_FTV4J3/gdbus/connection-loss/.dirs/system-config2 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_FTV4J3/gdbus/connection-loss/.dirs/config 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_FTV4J3/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_FTV4J3/gdbus/connection-loss/.dirs/system-data2 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_FTV4J3/gdbus/connection-loss/.dirs/data 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_FTV4J3/gdbus/connection-loss/.dirs/state 4261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_FTV4J3/gdbus/connection-loss/.dirs/runtime 4261s ok 1 /gdbus/connection-loss 4261s # End of gdbus tests 4261s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4261s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4261s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4261s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4261s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4261s ok - glib/gdbus-connection-loss.test 4261s # Running test: glib/memory-input-stream.test 4261s TAP version 14 4261s # random seed: R02Sc8105a05cc097a85ea0c0ba442712595 4261s 1..6 4261s # Start of memory-input-stream tests 4261s ok 1 /memory-input-stream/read-chunks 4261s ok 2 /memory-input-stream/async 4261s ok 3 /memory-input-stream/seek 4261s ok - glib/memory-input-stream.test 4261s # Running test: glib/search-utils.test 4261s ok 4 /memory-input-stream/truncate 4261s ok 5 /memory-input-stream/read-bytes 4261s ok 6 /memory-input-stream/from-bytes 4261s # End of memory-input-stream tests 4261s TAP version 14 4261s # random seed: R02S2a994e957f25b2d455c780543ae63f4c 4261s # GLib-DEBUG: Current user locale: C.UTF-8 4261s 1..6 4261s # Start of search tests 4261s # GLib-DEBUG: Started 4261s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 4261s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 4261s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 4261s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 4261s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 4261s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 4261s ok 1 /search/basic 4261s # GLib-DEBUG: Started 4261s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 4261s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 4261s # GLib-DEBUG: 'ele' - 'élève' should match: OK 4261s # GLib-DEBUG: 'AzaÏs' - 'Azais' should NOT match: OK 4261s # GLib-DEBUG: 'Azais' - 'AzaÏs' should match: OK 4261s ok 2 /search/composed 4261s # GLib-DEBUG: Started 4261s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 4261s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 4261s ok 3 /search/decomposed 4261s # GLib-DEBUG: Started 4261s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 4261s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 4261s ok 4 /search/turkish 4261s # GLib-DEBUG: Started 4261s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 4261s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 4261s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 4261s ok 5 /search/c_locale_unicode 4261s # GLib-DEBUG: Started 4261s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 4261s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 4261s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 4261s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 4261s ok 6 /search/multi_words 4261s # End of search tests 4261s ok - glib/search-utils.test 4261s # Running test: glib/autoptr.test 4261s ok - glib/autoptr.test 4261s TAP version 14 4261s # random seed: R02Sc65cf77e7c2c037a1c9bc405e457bece 4261s 1..6 4261s # Start of autoptr tests 4261s ok 1 /autoptr/autoptr 4261s ok 2 /autoptr/autoptr_steal 4261s ok 3 /autoptr/autolist 4261s ok 4 /autoptr/autoslist 4261s ok 5 /autoptr/autoqueue 4261s ok 6 /autoptr/autoclass 4261s # End of autoptr tests 4261s # Running test: glib/network-monitor-race.test 4261s TAP version 14 4261s # random seed: R02Sf837c53fc9005d732975b8a55fa08b19 4261s 1..1 4261s # Start of network-monitor tests 4261s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 4264s ok - glib/network-monitor-race.test 4264s ok 1 /network-monitor/create-in-thread 4264s # slow test /network-monitor/create-in-thread executed in 2.14 secs 4264s # End of network-monitor tests 4264s # Running test: glib/glistmodel.test 4264s TAP version 14 4264s # random seed: R02Sf3875cff5a677beca7b3b7e42a62cb55 4264s 1..18 4264s # Start of glistmodel tests 4264s # Start of store tests 4264s ok 1 /glistmodel/store/properties 4264s ok 2 /glistmodel/store/non-gobjects 4264s ok 3 /glistmodel/store/boundaries 4264s ok 4 /glistmodel/store/refcounts 4264s ok 5 /glistmodel/store/sorted 4264s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 4264s ok 6 /glistmodel/store/splice-replace-middle 4264s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 4264s ok 7 /glistmodel/store/splice-replace-all 4264s ok 8 /glistmodel/store/splice-noop 4264s ok 9 /glistmodel/store/splice-remove-multiple 4264s ok 10 /glistmodel/store/splice-add-multiple 4264s ok 11 /glistmodel/store/splice-wrong-type 4264s ok 12 /glistmodel/store/item-type 4264s ok 13 /glistmodel/store/remove-all 4264s ok 14 /glistmodel/store/sort 4264s ok 15 /glistmodel/store/get-item-cache 4264s ok 16 /glistmodel/store/items-changed 4264s ok 17 /glistmodel/store/past-end 4264s ok 18 /glistmodel/store/find 4264s # End of store tests 4264s # End of glistmodel tests 4284s ok - glib/glistmodel.test 4284s # Running test: glib/defaultvalue.test 4284s TAP version 14 4284s # random seed: R02S36ad5b14d9f21f39d531d2fc7a99db23 4284s 1..84 4284s # Start of Default Values tests 4284s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 4284s ok 2 /Default Values/GAppLaunchContext 4284s ok 3 /Default Values/GApplicationCommandLine 4284s # skipping GApplication:is-remote 4284s ok 4 /Default Values/GApplication 4284s ok 5 /Default Values/GBinding # SKIP mandatory construct params 4284s ok 6 /Default Values/GBindingGroup 4284s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 4284s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 4284s ok 9 /Default Values/GBytesIcon 4284s ok 10 /Default Values/GCancellable 4284s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 4284s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 4284s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 4284s ok 14 /Default Values/GCredentials 4284s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 4284s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 4284s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 4284s ok 18 /Default Values/GDBusAuthObserver 4284s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 4284s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 4284s ok 21 /Default Values/GDBusMessage 4284s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 4284s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 4284s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 4284s ok 25 /Default Values/GDBusObjectProxy 4284s ok 26 /Default Values/GDBusObjectSkeleton 4284s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 4284s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 4284s ok 29 /Default Values/GEmblem 4284s ok 30 /Default Values/GEmblemedIcon 4284s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 4284s ok 32 /Default Values/GFileInfo 4284s ok 33 /Default Values/GFileInputStream 4284s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 4284s ok 35 /Default Values/GFileOutputStream 4284s ok 36 /Default Values/GFilenameCompleter 4284s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 4284s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 4284s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 4284s ok 40 /Default Values/GInitiallyUnowned 4284s ok 41 /Default Values/GIOModule 4284s ok 42 /Default Values/GListStore 4284s ok 43 /Default Values/GMemoryInputStream 4284s ok 44 /Default Values/GMemoryOutputStream 4284s ok 45 /Default Values/GMenu 4284s ok 46 /Default Values/GMenuItem 4284s ok 47 /Default Values/GMountOperation 4284s ok 48 /Default Values/GNativeSocketAddress 4284s ok 49 /Default Values/GNetworkAddress 4284s ok 50 /Default Values/GNetworkService 4284s ok 51 /Default Values/GNotification 4284s ok 52 /Default Values/GObject 4284s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 4284s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 4284s # skipping GProxyAddressEnumerator:proxy-resolver 4284s ok 54 /Default Values/GProxyAddressEnumerator 4284s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 4284s ok 56 /Default Values/GSettings # SKIP mandatory construct params 4284s ok 57 /Default Values/GSignalGroup 4284s ok 58 /Default Values/GSimpleAction 4284s ok 59 /Default Values/GSimpleActionGroup 4284s ok 60 /Default Values/GSimpleAsyncResult 4284s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 4284s ok 62 /Default Values/GSimplePermission 4284s ok 63 /Default Values/GSimpleProxyResolver 4284s # skipping GSocketClient:proxy-resolver 4284s ok 64 /Default Values/GSocketClient 4284s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 4284s ok 66 /Default Values/GSocket # SKIP initialization failed 4284s ok 67 /Default Values/GSocketListener 4284s ok 68 /Default Values/GSocketService 4284s ok 69 /Default Values/GSubprocess # SKIP initialization failed 4284s ok 70 /Default Values/GSubprocessLauncher 4284s # GLib-GIO-DEBUG: GTask 0xac0dd7b9d240 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 4284s ok 71 /Default Values/GTask 4284s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 4284s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 4284s ok 74 /Default Values/GTestDBus 4284s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 4284s ok 76 /Default Values/GThreadedSocketService 4284s ok 77 /Default Values/GTlsInteraction 4284s ok 78 /Default Values/GTlsPassword 4284s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 4284s ok 80 /Default Values/GUnixFDList 4284s ok 81 /Default Values/GVfs 4284s ok 82 /Default Values/GVolumeMonitor 4284s ok 83 /Default Values/GZlibCompressor 4284s ok 84 /Default Values/GZlibDecompressor 4284s # End of Default Values tests 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s TAP version 14 4284s # random seed: R02Sa8b35d05332509641670a782b16534af 4284s 1..10 4284s # Start of gdbus tests 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/validate-names/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/validate-names/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_Q7WMK3/gdbus/validate-names/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/validate-names/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_Q7WMK3/gdbus/validate-names/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/validate-names/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/validate-names/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_Q7WMK3/gdbus/validate-names/.dirs/runtime 4284s ok 1 /gdbus/validate-names 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-own-name/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-own-name/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-own-name/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-own-name/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-own-name/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-own-name/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-own-name/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-own-name/.dirs/runtime 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s ok 2 /gdbus/bus-own-name 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name/.dirs/runtime 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s ok 3 /gdbus/bus-watch-name 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start/.dirs/runtime 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s ok 4 /gdbus/bus-watch-name-auto-start 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4284s dbus-daemon[39473]: [session uid=1000 pid=39473 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=39464 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 4284s # Acquired a message bus connection 4284s dbus-daemon[39473]: [session uid=1000 pid=39473 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 4284s # Acquired the name org.gtk.GDBus.FakeService 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures/.dirs/runtime 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s ok 6 /gdbus/bus-watch-name-closures 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures-auto-start/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures-auto-start/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures-auto-start/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures-auto-start/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s ok 7 /gdbus/bus-watch-name-closures-auto-start 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-different-context/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-different-context/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-different-context/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-different-context/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-different-context/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-different-context/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-different-context/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-watch-different-context/.dirs/runtime 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s ok 8 /gdbus/bus-watch-different-context 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-unwatch-early/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-unwatch-early/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-unwatch-early/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-unwatch-early/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_Q7WMK3/gdbus/bus-unwatch-early/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-unwatch-early/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-unwatch-early/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_Q7WMK3/gdbus/bus-unwatch-early/.dirs/runtime 4284s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s ok 9 /gdbus/bus-unwatch-early 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/escape-object-path/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/escape-object-path/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_Q7WMK3/gdbus/escape-object-path/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/escape-object-path/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_Q7WMK3/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_Q7WMK3/gdbus/escape-object-path/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/escape-object-path/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_Q7WMK3/gdbus/escape-object-path/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_Q7WMK3/gdbus/escape-object-path/.dirs/runtime 4284s ok 10 /gdbus/escape-object-path 4284s # End of gdbus tests 4284s TAP version 14 4284s # random seed: R02Sf304baf61d423344e6f2eefdad06c1ff 4284s 1..4 4284s # Start of gdbus tests 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-parser/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-parser/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-parser/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-parser/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-parser/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-parser/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-parser/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-parser/.dirs/runtime 4284s ok 1 /gdbus/introspection-parser 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-generate/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-generate/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-generate/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-generate/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-generate/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-generate/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-generate/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-generate/.dirs/runtime 4284s ok 2 /gdbus/introspection-generate 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-default-direction/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-default-direction/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-default-direction/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-default-direction/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-default-direction/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-default-direction/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-default-direction/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-default-direction/.dirs/runtime 4284s ok 3 /gdbus/introspection-default-direction 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-extra-data/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-extra-data/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-extra-data/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-extra-data/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-extra-data/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-extra-data/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-extra-data/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_V8KLK3/gdbus/introspection-extra-data/.dirs/runtime 4284s ok 4 /gdbus/introspection-extra-data 4284s # End of gdbus tests 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4284s TAP version 14 4284s # random seed: R02S0ad3be6e6b4f136a6db558d73395589d 4284s 1..1 4284s # Start of monitor tests 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/runtime 4284s # Using data directory: /tmp/test_appmonitor_RZPOK3/monitor/app/.dirs/data 4284s ok 1 /monitor/app 4284s # End of monitor tests 4284s TAP version 14 4284s # random seed: R02S04abfa6433a97425c725701d6ec1d3d8 4284s 1..1 4284s # Start of png-thumbs tests 4284s ok 1 /png-thumbs/validity 4284s # End of png-thumbs tests 4284s TAP version 14 4284s # random seed: R02S752229a68ead4a1a28e481f25e9beab8 4284s 1..24 4284s # Start of autoptr tests 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/repository/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/repository/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/repository/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/repository/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/repository/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/repository/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/repository/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/repository/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 1 /autoptr/repository 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/typelib/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/typelib/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/typelib/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/typelib/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/typelib/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/typelib/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/typelib/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/typelib/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 2 /autoptr/typelib 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/base-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/base-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/base-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/base-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/base-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/base-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/base-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/base-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 3 /autoptr/base-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/arg-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/arg-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/arg-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/arg-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/arg-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/arg-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/arg-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/arg-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 4 /autoptr/arg-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callable-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callable-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/callable-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callable-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/callable-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callable-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callable-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callable-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 5 /autoptr/callable-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callback-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callback-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/callback-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callback-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/callback-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callback-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callback-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/callback-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 6 /autoptr/callback-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/constant-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/constant-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/constant-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/constant-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/constant-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/constant-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/constant-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/constant-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 7 /autoptr/constant-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/enum-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/enum-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/enum-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/enum-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/enum-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/enum-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/enum-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/enum-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 8 /autoptr/enum-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/field-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/field-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/field-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/field-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/field-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/field-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/field-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/field-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 9 /autoptr/field-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/flags-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/flags-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/flags-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/flags-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/flags-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/flags-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/flags-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/flags-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 10 /autoptr/flags-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/function-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/function-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/function-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/function-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/function-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/function-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/function-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/function-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 11 /autoptr/function-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/interface-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/interface-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/interface-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/interface-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/interface-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/interface-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/interface-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/interface-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 12 /autoptr/interface-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/object-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/object-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/object-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/object-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/object-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/object-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/object-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/object-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 13 /autoptr/object-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/property-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/property-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/property-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/property-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/property-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/property-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/property-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/property-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 14 /autoptr/property-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/registered-type-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/registered-type-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/registered-type-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/registered-type-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/registered-type-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/registered-type-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/registered-type-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/registered-type-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 15 /autoptr/registered-type-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/signal-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/signal-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/signal-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/signal-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/signal-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/signal-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/signal-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/signal-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 16 /autoptr/signal-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/struct-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/struct-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/struct-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/struct-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/struct-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/struct-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/struct-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/struct-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 17 /autoptr/struct-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/type-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/type-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/type-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/type-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/type-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/type-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/type-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/type-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 18 /autoptr/type-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/union-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/union-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/union-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/union-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/union-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/union-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/union-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/union-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 19 /autoptr/union-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/value-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/value-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/value-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/value-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/value-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/value-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/value-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/value-info/.dirs/runtime 4284s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4284s ok 20 /autoptr/value-info 4284s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/vfunc-info/.dirs/home 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/vfunc-info/.dirs/cache 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/vfunc-info/.dirs/system-config2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/vfunc-info/.dirs/config 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/autoptr/vfunc-info/.dirs/system-data2 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/vfunc-info/.dirs/data 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/autoptr/vfunc-info/.dirs/state 4284s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/autoptr/vfunc-info/.dirs/runtime 4284s ok - glib/defaultvalue.test 4284s # Running test: glib/gdbus-names.test 4284s ok - glib/gdbus-names.test 4284s # Running test: glib/gdbus-introspection.test 4284s ok - glib/gdbus-introspection.test 4284s # Running test: glib/appmonitor.test 4284s ok - glib/appmonitor.test 4284s # Running test: glib/thumbnail-verification.test 4284s ok - glib/thumbnail-verification.test 4284s # Running test: glib/autoptr-girepository.test 4284s ok - glib/autoptr-girepository.test 4284s # Running test: glib/macros.test 4284s ok - glib/macros.test 4284s # Running test: glib/task.test 4284s # Executing: glib/task.test 4284s ok - glib/task.test 4284s # Running test: glib/qdata.test 4284s ok - glib/qdata.test 4284s # Running test: glib/genmarshal.py.test 4284s ok - glib/genmarshal.py.test 4284s # Running test: glib/gi-inspect-typelib.py.test 4284s ok - glib/gi-inspect-typelib.py.test 4284s # Running test: glib/codegen.py.test 4285s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4285s ok 21 /autoptr/vfunc-info 4285s # End of autoptr tests 4285s # Start of auto tests 4285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/arg-info/.dirs/home 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/arg-info/.dirs/cache 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/auto/arg-info/.dirs/system-config2 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/arg-info/.dirs/config 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/auto/arg-info/.dirs/system-data2 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/arg-info/.dirs/data 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/arg-info/.dirs/state 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/auto/arg-info/.dirs/runtime 4285s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4285s ok 22 /auto/arg-info 4285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/type-info/.dirs/home 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/type-info/.dirs/cache 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/auto/type-info/.dirs/system-config2 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/type-info/.dirs/config 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/auto/type-info/.dirs/system-data2 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/type-info/.dirs/data 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/type-info/.dirs/state 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/auto/type-info/.dirs/runtime 4285s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4285s ok 23 /auto/type-info 4285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/function-invoker/.dirs/home 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/function-invoker/.dirs/cache 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_4B6OK3/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_4B6OK3/auto/function-invoker/.dirs/system-config2 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/function-invoker/.dirs/config 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_4B6OK3/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_4B6OK3/auto/function-invoker/.dirs/system-data2 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/function-invoker/.dirs/data 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_4B6OK3/auto/function-invoker/.dirs/state 4285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_4B6OK3/auto/function-invoker/.dirs/runtime 4285s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4285s ok 24 /auto/function-invoker 4285s # End of auto tests 4285s TAP version 14 4285s # random seed: R02S9131058e83cd98db3283a20173c94f48 4285s 1..3 4285s # Start of alignof tests 4285s ok 1 /alignof/fallback 4285s # End of alignof tests 4285s # Start of assert tests 4285s ok 2 /assert/static 4285s # End of assert tests 4285s # Start of struct tests 4285s ok 3 /struct/sizeof_member 4285s # End of struct tests 4285s TAP version 14 4285s # random seed: R02Sed64bd3dc04b1e02c11a7ca545c13c2e 4285s 1..36 4285s # Start of gtask tests 4285s ok 1 /gtask/basic 4285s ok 2 /gtask/error 4285s ok 3 /gtask/error-literal 4285s ok 4 /gtask/error-literal-from-variable 4285s ok 5 /gtask/return-from-same-iteration 4285s ok 6 /gtask/return-from-toplevel 4285s ok 7 /gtask/return-from-anon-thread 4285s ok 8 /gtask/return-from-wrong-thread 4285s ok 9 /gtask/no-callback 4285s ok 10 /gtask/report-error 4285s ok 11 /gtask/priority 4285s ok 12 /gtask/name 4285s ok 13 /gtask/static-name 4285s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 4285s ok 14 /gtask/asynchronous-cancellation 4285s ok 15 /gtask/check-cancellable 4285s ok 16 /gtask/return-if-cancelled 4285s ok 17 /gtask/run-in-thread 4285s ok 18 /gtask/run-in-thread-sync 4285s ok 19 /gtask/run-in-thread-priority 4285s ok 20 /gtask/run-in-thread-nested 4285s ok 21 /gtask/run-in-thread-overflow 4285s # slow test /gtask/run-in-thread-overflow executed in 0.51 secs 4285s # GLib-GIO-DEBUG: GTask 0xb9f255da9290 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 4285s # GLib-GIO-DEBUG: GTask 0xb9f255da9420 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 4285s ok 22 /gtask/return-on-cancel 4285s # GLib-GIO-DEBUG: GTask 0xb9f255d3f180 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 4285s ok 23 /gtask/return-on-cancel-sync 4285s # GLib-GIO-DEBUG: GTask 0xb9f255d3f500 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 4285s ok 24 /gtask/return-on-cancel-atomic 4285s ok 25 /gtask/return-pointer 4285s ok 26 /gtask/return-value 4285s ok 27 /gtask/return-prefixed-error 4285s ok 28 /gtask/object-keepalive 4285s ok 29 /gtask/legacy-error 4285s ok 30 /gtask/finalize-without-return 4285s # Start of name tests 4285s ok 31 /gtask/name/macro-wrapper 4285s # End of name tests 4285s # Start of return tests 4285s ok 32 /gtask/return/error-first 4285s ok 33 /gtask/return/value-first 4285s # Start of in-idle tests 4285s ok 34 /gtask/return/in-idle/error-first 4285s ok 35 /gtask/return/in-idle/value-first 4285s # End of in-idle tests 4285s # End of return tests 4285s # Start of attach-source tests 4285s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source’s name if unset 4285s ok 36 /gtask/attach-source/set-name 4285s # End of attach-source tests 4285s # End of gtask tests 4285s TAP version 14 4285s # random seed: R02S4e5897e384a67ce3faffc48d0516e872 4285s 1..2 4285s # Start of qdata tests 4285s ok 1 /qdata/threaded 4285s ok 2 /qdata/dup 4285s # End of qdata tests 4285s TAP version 13 4285s ok 1 __main__.TestGenmarshal.test_empty_list 4285s # glib-genmarshal: /usr/bin/glib-genmarshal 4285s # tmpdir: /tmp/tmpk_va17og 4285s # /tmp/tmpk_va17og/tmpvlb8dru0.list: 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpk_va17og/tmpvlb8dru0.list', '--header', '--quiet'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # 4285s # #include 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 4285s # Error: 4285s # 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpk_va17og/tmpvlb8dru0.list', '--body', '--quiet'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #include 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # Error: 4285s ok 2 __main__.TestGenmarshal.test_help 4285s # glib-genmarshal: /usr/bin/glib-genmarshal 4285s # tmpdir: /tmp/tmp3m9c0kkt 4285s # Running: ['/usr/bin/glib-genmarshal', '--help'] 4285s # Return code: 0 4285s # Output: 4285s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 4285s # [--internal] [--valist-marshallers] [-v] 4285s # [--g-fatal-warnings] [--include-header [HEADER]] 4285s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 4285s # [--prototypes] [--header] [--body] [--stdinc | 4285s # --nostdinc] [--quiet | --verbose] 4285s # [FILE ...] 4285s # 4285s # Generate signal marshallers for GObject 4285s # 4285s # positional arguments: 4285s # FILE Files with lists of marshallers to generate, or "-" 4285s # for standard input 4285s # 4285s # options: 4285s # -h, --help show this help message and exit 4285s # --prefix STRING Specify marshaller prefix 4285s # --output FILE Write output into the specified file 4285s # --skip-source Skip source location comments 4285s # --internal Mark generated functions as internal 4285s # --valist-marshallers Generate va_list marshallers 4285s # -v, --version Print version information, and exit 4285s # --g-fatal-warnings Make warnings fatal 4285s # --include-header [HEADER] 4285s # Include the specified header in the body 4285s # --pragma-once Use "pragma once" as the inclusion guard 4285s # -D CPP_DEFINES Pre-processor define 4285s # -U CPP_UNDEFINES Pre-processor undefine 4285s # --prototypes Generate the marshallers prototype in the C code 4285s # --header Generate C headers 4285s # --body Generate C code 4285s # --stdinc Include standard marshallers 4285s # --nostdinc Use standard marshallers 4285s # --quiet Only print warnings and errors 4285s # --verbose Be verbose, and include debugging information 4285s # Error: 4285s ok 3 __main__.TestGenmarshal.test_no_args 4285s # glib-genmarshal: /usr/bin/glib-genmarshal 4285s # tmpdir: /tmp/tmpo3cub8py 4285s # Running: ['/usr/bin/glib-genmarshal'] 4285s # Return code: 0 4285s # Output: 4285s # 4285s # Error: 4285s ok 4 __main__.TestGenmarshal.test_void_boolean 4285s # glib-genmarshal: /usr/bin/glib-genmarshal 4285s # tmpdir: /tmp/tmpyjekaglq 4285s # /tmp/tmpyjekaglq/tmp59ujsf0u.list: VOID:BOOLEAN 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpyjekaglq/tmp59ujsf0u.list', '--header', '--quiet'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # 4285s # #include 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # /* VOID:BOOLEAN (/tmp/tmpyjekaglq/tmp59ujsf0u.list:1) */ 4285s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 4285s # Error: 4285s # 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpyjekaglq/tmp59ujsf0u.list', '--body', '--quiet'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #include 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # Error: 4285s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 4285s # glib-genmarshal: /usr/bin/glib-genmarshal 4285s # tmpdir: /tmp/tmpfk3w8a63 4285s # /tmp/tmpfk3w8a63/tmpw94qs5ck.list: VOID:BOOLEAN,INT64 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpfk3w8a63/tmpw94qs5ck.list', '--header', '--quiet'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # 4285s # #include 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # /* VOID:BOOLEAN,INT64 (/tmp/tmpfk3w8a63/tmpw94qs5ck.list:1) */ 4285s # extern 4285s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 4285s # GValue *return_value, 4285s # guint n_param_values, 4285s # const GValue *param_values, 4285s # gpointer invocation_hint, 4285s # gpointer marshal_data); 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 4285s # Error: 4285s # 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpfk3w8a63/tmpw94qs5ck.list', '--body', '--quiet'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #include 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # /* VOID:BOOLEAN,INT64 (/tmp/tmpfk3w8a63/tmpw94qs5ck.list:1) */ 4285s # void 4285s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 4285s # GValue *return_value G_GNUC_UNUSED, 4285s # guint n_param_values, 4285s # const GValue *param_values, 4285s # gpointer invocation_hint G_GNUC_UNUSED, 4285s # gpointer marshal_data) 4285s # { 4285s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 4285s # gboolean arg1, 4285s # gint64 arg2, 4285s # gpointer data2); 4285s # GCClosure *cc = (GCClosure *) closure; 4285s # gpointer data1, data2; 4285s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 4285s # 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # callback (data1, 4285s # g_marshal_value_peek_boolean (param_values + 1), 4285s # g_marshal_value_peek_int64 (param_values + 2), 4285s # data2); 4285s # } 4285s # Error: 4285s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 4285s # glib-genmarshal: /usr/bin/glib-genmarshal 4285s # tmpdir: /tmp/tmpbcisli0i 4285s # /tmp/tmpbcisli0i/tmpp5vpgr5q.list: VOID:PARAM 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpbcisli0i/tmpp5vpgr5q.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # /* VOID:PARAM (/tmp/tmpbcisli0i/tmpp5vpgr5q.list:1) */ 4285s # extern 4285s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 4285s # GValue *return_value, 4285s # guint n_param_values, 4285s # const GValue *param_values, 4285s # gpointer invocation_hint, 4285s # gpointer marshal_data); 4285s # extern 4285s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 4285s # GValue *return_value, 4285s # gpointer instance, 4285s # va_list args, 4285s # gpointer marshal_data, 4285s # int n_params, 4285s # GType *param_types); 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 4285s # Error: 4285s # 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpbcisli0i/tmpp5vpgr5q.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # /* VOID:PARAM (/tmp/tmpbcisli0i/tmpp5vpgr5q.list:1) */ 4285s # void 4285s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 4285s # GValue *return_value G_GNUC_UNUSED, 4285s # guint n_param_values, 4285s # const GValue *param_values, 4285s # gpointer invocation_hint G_GNUC_UNUSED, 4285s # gpointer marshal_data) 4285s # { 4285s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 4285s # gpointer arg1, 4285s # gpointer data2); 4285s # GCClosure *cc = (GCClosure *) closure; 4285s # gpointer data1, data2; 4285s # GMarshalFunc_VOID__PARAM callback; 4285s # 4285s # g_return_if_fail (n_param_values == 2); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # callback (data1, 4285s # g_marshal_value_peek_param (param_values + 1), 4285s # data2); 4285s # } 4285s # 4285s # void 4285s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 4285s # GValue *return_value G_GNUC_UNUSED, 4285s # gpointer instance, 4285s # va_list args, 4285s # gpointer marshal_data, 4285s # int n_params, 4285s # GType *param_types) 4285s # { 4285s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 4285s # gpointer arg1, 4285s # gpointer data2); 4285s # GCClosure *cc = (GCClosure *) closure; 4285s # gpointer data1, data2; 4285s # GMarshalFunc_VOID__PARAM callback; 4285s # gpointer arg0; 4285s # va_list args_copy; 4285s # 4285s # va_copy (args_copy, args); 4285s # arg0 = (gpointer) va_arg (args_copy, gpointer); 4285s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 4285s # arg0 = g_param_spec_ref (arg0); 4285s # va_end (args_copy); 4285s # 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = instance; 4285s # } 4285s # else 4285s # { 4285s # data1 = instance; 4285s # data2 = closure->data; 4285s # } 4285s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # callback (data1, 4285s # arg0, 4285s # data2); 4285s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 4285s # g_param_spec_unref (arg0); 4285s # } 4285s # Error: 4285s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 4285s # glib-genmarshal: /usr/bin/glib-genmarshal 4285s # tmpdir: /tmp/tmpa5x3egle 4285s # /tmp/tmpa5x3egle/tmpm9319qjd.list: VOID:STRING 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpa5x3egle/tmpm9319qjd.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # /* VOID:STRING (/tmp/tmpa5x3egle/tmpm9319qjd.list:1) */ 4285s # extern 4285s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 4285s # GValue *return_value, 4285s # guint n_param_values, 4285s # const GValue *param_values, 4285s # gpointer invocation_hint, 4285s # gpointer marshal_data); 4285s # extern 4285s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 4285s # GValue *return_value, 4285s # gpointer instance, 4285s # va_list args, 4285s # gpointer marshal_data, 4285s # int n_params, 4285s # GType *param_types); 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 4285s # Error: 4285s # 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpa5x3egle/tmpm9319qjd.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # /* VOID:STRING (/tmp/tmpa5x3egle/tmpm9319qjd.list:1) */ 4285s # void 4285s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 4285s # GValue *return_value G_GNUC_UNUSED, 4285s # guint n_param_values, 4285s # const GValue *param_values, 4285s # gpointer invocation_hint G_GNUC_UNUSED, 4285s # gpointer marshal_data) 4285s # { 4285s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 4285s # gpointer arg1, 4285s # gpointer data2); 4285s # GCClosure *cc = (GCClosure *) closure; 4285s # gpointer data1, data2; 4285s # GMarshalFunc_VOID__STRING callback; 4285s # 4285s # g_return_if_fail (n_param_values == 2); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # callback (data1, 4285s # g_marshal_value_peek_string (param_values + 1), 4285s # data2); 4285s # } 4285s # 4285s # void 4285s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 4285s # GValue *return_value G_GNUC_UNUSED, 4285s # gpointer instance, 4285s # va_list args, 4285s # gpointer marshal_data, 4285s # int n_params, 4285s # GType *param_types) 4285s # { 4285s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 4285s # gpointer arg1, 4285s # gpointer data2); 4285s # GCClosure *cc = (GCClosure *) closure; 4285s # gpointer data1, data2; 4285s # GMarshalFunc_VOID__STRING callback; 4285s # gpointer arg0; 4285s # va_list args_copy; 4285s # 4285s # va_copy (args_copy, args); 4285s # arg0 = (gpointer) va_arg (args_copy, gpointer); 4285s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 4285s # arg0 = g_strdup (arg0); 4285s # va_end (args_copy); 4285s # 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = instance; 4285s # } 4285s # else 4285s # { 4285s # data1 = instance; 4285s # data2 = closure->data; 4285s # } 4285s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # callback (data1, 4285s # arg0, 4285s # data2); 4285s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 4285s # g_free (arg0); 4285s # } 4285s # Error: 4285s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 4285s # glib-genmarshal: /usr/bin/glib-genmarshal 4285s # tmpdir: /tmp/tmphh44ogzy 4285s # /tmp/tmphh44ogzy/tmp4fd5mrgp.list: VOID:VARIANT 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmphh44ogzy/tmp4fd5mrgp.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # /* VOID:VARIANT (/tmp/tmphh44ogzy/tmp4fd5mrgp.list:1) */ 4285s # extern 4285s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 4285s # GValue *return_value, 4285s # guint n_param_values, 4285s # const GValue *param_values, 4285s # gpointer invocation_hint, 4285s # gpointer marshal_data); 4285s # extern 4285s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 4285s # GValue *return_value, 4285s # gpointer instance, 4285s # va_list args, 4285s # gpointer marshal_data, 4285s # int n_params, 4285s # GType *param_types); 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 4285s # Error: 4285s # 4285s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmphh44ogzy/tmp4fd5mrgp.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 4285s # Return code: 0 4285s # Output: 4285s # /* 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. */ 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # /* VOID:VARIANT (/tmp/tmphh44ogzy/tmp4fd5mrgp.list:1) */ 4285s # void 4285s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 4285s # GValue *return_value G_GNUC_UNUSED, 4285s # guint n_param_values, 4285s # const GValue *param_values, 4285s # gpointer invocation_hint G_GNUC_UNUSED, 4285s # gpointer marshal_data) 4285s # { 4285s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 4285s # gpointer arg1, 4285s # gpointer data2); 4285s # GCClosure *cc = (GCClosure *) closure; 4285s # gpointer data1, data2; 4285s # GMarshalFunc_VOID__VARIANT callback; 4285s # 4285s # g_return_if_fail (n_param_values == 2); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # callback (data1, 4285s # g_marshal_value_peek_variant (param_values + 1), 4285s # data2); 4285s # } 4285s # 4285s # void 4285s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 4285s # GValue *return_value G_GNUC_UNUSED, 4285s # gpointer instance, 4285s # va_list args, 4285s # gpointer marshal_data, 4285s # int n_params, 4285s # GType *param_types) 4285s # { 4285s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 4285s # gpointer arg1, 4285s # gpointer data2); 4285s # GCClosure *cc = (GCClosure *) closure; 4285s # gpointer data1, data2; 4285s # GMarshalFunc_VOID__VARIANT callback; 4285s # gpointer arg0; 4285s # va_list args_copy; 4285s # 4285s # va_copy (args_copy, args); 4285s # arg0 = (gpointer) va_arg (args_copy, gpointer); 4285s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 4285s # arg0 = g_variant_ref_sink (arg0); 4285s # va_end (args_copy); 4285s # 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = instance; 4285s # } 4285s # else 4285s # { 4285s # data1 = instance; 4285s # data2 = closure->data; 4285s # } 4285s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # callback (data1, 4285s # arg0, 4285s # data2); 4285s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 4285s # g_variant_unref (arg0); 4285s # } 4285s # Error: 4285s 1..8 4285s TAP version 13 4285s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmp4itqrj8c 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 4285s # Return code: 0 4285s # Output: 4285s # Usage: 4285s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 4285s # 4285s # Help Options: 4285s # -h, --help Show help options 4285s # 4285s # Application Options: 4285s # --typelib-version=VERSION Typelib version to inspect 4285s # --print-shlibs List the shared libraries the typelib requires 4285s # --print-typelibs List other typelibs the inspected typelib requires 4285s # Error: 4285s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmp7z04xdzf 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 4285s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmpcopfvh9w 4285s # Running: ['/usr/bin/gi-inspect-typelib'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # Please specify exactly one namespace 4285s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmph7uu1vvk 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 4285s # Return code: 0 4285s # Output: 4285s # shlib: libgobject-2.0.so.0 4285s # shlib: libglib-2.0.so.0 4285s # Error: 4285s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmpi4pi87wm 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 4285s # Return code: 0 4285s # Output: 4285s # 4285s # Error: 4285s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmpzbvjpzds 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 4285s # Return code: 0 4285s # Output: 4285s # shlib: libgobject-2.0.so.0 4285s # shlib: libglib-2.0.so.0 4285s # Error: 4285s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmp4nms5z0k 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 4285s # Return code: 0 4285s # Output: 4285s # shlib: libgobject-2.0.so.0 4285s # Error: 4285s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmppkcnd_25 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 4285s # Return code: 0 4285s # Output: 4285s # typelib: GLib-2.0 4285s # Error: 4285s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmp1g0t3gcq 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 4285s # Return code: 0 4285s # Output: 4285s # shlib: libgobject-2.0.so.0 4285s # typelib: GLib-2.0 4285s # Error: 4285s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmpihwsd4p5 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 4285s # Return code: 0 4285s # Output: 4285s # shlib: libgio-2.0.so.0 4285s # Error: 4285s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmp98nekmtq 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 4285s # Return code: 0 4285s # Output: 4285s # typelib: GObject-2.0 4285s # typelib: GLib-2.0 4285s # typelib: GModule-2.0 4285s # Error: 4285s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 4285s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 4285s # tmpdir: /tmp/tmp0b7p53k6 4285s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 4285s # Return code: 0 4285s # Output: 4285s # shlib: libgio-2.0.so.0 4285s # typelib: GObject-2.0 4285s # typelib: GLib-2.0 4285s # typelib: GModule-2.0 4285s # Error: 4285s 1..12 4285s TAP version 13 4285s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 4285s # gdbus-codegen: /usr/bin/gdbus-codegen 4285s # tmpdir: /tmp/tmp1hcmvlrl 4285s # /tmp/tmp1hcmvlrl/tmpsy5akzqp.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1hcmvlrl/tmpsy5akzqp.xml', '--output', '-', '--header'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifndef __STDOUT__ 4285s # #define __STDOUT__ 4285s # 4285s # #include 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # /* Declarations for org.project.UsefulInterface */ 4285s # 4285s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 4285s # 4285s # struct _OrgProjectUsefulInterface; 4285s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 4285s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 4285s # 4285s # struct _OrgProjectUsefulInterfaceIface 4285s # { 4285s # GTypeInterface parent_iface; 4285s # 4285s # gboolean (*handle_useful_method) ( 4285s # OrgProjectUsefulInterface *object, 4285s # GDBusMethodInvocation *invocation); 4285s # 4285s # }; 4285s # 4285s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 4285s # 4285s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 4285s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 4285s # 4285s # 4285s # /* D-Bus method call completion functions: */ 4285s # void org_project_useful_interface_complete_useful_method ( 4285s # OrgProjectUsefulInterface *object, 4285s # GDBusMethodInvocation *invocation); 4285s # 4285s # 4285s # 4285s # /* D-Bus method calls: */ 4285s # void org_project_useful_interface_call_useful_method ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data); 4285s # 4285s # gboolean org_project_useful_interface_call_useful_method_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error); 4285s # 4285s # gboolean org_project_useful_interface_call_useful_method_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GCancellable *cancellable, 4285s # GError **error); 4285s # 4285s # 4285s # 4285s # /* ---- */ 4285s # 4285s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 4285s # 4285s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 4285s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 4285s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxy 4285s # { 4285s # /*< private >*/ 4285s # GDBusProxy parent_instance; 4285s # OrgProjectUsefulInterfaceProxyPrivate *priv; 4285s # }; 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyClass 4285s # { 4285s # GDBusProxyClass parent_class; 4285s # }; 4285s # 4285s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 4285s # 4285s # #if GLIB_CHECK_VERSION(2, 44, 0) 4285s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 4285s # #endif 4285s # 4285s # void org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error); 4285s # 4285s # void org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error); 4285s # 4285s # 4285s # /* ---- */ 4285s # 4285s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 4285s # 4285s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 4285s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 4285s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeleton 4285s # { 4285s # /*< private >*/ 4285s # GDBusInterfaceSkeleton parent_instance; 4285s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 4285s # }; 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonClass 4285s # { 4285s # GDBusInterfaceSkeletonClass parent_class; 4285s # }; 4285s # 4285s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 4285s # 4285s # #if GLIB_CHECK_VERSION(2, 44, 0) 4285s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 4285s # #endif 4285s # 4285s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __STDOUT__ */ 4285s # Error: 4285s # 4285s # /tmp/tmp1hcmvlrl/tmp4f0frr92.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1hcmvlrl/tmp4f0frr92.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifndef __STDOUT__ 4285s # #define __STDOUT__ 4285s # 4285s # #include 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # /* Declarations for org.project.UsefulInterface */ 4285s # 4285s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 4285s # 4285s # struct _OrgProjectUsefulInterface; 4285s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 4285s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 4285s # 4285s # struct _OrgProjectUsefulInterfaceIface 4285s # { 4285s # GTypeInterface parent_iface; 4285s # 4285s # gboolean (*handle_useful_method) ( 4285s # OrgProjectUsefulInterface *object, 4285s # GDBusMethodInvocation *invocation); 4285s # 4285s # }; 4285s # 4285s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 4285s # 4285s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 4285s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 4285s # 4285s # 4285s # /* D-Bus method call completion functions: */ 4285s # void org_project_useful_interface_complete_useful_method ( 4285s # OrgProjectUsefulInterface *object, 4285s # GDBusMethodInvocation *invocation); 4285s # 4285s # 4285s # 4285s # /* D-Bus method calls: */ 4285s # void org_project_useful_interface_call_useful_method ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data); 4285s # 4285s # gboolean org_project_useful_interface_call_useful_method_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error); 4285s # 4285s # gboolean org_project_useful_interface_call_useful_method_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GCancellable *cancellable, 4285s # GError **error); 4285s # 4285s # 4285s # 4285s # /* ---- */ 4285s # 4285s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 4285s # 4285s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 4285s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 4285s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxy 4285s # { 4285s # /*< private >*/ 4285s # GDBusProxy parent_instance; 4285s # OrgProjectUsefulInterfaceProxyPrivate *priv; 4285s # }; 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyClass 4285s # { 4285s # GDBusProxyClass parent_class; 4285s # }; 4285s # 4285s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 4285s # 4285s # #if GLIB_CHECK_VERSION(2, 44, 0) 4285s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 4285s # #endif 4285s # 4285s # void org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error); 4285s # 4285s # void org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error); 4285s # 4285s # 4285s # /* ---- */ 4285s # 4285s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 4285s # 4285s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 4285s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 4285s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeleton 4285s # { 4285s # /*< private >*/ 4285s # GDBusInterfaceSkeleton parent_instance; 4285s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 4285s # }; 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonClass 4285s # { 4285s # GDBusInterfaceSkeletonClass parent_class; 4285s # }; 4285s # 4285s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 4285s # 4285s # #if GLIB_CHECK_VERSION(2, 44, 0) 4285s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 4285s # #endif 4285s # 4285s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __STDOUT__ */ 4285s # Error: 4285s # 4285s # /tmp/tmp1hcmvlrl/tmpaqp9umf4.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1hcmvlrl/tmpaqp9umf4.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifndef __STDOUT__ 4285s # #define __STDOUT__ 4285s # 4285s # #include 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # /* Declarations for org.project.UsefulInterface */ 4285s # 4285s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 4285s # 4285s # struct _OrgProjectUsefulInterface; 4285s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 4285s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 4285s # 4285s # struct _OrgProjectUsefulInterfaceIface 4285s # { 4285s # GTypeInterface parent_iface; 4285s # 4285s # gboolean (*handle_useful_method) ( 4285s # OrgProjectUsefulInterface *object, 4285s # GDBusMethodInvocation *invocation); 4285s # 4285s # }; 4285s # 4285s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 4285s # 4285s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 4285s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 4285s # 4285s # 4285s # /* D-Bus method call completion functions: */ 4285s # void org_project_useful_interface_complete_useful_method ( 4285s # OrgProjectUsefulInterface *object, 4285s # GDBusMethodInvocation *invocation); 4285s # 4285s # 4285s # 4285s # /* D-Bus method calls: */ 4285s # void org_project_useful_interface_call_useful_method ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GDBusCallFlags call_flags, 4285s # gint timeout_msec, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data); 4285s # 4285s # gboolean org_project_useful_interface_call_useful_method_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error); 4285s # 4285s # gboolean org_project_useful_interface_call_useful_method_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GDBusCallFlags call_flags, 4285s # gint timeout_msec, 4285s # GCancellable *cancellable, 4285s # GError **error); 4285s # 4285s # 4285s # 4285s # /* ---- */ 4285s # 4285s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 4285s # 4285s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 4285s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 4285s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxy 4285s # { 4285s # /*< private >*/ 4285s # GDBusProxy parent_instance; 4285s # OrgProjectUsefulInterfaceProxyPrivate *priv; 4285s # }; 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyClass 4285s # { 4285s # GDBusProxyClass parent_class; 4285s # }; 4285s # 4285s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 4285s # 4285s # #if GLIB_CHECK_VERSION(2, 44, 0) 4285s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 4285s # #endif 4285s # 4285s # void org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error); 4285s # 4285s # void org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error); 4285s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error); 4285s # 4285s # 4285s # /* ---- */ 4285s # 4285s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 4285s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 4285s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 4285s # 4285s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 4285s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 4285s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeleton 4285s # { 4285s # /*< private >*/ 4285s # GDBusInterfaceSkeleton parent_instance; 4285s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 4285s # }; 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonClass 4285s # { 4285s # GDBusInterfaceSkeletonClass parent_class; 4285s # }; 4285s # 4285s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 4285s # 4285s # #if GLIB_CHECK_VERSION(2, 44, 0) 4285s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 4285s # #endif 4285s # 4285s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __STDOUT__ */ 4285s # Error: 4285s ok 2 __main__.TestCodegen.test_dbus_types 4285s # gdbus-codegen: /usr/bin/gdbus-codegen 4285s # tmpdir: /tmp/tmpuop9leow 4285s # /tmp/tmpuop9leow/tmp7sreud4o.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmp7sreud4o.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 4285s # /tmp/tmpuop9leow/tmp5xp_b0pq.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmp5xp_b0pq.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 4285s # /tmp/tmpuop9leow/tmp6vozqfu2.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmp6vozqfu2.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 4285s # /tmp/tmpuop9leow/tmp7_bcatsx.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmp7_bcatsx.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 4285s # /tmp/tmpuop9leow/tmpp9eyhpxa.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmpp9eyhpxa.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 4285s # /tmp/tmpuop9leow/tmpfcpgmr3_.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmpfcpgmr3_.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 4285s # /tmp/tmpuop9leow/tmp_r__y17e.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmp_r__y17e.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 4285s # /tmp/tmpuop9leow/tmpb5y88i2c.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmpb5y88i2c.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 4285s # /tmp/tmpuop9leow/tmpv3aqc028.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmpv3aqc028.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 4285s # /tmp/tmpuop9leow/tmp36xt6fij.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmp36xt6fij.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: D-Bus maximum signature length of 255 exceeded. 4285s # /tmp/tmpuop9leow/tmpp8f5hxyq.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmpp8f5hxyq.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: D-Bus maximum signature length of 255 exceeded. 4285s # /tmp/tmpuop9leow/tmpt23m_xhq.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmpt23m_xhq.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 4285s # /tmp/tmpuop9leow/tmpjf7ezk1f.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmpjf7ezk1f.xml', '--output', '-', '--body'] 4285s # Return code: 1 4285s # Output: 4285s # 4285s # Error: 4285s # ERROR: D-Bus maximum signature length of 255 exceeded. 4285s # /tmp/tmpuop9leow/tmpgnwnj76i.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmpgnwnj76i.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface GoodTypes 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:GoodTypes 4285s # * @title: GoodTypes 4285s # * @short_description: Generated C code for the GoodTypes D-Bus interface 4285s # * 4285s # * This section contains code for working with the GoodTypes D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for GoodTypes ---- */ 4285s # 4285s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "GoodPropertyType", 4285s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 4285s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 4285s # NULL 4285s # }, 4285s # "good-property-type", 4285s # FALSE, 4285s # TRUE 4285s # }; 4285s # 4285s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 4285s # { 4285s # &_good_types_property_info_good_property_type.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "GoodTypes", 4285s # NULL, 4285s # NULL, 4285s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 4285s # NULL 4285s # }, 4285s # "good-types", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * good_types_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # good_types_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * good_types_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 4285s # { 4285s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # 4285s # /** 4285s # * GoodTypes: 4285s # * 4285s # * Abstract interface type for the D-Bus interface GoodTypes. 4285s # */ 4285s # 4285s # /** 4285s # * GoodTypesIface: 4285s # * @parent_iface: The parent interface. 4285s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 4285s # * 4285s # * Virtual table for the D-Bus interface GoodTypes. 4285s # */ 4285s # 4285s # typedef GoodTypesIface GoodTypesInterface; 4285s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # good_types_default_init (GoodTypesIface *iface) 4285s # { 4285s # /* GObject properties for D-Bus properties: */ 4285s # /** 4285s # * GoodTypes:good-property-type: 4285s # * 4285s # * Represents the D-Bus property "GoodPropertyType". 4285s # * 4285s # * 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. 4285s # */ 4285s # g_object_interface_install_property (iface, 4285s # 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)); 4285s # } 4285s # 4285s # /** 4285s # * good_types_get_good_property_type: (skip) 4285s # * @object: A GoodTypes. 4285s # * 4285s # * Gets the value of the "GoodPropertyType" D-Bus property. 4285s # * 4285s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # GVariant * 4285s # good_types_get_good_property_type (GoodTypes *object) 4285s # { 4285s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 4285s # 4285s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 4285s # } 4285s # 4285s # /** 4285s # * good_types_dup_good_property_type: (skip) 4285s # * @object: A GoodTypes. 4285s # * 4285s # * Gets a copy of the "GoodPropertyType" D-Bus property. 4285s # * 4285s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 4285s # * 4285s # * 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(). 4285s # */ 4285s # GVariant * 4285s # good_types_dup_good_property_type (GoodTypes *object) 4285s # { 4285s # GVariant *value; 4285s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 4285s # return value; 4285s # } 4285s # 4285s # /** 4285s # * good_types_set_good_property_type: (skip) 4285s # * @object: A GoodTypes. 4285s # * @value: The value to set. 4285s # * 4285s # * Sets the "GoodPropertyType" D-Bus property to @value. 4285s # * 4285s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 4285s # */ 4285s # void 4285s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 4285s # { 4285s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * GoodTypesProxy: 4285s # * 4285s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * GoodTypesProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for GoodTypesProxy. 4285s # */ 4285s # 4285s # struct _GoodTypesProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (GoodTypesProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # good_types_proxy_finalize (GObject *object) 4285s # { 4285s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_get_property (GObject *object, 4285s # guint prop_id, 4285s # GValue *value, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *variant; 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 4285s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 4285s # if (info->use_gvariant) 4285s # { 4285s # g_value_set_variant (value, variant); 4285s # } 4285s # else 4285s # { 4285s # if (variant != NULL) 4285s # g_dbus_gvariant_to_gvalue (variant, value); 4285s # } 4285s # if (variant != NULL) 4285s # g_variant_unref (variant); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 4285s # GAsyncResult *res, 4285s # gpointer user_data) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info = user_data; 4285s # GError *error; 4285s # GVariant *_ret; 4285s # error = NULL; 4285s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 4285s # if (!_ret) 4285s # { 4285s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 4285s # info->parent_struct.name, 4285s # error->message, g_quark_to_string (error->domain), error->code); 4285s # g_error_free (error); 4285s # } 4285s # else 4285s # { 4285s # g_variant_unref (_ret); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_set_property (GObject *object, 4285s # guint prop_id, 4285s # const GValue *value, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *variant; 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 4285s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_dbus_proxy_call (G_DBUS_PROXY (object), 4285s # "org.freedesktop.DBus.Properties.Set", 4285s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 4285s # g_variant_unref (variant); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static GVariant * 4285s # good_types_proxy_get_good_property_type (GoodTypes *object) 4285s # { 4285s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 4285s # GVariant *variant; 4285s # GVariant *value = NULL; 4285s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 4285s # value = variant; 4285s # if (variant != NULL) 4285s # g_variant_unref (variant); 4285s # return value; 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_init (GoodTypesProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = good_types_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = good_types_proxy_finalize; 4285s # gobject_class->get_property = good_types_proxy_get_property; 4285s # gobject_class->set_property = good_types_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = good_types_proxy_g_signal; 4285s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 4285s # 4285s # good_types_override_properties (gobject_class, 1); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_iface_init (GoodTypesIface *iface) 4285s # { 4285s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # good_types_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # 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); 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with good_types_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See good_types_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * good_types_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # good_types_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # 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); 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with good_types_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * GoodTypesSkeleton: 4285s # * 4285s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * GoodTypesSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for GoodTypesSkeleton. 4285s # */ 4285s # 4285s # struct _GoodTypesSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _good_types_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _good_types_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _good_types_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 4285s # { 4285s # _good_types_skeleton_handle_method_call, 4285s # _good_types_skeleton_handle_get_property, 4285s # _good_types_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return good_types_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_good_types_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static gboolean _good_types_emit_changed (gpointer user_data); 4285s # 4285s # static void 4285s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 4285s # gboolean emit_changed = FALSE; 4285s # 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # { 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # skeleton->priv->changed_properties_idle_source = NULL; 4285s # emit_changed = TRUE; 4285s # } 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # 4285s # if (emit_changed) 4285s # _good_types_emit_changed (skeleton); 4285s # } 4285s # 4285s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (GoodTypesSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # good_types_skeleton_finalize (GObject *object) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # guint n; 4285s # for (n = 0; n < 1; n++) 4285s # g_value_unset (&skeleton->priv->properties[n]); 4285s # g_free (skeleton->priv->properties); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_get_property (GObject *object, 4285s # guint prop_id, 4285s # GValue *value, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # } 4285s # 4285s # static gboolean 4285s # _good_types_emit_changed (gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # GList *l; 4285s # GVariantBuilder builder; 4285s # GVariantBuilder invalidated_builder; 4285s # guint num_changes; 4285s # 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 4285s # #else 4285s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 4285s # #endif 4285s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 4285s # { 4285s # ChangedProperty *cp = l->data; 4285s # GVariant *variant; 4285s # const GValue *cur_value; 4285s # 4285s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 4285s # if (!_g_value_equal (cur_value, &cp->orig_value)) 4285s # { 4285s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 4285s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 4285s # g_variant_unref (variant); 4285s # num_changes++; 4285s # } 4285s # } 4285s # if (num_changes > 0) 4285s # { 4285s # GList *connections, *ll; 4285s # GVariant *signal_variant; 4285s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 4285s # &builder, &invalidated_builder)); 4285s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4285s # for (ll = connections; ll != NULL; ll = ll->next) 4285s # { 4285s # GDBusConnection *connection = ll->data; 4285s # 4285s # g_dbus_connection_emit_signal (connection, 4285s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 4285s # "org.freedesktop.DBus.Properties", 4285s # "PropertiesChanged", 4285s # signal_variant, 4285s # NULL); 4285s # } 4285s # g_variant_unref (signal_variant); 4285s # g_list_free_full (connections, g_object_unref); 4285s # } 4285s # else 4285s # { 4285s # g_variant_builder_clear (&builder); 4285s # g_variant_builder_clear (&invalidated_builder); 4285s # } 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # skeleton->priv->changed_properties = NULL; 4285s # skeleton->priv->changed_properties_idle_source = NULL; 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # return FALSE; 4285s # } 4285s # 4285s # static void 4285s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 4285s # { 4285s # ChangedProperty *cp; 4285s # GList *l; 4285s # cp = NULL; 4285s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 4285s # { 4285s # ChangedProperty *i_cp = l->data; 4285s # if (i_cp->info == info) 4285s # { 4285s # cp = i_cp; 4285s # break; 4285s # } 4285s # } 4285s # if (cp == NULL) 4285s # { 4285s # cp = g_new0 (ChangedProperty, 1); 4285s # cp->prop_id = prop_id; 4285s # cp->info = info; 4285s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 4285s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 4285s # g_value_copy (orig_value, &cp->orig_value); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_notify (GObject *object, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # if (skeleton->priv->changed_properties != NULL && 4285s # skeleton->priv->changed_properties_idle_source == NULL) 4285s # { 4285s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 4285s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 4285s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 4285s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 4285s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 4285s # g_source_unref (skeleton->priv->changed_properties_idle_source); 4285s # } 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_set_property (GObject *object, 4285s # guint prop_id, 4285s # const GValue *value, 4285s # GParamSpec *pspec) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # g_object_freeze_notify (object); 4285s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 4285s # { 4285s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 4285s # info->emits_changed_signal) 4285s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 4285s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 4285s # g_object_notify_by_pspec (object, pspec); 4285s # } 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # g_object_thaw_notify (object); 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # skeleton->priv->properties = g_new0 (GValue, 1); 4285s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 4285s # } 4285s # 4285s # static GVariant * 4285s # good_types_skeleton_get_good_property_type (GoodTypes *object) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # GVariant *value; 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # return value; 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = good_types_skeleton_finalize; 4285s # gobject_class->get_property = good_types_skeleton_get_property; 4285s # gobject_class->set_property = good_types_skeleton_set_property; 4285s # gobject_class->notify = good_types_skeleton_notify; 4285s # 4285s # 4285s # good_types_override_properties (gobject_class, 1); 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_iface_init (GoodTypesIface *iface) 4285s # { 4285s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 4285s # } 4285s # 4285s # /** 4285s # * good_types_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface GoodTypes. 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 4285s # */ 4285s # GoodTypes * 4285s # good_types_skeleton_new (void) 4285s # { 4285s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmpuop9leow/tmpjmk2xxgr.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmpjmk2xxgr.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface GoodTypes 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:GoodTypes 4285s # * @title: GoodTypes 4285s # * @short_description: Generated C code for the GoodTypes D-Bus interface 4285s # * 4285s # * This section contains code for working with the GoodTypes D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for GoodTypes ---- */ 4285s # 4285s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "GoodPropertyType", 4285s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 4285s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 4285s # NULL 4285s # }, 4285s # "good-property-type", 4285s # FALSE, 4285s # TRUE 4285s # }; 4285s # 4285s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 4285s # { 4285s # &_good_types_property_info_good_property_type.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "GoodTypes", 4285s # NULL, 4285s # NULL, 4285s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 4285s # NULL 4285s # }, 4285s # "good-types", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * good_types_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # good_types_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * good_types_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 4285s # { 4285s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # 4285s # /** 4285s # * GoodTypes: 4285s # * 4285s # * Abstract interface type for the D-Bus interface GoodTypes. 4285s # */ 4285s # 4285s # /** 4285s # * GoodTypesIface: 4285s # * @parent_iface: The parent interface. 4285s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 4285s # * 4285s # * Virtual table for the D-Bus interface GoodTypes. 4285s # */ 4285s # 4285s # typedef GoodTypesIface GoodTypesInterface; 4285s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # good_types_default_init (GoodTypesIface *iface) 4285s # { 4285s # /* GObject properties for D-Bus properties: */ 4285s # /** 4285s # * GoodTypes:good-property-type: 4285s # * 4285s # * Represents the D-Bus property "GoodPropertyType". 4285s # * 4285s # * 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. 4285s # */ 4285s # g_object_interface_install_property (iface, 4285s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 4285s # } 4285s # 4285s # /** 4285s # * good_types_get_good_property_type: (skip) 4285s # * @object: A GoodTypes. 4285s # * 4285s # * Gets the value of the "GoodPropertyType" D-Bus property. 4285s # * 4285s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # GVariant * 4285s # good_types_get_good_property_type (GoodTypes *object) 4285s # { 4285s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 4285s # 4285s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 4285s # } 4285s # 4285s # /** 4285s # * good_types_dup_good_property_type: (skip) 4285s # * @object: A GoodTypes. 4285s # * 4285s # * Gets a copy of the "GoodPropertyType" D-Bus property. 4285s # * 4285s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 4285s # * 4285s # * 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(). 4285s # */ 4285s # GVariant * 4285s # good_types_dup_good_property_type (GoodTypes *object) 4285s # { 4285s # GVariant *value; 4285s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 4285s # return value; 4285s # } 4285s # 4285s # /** 4285s # * good_types_set_good_property_type: (skip) 4285s # * @object: A GoodTypes. 4285s # * @value: The value to set. 4285s # * 4285s # * Sets the "GoodPropertyType" D-Bus property to @value. 4285s # * 4285s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 4285s # */ 4285s # void 4285s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 4285s # { 4285s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * GoodTypesProxy: 4285s # * 4285s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * GoodTypesProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for GoodTypesProxy. 4285s # */ 4285s # 4285s # struct _GoodTypesProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (GoodTypesProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # good_types_proxy_finalize (GObject *object) 4285s # { 4285s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_get_property (GObject *object, 4285s # guint prop_id, 4285s # GValue *value, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *variant; 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 4285s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 4285s # if (info->use_gvariant) 4285s # { 4285s # g_value_set_variant (value, variant); 4285s # } 4285s # else 4285s # { 4285s # if (variant != NULL) 4285s # g_dbus_gvariant_to_gvalue (variant, value); 4285s # } 4285s # if (variant != NULL) 4285s # g_variant_unref (variant); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 4285s # GAsyncResult *res, 4285s # gpointer user_data) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info = user_data; 4285s # GError *error; 4285s # GVariant *_ret; 4285s # error = NULL; 4285s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 4285s # if (!_ret) 4285s # { 4285s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 4285s # info->parent_struct.name, 4285s # error->message, g_quark_to_string (error->domain), error->code); 4285s # g_error_free (error); 4285s # } 4285s # else 4285s # { 4285s # g_variant_unref (_ret); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_set_property (GObject *object, 4285s # guint prop_id, 4285s # const GValue *value, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *variant; 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 4285s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_dbus_proxy_call (G_DBUS_PROXY (object), 4285s # "org.freedesktop.DBus.Properties.Set", 4285s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 4285s # g_variant_unref (variant); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static GVariant * 4285s # good_types_proxy_get_good_property_type (GoodTypes *object) 4285s # { 4285s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 4285s # GVariant *variant; 4285s # GVariant *value = NULL; 4285s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 4285s # value = variant; 4285s # if (variant != NULL) 4285s # g_variant_unref (variant); 4285s # return value; 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_init (GoodTypesProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = good_types_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = good_types_proxy_finalize; 4285s # gobject_class->get_property = good_types_proxy_get_property; 4285s # gobject_class->set_property = good_types_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = good_types_proxy_g_signal; 4285s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 4285s # 4285s # good_types_override_properties (gobject_class, 1); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_iface_init (GoodTypesIface *iface) 4285s # { 4285s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # good_types_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # 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); 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with good_types_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See good_types_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * good_types_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # good_types_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # 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); 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with good_types_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * GoodTypesSkeleton: 4285s # * 4285s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * GoodTypesSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for GoodTypesSkeleton. 4285s # */ 4285s # 4285s # struct _GoodTypesSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _good_types_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _good_types_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _good_types_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 4285s # { 4285s # _good_types_skeleton_handle_method_call, 4285s # _good_types_skeleton_handle_get_property, 4285s # _good_types_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return good_types_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_good_types_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static gboolean _good_types_emit_changed (gpointer user_data); 4285s # 4285s # static void 4285s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 4285s # gboolean emit_changed = FALSE; 4285s # 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # { 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # skeleton->priv->changed_properties_idle_source = NULL; 4285s # emit_changed = TRUE; 4285s # } 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # 4285s # if (emit_changed) 4285s # _good_types_emit_changed (skeleton); 4285s # } 4285s # 4285s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (GoodTypesSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # good_types_skeleton_finalize (GObject *object) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # guint n; 4285s # for (n = 0; n < 1; n++) 4285s # g_value_unset (&skeleton->priv->properties[n]); 4285s # g_free (skeleton->priv->properties); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_get_property (GObject *object, 4285s # guint prop_id, 4285s # GValue *value, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # } 4285s # 4285s # static gboolean 4285s # _good_types_emit_changed (gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # GList *l; 4285s # GVariantBuilder builder; 4285s # GVariantBuilder invalidated_builder; 4285s # guint num_changes; 4285s # 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 4285s # #else 4285s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 4285s # #endif 4285s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 4285s # { 4285s # ChangedProperty *cp = l->data; 4285s # GVariant *variant; 4285s # const GValue *cur_value; 4285s # 4285s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 4285s # if (!_g_value_equal (cur_value, &cp->orig_value)) 4285s # { 4285s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 4285s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 4285s # g_variant_unref (variant); 4285s # num_changes++; 4285s # } 4285s # } 4285s # if (num_changes > 0) 4285s # { 4285s # GList *connections, *ll; 4285s # GVariant *signal_variant; 4285s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 4285s # &builder, &invalidated_builder)); 4285s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4285s # for (ll = connections; ll != NULL; ll = ll->next) 4285s # { 4285s # GDBusConnection *connection = ll->data; 4285s # 4285s # g_dbus_connection_emit_signal (connection, 4285s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 4285s # "org.freedesktop.DBus.Properties", 4285s # "PropertiesChanged", 4285s # signal_variant, 4285s # NULL); 4285s # } 4285s # g_variant_unref (signal_variant); 4285s # g_list_free_full (connections, g_object_unref); 4285s # } 4285s # else 4285s # { 4285s # g_variant_builder_clear (&builder); 4285s # g_variant_builder_clear (&invalidated_builder); 4285s # } 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # skeleton->priv->changed_properties = NULL; 4285s # skeleton->priv->changed_properties_idle_source = NULL; 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # return FALSE; 4285s # } 4285s # 4285s # static void 4285s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 4285s # { 4285s # ChangedProperty *cp; 4285s # GList *l; 4285s # cp = NULL; 4285s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 4285s # { 4285s # ChangedProperty *i_cp = l->data; 4285s # if (i_cp->info == info) 4285s # { 4285s # cp = i_cp; 4285s # break; 4285s # } 4285s # } 4285s # if (cp == NULL) 4285s # { 4285s # cp = g_new0 (ChangedProperty, 1); 4285s # cp->prop_id = prop_id; 4285s # cp->info = info; 4285s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 4285s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 4285s # g_value_copy (orig_value, &cp->orig_value); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_notify (GObject *object, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # if (skeleton->priv->changed_properties != NULL && 4285s # skeleton->priv->changed_properties_idle_source == NULL) 4285s # { 4285s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 4285s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 4285s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 4285s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 4285s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 4285s # g_source_unref (skeleton->priv->changed_properties_idle_source); 4285s # } 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_set_property (GObject *object, 4285s # guint prop_id, 4285s # const GValue *value, 4285s # GParamSpec *pspec) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # g_object_freeze_notify (object); 4285s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 4285s # { 4285s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 4285s # info->emits_changed_signal) 4285s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 4285s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 4285s # g_object_notify_by_pspec (object, pspec); 4285s # } 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # g_object_thaw_notify (object); 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # skeleton->priv->properties = g_new0 (GValue, 1); 4285s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 4285s # } 4285s # 4285s # static GVariant * 4285s # good_types_skeleton_get_good_property_type (GoodTypes *object) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # GVariant *value; 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # return value; 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = good_types_skeleton_finalize; 4285s # gobject_class->get_property = good_types_skeleton_get_property; 4285s # gobject_class->set_property = good_types_skeleton_set_property; 4285s # gobject_class->notify = good_types_skeleton_notify; 4285s # 4285s # 4285s # good_types_override_properties (gobject_class, 1); 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_iface_init (GoodTypesIface *iface) 4285s # { 4285s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 4285s # } 4285s # 4285s # /** 4285s # * good_types_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface GoodTypes. 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 4285s # */ 4285s # GoodTypes * 4285s # good_types_skeleton_new (void) 4285s # { 4285s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmpuop9leow/tmpu80h2cza.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuop9leow/tmpu80h2cza.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface GoodTypes 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:GoodTypes 4285s # * @title: GoodTypes 4285s # * @short_description: Generated C code for the GoodTypes D-Bus interface 4285s # * 4285s # * This section contains code for working with the GoodTypes D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for GoodTypes ---- */ 4285s # 4285s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "GoodPropertyType", 4285s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 4285s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 4285s # NULL 4285s # }, 4285s # "good-property-type", 4285s # FALSE, 4285s # TRUE 4285s # }; 4285s # 4285s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 4285s # { 4285s # &_good_types_property_info_good_property_type.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "GoodTypes", 4285s # NULL, 4285s # NULL, 4285s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 4285s # NULL 4285s # }, 4285s # "good-types", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * good_types_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # good_types_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * good_types_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 4285s # { 4285s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # 4285s # /** 4285s # * GoodTypes: 4285s # * 4285s # * Abstract interface type for the D-Bus interface GoodTypes. 4285s # */ 4285s # 4285s # /** 4285s # * GoodTypesIface: 4285s # * @parent_iface: The parent interface. 4285s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 4285s # * 4285s # * Virtual table for the D-Bus interface GoodTypes. 4285s # */ 4285s # 4285s # typedef GoodTypesIface GoodTypesInterface; 4285s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # good_types_default_init (GoodTypesIface *iface) 4285s # { 4285s # /* GObject properties for D-Bus properties: */ 4285s # /** 4285s # * GoodTypes:good-property-type: 4285s # * 4285s # * Represents the D-Bus property "GoodPropertyType". 4285s # * 4285s # * 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. 4285s # */ 4285s # g_object_interface_install_property (iface, 4285s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 4285s # } 4285s # 4285s # /** 4285s # * good_types_get_good_property_type: (skip) 4285s # * @object: A GoodTypes. 4285s # * 4285s # * Gets the value of the "GoodPropertyType" D-Bus property. 4285s # * 4285s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # GVariant * 4285s # good_types_get_good_property_type (GoodTypes *object) 4285s # { 4285s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 4285s # 4285s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 4285s # } 4285s # 4285s # /** 4285s # * good_types_dup_good_property_type: (skip) 4285s # * @object: A GoodTypes. 4285s # * 4285s # * Gets a copy of the "GoodPropertyType" D-Bus property. 4285s # * 4285s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 4285s # * 4285s # * 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(). 4285s # */ 4285s # GVariant * 4285s # good_types_dup_good_property_type (GoodTypes *object) 4285s # { 4285s # GVariant *value; 4285s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 4285s # return value; 4285s # } 4285s # 4285s # /** 4285s # * good_types_set_good_property_type: (skip) 4285s # * @object: A GoodTypes. 4285s # * @value: The value to set. 4285s # * 4285s # * Sets the "GoodPropertyType" D-Bus property to @value. 4285s # * 4285s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 4285s # */ 4285s # void 4285s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 4285s # { 4285s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * GoodTypesProxy: 4285s # * 4285s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * GoodTypesProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for GoodTypesProxy. 4285s # */ 4285s # 4285s # struct _GoodTypesProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (GoodTypesProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # good_types_proxy_finalize (GObject *object) 4285s # { 4285s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_get_property (GObject *object, 4285s # guint prop_id, 4285s # GValue *value, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *variant; 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 4285s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 4285s # if (info->use_gvariant) 4285s # { 4285s # g_value_set_variant (value, variant); 4285s # } 4285s # else 4285s # { 4285s # if (variant != NULL) 4285s # g_dbus_gvariant_to_gvalue (variant, value); 4285s # } 4285s # if (variant != NULL) 4285s # g_variant_unref (variant); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 4285s # GAsyncResult *res, 4285s # gpointer user_data) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info = user_data; 4285s # GError *error; 4285s # GVariant *_ret; 4285s # error = NULL; 4285s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 4285s # if (!_ret) 4285s # { 4285s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 4285s # info->parent_struct.name, 4285s # error->message, g_quark_to_string (error->domain), error->code); 4285s # g_error_free (error); 4285s # } 4285s # else 4285s # { 4285s # g_variant_unref (_ret); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_set_property (GObject *object, 4285s # guint prop_id, 4285s # const GValue *value, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *variant; 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 4285s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_dbus_proxy_call (G_DBUS_PROXY (object), 4285s # "org.freedesktop.DBus.Properties.Set", 4285s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 4285s # g_variant_unref (variant); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static GVariant * 4285s # good_types_proxy_get_good_property_type (GoodTypes *object) 4285s # { 4285s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 4285s # GVariant *variant; 4285s # GVariant *value = NULL; 4285s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 4285s # value = variant; 4285s # if (variant != NULL) 4285s # g_variant_unref (variant); 4285s # return value; 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_init (GoodTypesProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = good_types_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = good_types_proxy_finalize; 4285s # gobject_class->get_property = good_types_proxy_get_property; 4285s # gobject_class->set_property = good_types_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = good_types_proxy_g_signal; 4285s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 4285s # 4285s # good_types_override_properties (gobject_class, 1); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # good_types_proxy_iface_init (GoodTypesIface *iface) 4285s # { 4285s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # good_types_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # 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); 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with good_types_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See good_types_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * good_types_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # good_types_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # 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); 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with good_types_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * good_types_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # GoodTypes * 4285s # good_types_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return GOOD_TYPES (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * GoodTypesSkeleton: 4285s # * 4285s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * GoodTypesSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for GoodTypesSkeleton. 4285s # */ 4285s # 4285s # struct _GoodTypesSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _good_types_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _good_types_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _good_types_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 4285s # { 4285s # _good_types_skeleton_handle_method_call, 4285s # _good_types_skeleton_handle_get_property, 4285s # _good_types_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return good_types_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_good_types_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static gboolean _good_types_emit_changed (gpointer user_data); 4285s # 4285s # static void 4285s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 4285s # gboolean emit_changed = FALSE; 4285s # 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # { 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # skeleton->priv->changed_properties_idle_source = NULL; 4285s # emit_changed = TRUE; 4285s # } 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # 4285s # if (emit_changed) 4285s # _good_types_emit_changed (skeleton); 4285s # } 4285s # 4285s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (GoodTypesSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # good_types_skeleton_finalize (GObject *object) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # guint n; 4285s # for (n = 0; n < 1; n++) 4285s # g_value_unset (&skeleton->priv->properties[n]); 4285s # g_free (skeleton->priv->properties); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_get_property (GObject *object, 4285s # guint prop_id, 4285s # GValue *value, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # } 4285s # 4285s # static gboolean 4285s # _good_types_emit_changed (gpointer user_data) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 4285s # GList *l; 4285s # GVariantBuilder builder; 4285s # GVariantBuilder invalidated_builder; 4285s # guint num_changes; 4285s # 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 4285s # #else 4285s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 4285s # #endif 4285s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 4285s # { 4285s # ChangedProperty *cp = l->data; 4285s # GVariant *variant; 4285s # const GValue *cur_value; 4285s # 4285s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 4285s # if (!_g_value_equal (cur_value, &cp->orig_value)) 4285s # { 4285s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 4285s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 4285s # g_variant_unref (variant); 4285s # num_changes++; 4285s # } 4285s # } 4285s # if (num_changes > 0) 4285s # { 4285s # GList *connections, *ll; 4285s # GVariant *signal_variant; 4285s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 4285s # &builder, &invalidated_builder)); 4285s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4285s # for (ll = connections; ll != NULL; ll = ll->next) 4285s # { 4285s # GDBusConnection *connection = ll->data; 4285s # 4285s # g_dbus_connection_emit_signal (connection, 4285s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 4285s # "org.freedesktop.DBus.Properties", 4285s # "PropertiesChanged", 4285s # signal_variant, 4285s # NULL); 4285s # } 4285s # g_variant_unref (signal_variant); 4285s # g_list_free_full (connections, g_object_unref); 4285s # } 4285s # else 4285s # { 4285s # g_variant_builder_clear (&builder); 4285s # g_variant_builder_clear (&invalidated_builder); 4285s # } 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # skeleton->priv->changed_properties = NULL; 4285s # skeleton->priv->changed_properties_idle_source = NULL; 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # return FALSE; 4285s # } 4285s # 4285s # static void 4285s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 4285s # { 4285s # ChangedProperty *cp; 4285s # GList *l; 4285s # cp = NULL; 4285s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 4285s # { 4285s # ChangedProperty *i_cp = l->data; 4285s # if (i_cp->info == info) 4285s # { 4285s # cp = i_cp; 4285s # break; 4285s # } 4285s # } 4285s # if (cp == NULL) 4285s # { 4285s # cp = g_new0 (ChangedProperty, 1); 4285s # cp->prop_id = prop_id; 4285s # cp->info = info; 4285s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 4285s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 4285s # g_value_copy (orig_value, &cp->orig_value); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_notify (GObject *object, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # if (skeleton->priv->changed_properties != NULL && 4285s # skeleton->priv->changed_properties_idle_source == NULL) 4285s # { 4285s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 4285s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 4285s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 4285s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 4285s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 4285s # g_source_unref (skeleton->priv->changed_properties_idle_source); 4285s # } 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_set_property (GObject *object, 4285s # guint prop_id, 4285s # const GValue *value, 4285s # GParamSpec *pspec) 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4285s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # g_object_freeze_notify (object); 4285s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 4285s # { 4285s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 4285s # info->emits_changed_signal) 4285s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 4285s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 4285s # g_object_notify_by_pspec (object, pspec); 4285s # } 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # g_object_thaw_notify (object); 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # skeleton->priv->properties = g_new0 (GValue, 1); 4285s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 4285s # } 4285s # 4285s # static GVariant * 4285s # good_types_skeleton_get_good_property_type (GoodTypes *object) 4285s # { 4285s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 4285s # GVariant *value; 4285s # g_mutex_lock (&skeleton->priv->lock); 4285s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 4285s # g_mutex_unlock (&skeleton->priv->lock); 4285s # return value; 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = good_types_skeleton_finalize; 4285s # gobject_class->get_property = good_types_skeleton_get_property; 4285s # gobject_class->set_property = good_types_skeleton_set_property; 4285s # gobject_class->notify = good_types_skeleton_notify; 4285s # 4285s # 4285s # good_types_override_properties (gobject_class, 1); 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # good_types_skeleton_iface_init (GoodTypesIface *iface) 4285s # { 4285s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 4285s # } 4285s # 4285s # /** 4285s # * good_types_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface GoodTypes. 4285s # * 4285s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 4285s # */ 4285s # GoodTypes * 4285s # good_types_skeleton_new (void) 4285s # { 4285s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s ok 3 __main__.TestCodegen.test_empty_interface_body 4285s # gdbus-codegen: /usr/bin/gdbus-codegen 4285s # tmpdir: /tmp/tmpanmoafag 4285s # /tmp/tmpanmoafag/tmpx81qfav0.xml: 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpanmoafag/tmpx81qfav0.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # Error: 4285s ok 4 __main__.TestCodegen.test_empty_interface_header 4285s # gdbus-codegen: /usr/bin/gdbus-codegen 4285s # tmpdir: /tmp/tmpqjom35t2 4285s # /tmp/tmpqjom35t2/tmp1a6k8yhi.xml: 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqjom35t2/tmp1a6k8yhi.xml', '--output', '-', '--header'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifndef __STDOUT__ 4285s # #define __STDOUT__ 4285s # 4285s # #include 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __STDOUT__ */ 4285s # Error: 4285s ok 5 __main__.TestCodegen.test_empty_interface_info_body 4285s # gdbus-codegen: /usr/bin/gdbus-codegen 4285s # tmpdir: /tmp/tmp9d08o50i 4285s # /tmp/tmp9d08o50i/tmplp4bbe4v.xml: 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9d08o50i/tmplp4bbe4v.xml', '--output', '-', '--interface-info-body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # Error: 4285s ok 6 __main__.TestCodegen.test_empty_interface_info_header 4285s # gdbus-codegen: /usr/bin/gdbus-codegen 4285s # tmpdir: /tmp/tmpgvvnwr7e 4285s # /tmp/tmpgvvnwr7e/tmpn738hzdq.xml: 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgvvnwr7e/tmpn738hzdq.xml', '--output', '-', '--interface-info-header'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifndef __STDOUT__ 4285s # #define __STDOUT__ 4285s # 4285s # #include 4285s # 4285s # G_BEGIN_DECLS 4285s # 4285s # 4285s # G_END_DECLS 4285s # 4285s # #endif /* __STDOUT__ */ 4285s # Error: 4285s ok 7 __main__.TestCodegen.test_generate_docbook 4285s # gdbus-codegen: /usr/bin/gdbus-codegen 4285s # tmpdir: /tmp/tmpgfv10lgv 4285s # /tmp/tmpgfv10lgv/tmp_kh1o4vo.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgfv10lgv/tmp_kh1o4vo.xml', '--generate-docbook', 'test'] 4285s # Return code: 0 4285s # Output: 4285s # 4285s # Error: 4285s ok 8 __main__.TestCodegen.test_generate_md 4285s # gdbus-codegen: /usr/bin/gdbus-codegen 4285s # tmpdir: /tmp/tmpfk82vbu5 4285s # /tmp/tmpfk82vbu5/tmp1tftcrwr.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpfk82vbu5/tmp1tftcrwr.xml', '--generate-md', 'test'] 4285s # Return code: 0 4285s # Output: 4285s # 4285s # Error: 4285s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 4285s # gdbus-codegen: /usr/bin/gdbus-codegen 4285s # tmpdir: /tmp/tmpjaoe_7qe 4285s # /tmp/tmpjaoe_7qe/tmpbdkae4ve.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjaoe_7qe/tmpbdkae4ve.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 2); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.CallableIface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectCallableIface 4285s # * @title: OrgProjectCallableIface 4285s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.CallableIface ---- */ 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SimpleMethod", 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-simple-method", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 4285s # { 4285s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.CallableIface", 4285s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-callable-iface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_callable_iface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_callable_iface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_callable_iface_method_marshal_simple_method ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectCallableIface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectCallableIfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.CallableIface. 4285s # */ 4285s # 4285s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectCallableIface::handle-simple-method: 4285s # * @object: A #OrgProjectCallableIface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-simple-method", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_callable_iface_method_marshal_simple_method, 4285s # G_TYPE_BOOLEAN, 4285s # 1, 4285s # G_TYPE_DBUS_METHOD_INVOCATION); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_call_simple_method: 4285s # * @proxy: A #OrgProjectCallableIfaceProxy. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_callable_iface_call_simple_method ( 4285s # OrgProjectCallableIface *proxy, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SimpleMethod", 4285s # g_variant_new ("()"), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_call_simple_method_finish: 4285s # * @proxy: A #OrgProjectCallableIfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_callable_iface_call_simple_method_finish ( 4285s # OrgProjectCallableIface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_call_simple_method_sync: 4285s # * @proxy: A #OrgProjectCallableIfaceProxy. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_callable_iface_call_simple_method_sync ( 4285s # OrgProjectCallableIface *proxy, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SimpleMethod", 4285s # g_variant_new ("()"), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_complete_simple_method: 4285s # * @object: A #OrgProjectCallableIface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SimpleMethod() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_callable_iface_complete_simple_method ( 4285s # OrgProjectCallableIface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectCallableIfaceProxy: 4285s # * 4285s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectCallableIfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectCallableIfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectCallableIfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_callable_iface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 4285s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 4285s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_callable_iface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # 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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectCallableIface * 4285s # org_project_callable_iface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectCallableIface * 4285s # org_project_callable_iface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_callable_iface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_callable_iface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # 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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectCallableIface * 4285s # org_project_callable_iface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectCallableIface * 4285s # org_project_callable_iface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectCallableIfaceSkeleton: 4285s # * 4285s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectCallableIfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectCallableIfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectCallableIfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_callable_iface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[# Executing: glib/codegen.py.test 4285s # Executing: glib/codegen.py.test 4285s # Executing: glib/codegen.py.test 4285s # Executing: glib/codegen.py.test 4285s n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_callable_iface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_callable_iface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 4285s # { 4285s # _org_project_callable_iface_skeleton_handle_method_call, 4285s # _org_project_callable_iface_skeleton_handle_get_property, 4285s # _org_project_callable_iface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_callable_iface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_callable_iface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_callable_iface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectCallableIface * 4285s # org_project_callable_iface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.OtherCallableIface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectOtherCallableIface 4285s # * @title: OrgProjectOtherCallableIface 4285s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SimpleMethod", 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-simple-method", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 4285s # { 4285s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.OtherCallableIface", 4285s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-other-callable-iface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_other_callable_iface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_other_callable_iface_method_marshal_simple_method ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectOtherCallableIface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectOtherCallableIfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 4285s # */ 4285s # 4285s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectOtherCallableIface::handle-simple-method: 4285s # * @object: A #OrgProjectOtherCallableIface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-simple-method", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_other_callable_iface_method_marshal_simple_method, 4285s # G_TYPE_BOOLEAN, 4285s # 1, 4285s # G_TYPE_DBUS_METHOD_INVOCATION); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_call_simple_method: 4285s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_other_callable_iface_call_simple_method ( 4285s # OrgProjectOtherCallableIface *proxy, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SimpleMethod", 4285s # g_variant_new ("()"), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_call_simple_method_finish: 4285s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_other_callable_iface_call_simple_method_finish ( 4285s # OrgProjectOtherCallableIface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_call_simple_method_sync: 4285s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_other_callable_iface_call_simple_method_sync ( 4285s # OrgProjectOtherCallableIface *proxy, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SimpleMethod", 4285s # g_variant_new ("()"), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_complete_simple_method: 4285s # * @object: A #OrgProjectOtherCallableIface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SimpleMethod() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_other_callable_iface_complete_simple_method ( 4285s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectOtherCallableIfaceProxy: 4285s # * 4285s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectOtherCallableIfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectOtherCallableIfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_other_callable_iface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 4285s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 4285s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_other_callable_iface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # 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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectOtherCallableIface * 4285s # org_project_other_callable_iface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectOtherCallableIface * 4285s # org_project_other_callable_iface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_other_callable_iface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # 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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectOtherCallableIface * 4285s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectOtherCallableIface * 4285s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectOtherCallableIfaceSkeleton: 4285s # * 4285s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectOtherCallableIfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_other_callable_iface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_other_callable_iface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_other_callable_iface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 4285s # { 4285s # _org_project_other_callable_iface_skeleton_handle_method_call, 4285s # _org_project_other_callable_iface_skeleton_handle_get_property, 4285s # _org_project_other_callable_iface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_other_callable_iface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_other_callable_iface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectOtherCallableIface * 4285s # org_project_other_callable_iface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 4285s # gdbus-codegen: /usr/bin/gdbus-codegen 4285s # tmpdir: /tmp/tmppagcfg50 4285s # /tmp/tmppagcfg50/tmpdf0kledx.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpdf0kledx.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # gboolean arg_arg_b, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_boolean (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_b", 4285s # (gchar *) "b", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodB", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-b", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_b ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_b: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-b", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_b, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_b: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_b: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_b ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # gboolean arg_arg_b, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodB", 4285s # g_variant_new ("(b)", 4285s # arg_arg_b), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_b_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_b_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_b_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_b: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_b_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # gboolean arg_arg_b, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodB", 4285s # g_variant_new ("(b)", 4285s # arg_arg_b), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_b: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodB() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_b ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpl5p31snw.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpl5p31snw.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # guchar arg_arg_y, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_uchar (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_y", 4285s # (gchar *) "y", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodY", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-y", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_y ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_y: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-y", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_y, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_y: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_y: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_y ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # guchar arg_arg_y, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodY", 4285s # g_variant_new ("(y)", 4285s # arg_arg_y), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_y_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_y_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_y_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_y: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_y_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # guchar arg_arg_y, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodY", 4285s # g_variant_new ("(y)", 4285s # arg_arg_y), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_y: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodY() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_y ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmp8m8rxvaf.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmp8m8rxvaf.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # gint16 arg_arg_n, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_int (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_n", 4285s # (gchar *) "n", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodN", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-n", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_n ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_n: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-n", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_n, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_n: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_n: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_n ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # gint16 arg_arg_n, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodN", 4285s # g_variant_new ("(n)", 4285s # arg_arg_n), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_n_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_n_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_n_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_n: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_n_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # gint16 arg_arg_n, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodN", 4285s # g_variant_new ("(n)", 4285s # arg_arg_n), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_n: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodN() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_n ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpoenuouow.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpoenuouow.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # guint16 arg_arg_q, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_uint (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_q", 4285s # (gchar *) "q", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodQ", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-q", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_q ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_q: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-q", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_q, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_q: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_q: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_q ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # guint16 arg_arg_q, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodQ", 4285s # g_variant_new ("(q)", 4285s # arg_arg_q), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_q_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_q_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_q_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_q: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_q_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # guint16 arg_arg_q, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodQ", 4285s # g_variant_new ("(q)", 4285s # arg_arg_q), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_q: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodQ() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_q ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmp4rpkflbh.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmp4rpkflbh.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # gint arg_arg_i, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_int (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_i", 4285s # (gchar *) "i", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodI", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-i", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_i ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_i: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-i", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_i, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_i: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_i: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_i ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # gint arg_arg_i, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodI", 4285s # g_variant_new ("(i)", 4285s # arg_arg_i), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_i_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_i_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_i_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_i: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_i_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # gint arg_arg_i, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodI", 4285s # g_variant_new ("(i)", 4285s # arg_arg_i), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_i: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodI() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_i ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpe5h9v_xw.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpe5h9v_xw.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # guint arg_arg_u, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_uint (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_u", 4285s # (gchar *) "u", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodU", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-u", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_u ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_u: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-u", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_u, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_u: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_u: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_u ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # guint arg_arg_u, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodU", 4285s # g_variant_new ("(u)", 4285s # arg_arg_u), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_u_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_u_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_u_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_u: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_u_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # guint arg_arg_u, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodU", 4285s # g_variant_new ("(u)", 4285s # arg_arg_u), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_u: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodU() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_u ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmp06iv_9zd.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmp06iv_9zd.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # gint64 arg_arg_x, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_int64 (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_x", 4285s # (gchar *) "x", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodX", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-x", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_x ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_x: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-x", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_x, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_x: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_x: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_x ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # gint64 arg_arg_x, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodX", 4285s # g_variant_new ("(x)", 4285s # arg_arg_x), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_x_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_x_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_x_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_x: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_x_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # gint64 arg_arg_x, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodX", 4285s # g_variant_new ("(x)", 4285s # arg_arg_x), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_x: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodX() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_x ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmp_efg4zqk.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmp_efg4zqk.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # guint64 arg_arg_t, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_uint64 (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_t", 4285s # (gchar *) "t", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodT", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-t", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_t ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_t: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-t", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_t, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_t: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_t: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_t ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # guint64 arg_arg_t, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodT", 4285s # g_variant_new ("(t)", 4285s # arg_arg_t), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_t_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_t_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_t_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_t: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_t_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # guint64 arg_arg_t, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodT", 4285s # g_variant_new ("(t)", 4285s # arg_arg_t), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_t: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodT() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_t ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpp2csuj4g.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpp2csuj4g.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # gdouble arg_arg_d, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_double (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_d", 4285s # (gchar *) "d", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodD", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-d", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_d ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_d: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-d", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_d, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_d: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_d: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_d ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # gdouble arg_arg_d, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodD", 4285s # g_variant_new ("(d)", 4285s # arg_arg_d), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_d_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_d_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_d_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_d: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_d_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # gdouble arg_arg_d, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodD", 4285s # g_variant_new ("(d)", 4285s # arg_arg_d), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_d: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodD() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_d ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpf2nj8_9w.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpf2nj8_9w.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # const gchar *arg_arg_s, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_string (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_s", 4285s # (gchar *) "s", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodS", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-s", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_s ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_s: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-s", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_s, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_s: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_s: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_s ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *arg_arg_s, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodS", 4285s # g_variant_new ("(s)", 4285s # arg_arg_s), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_s_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_s_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_s_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_s: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_s_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *arg_arg_s, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodS", 4285s # g_variant_new ("(s)", 4285s # arg_arg_s), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_s: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodS() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_s ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpm9vzlogk.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpm9vzlogk.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # const gchar *arg_arg_o, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_string (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_o", 4285s # (gchar *) "o", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodO", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-o", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_o ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_o: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-o", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_o, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_o: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_o: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_o ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *arg_arg_o, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodO", 4285s # g_variant_new ("(o)", 4285s # arg_arg_o), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_o_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_o_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_o_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_o: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_o_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *arg_arg_o, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodO", 4285s # g_variant_new ("(o)", 4285s # arg_arg_o), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_o: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodO() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_o ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpddv7ma2t.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpddv7ma2t.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # const gchar *arg_arg_g, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_string (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_g", 4285s # (gchar *) "g", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodG", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-g", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_g ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_g: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-g", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_g, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_g: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_g: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_g ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *arg_arg_g, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodG", 4285s # g_variant_new ("(g)", 4285s # arg_arg_g), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_g_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_g_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_g_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_g: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_g_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *arg_arg_g, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodG", 4285s # g_variant_new ("(g)", 4285s # arg_arg_g), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_g: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodG() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_g ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpx5sfr4qn.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpx5sfr4qn.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # GVariant *arg_arg_h, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_variant (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_h", 4285s # (gchar *) "h", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodH", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-h", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_h ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_h: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-h", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_h, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_h: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_h: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_h ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GVariant *arg_arg_h, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodH", 4285s # g_variant_new ("(@h)", 4285s # arg_arg_h), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_h_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_h_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_h_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_h: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_h_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GVariant *arg_arg_h, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodH", 4285s # g_variant_new ("(@h)", 4285s # arg_arg_h), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_h: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodH() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_h ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpjxuqyfek.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpjxuqyfek.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # const gchar *arg_arg_ay, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_string (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_ay", 4285s # (gchar *) "ay", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodAy", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-ay", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_ay: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-ay", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_ay, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_ay: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_ay: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_ay ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *arg_arg_ay, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodAy", 4285s # g_variant_new ("(^ay)", 4285s # arg_arg_ay), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_ay_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_ay_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_ay_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_ay: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_ay_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *arg_arg_ay, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodAy", 4285s # g_variant_new ("(^ay)", 4285s # arg_arg_ay), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_ay: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAy() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_ay ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmp1g2h79bh.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmp1g2h79bh.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # const gchar *const *arg_arg_as, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_boxed (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_as", 4285s # (gchar *) "as", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodAs", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-as", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_as ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_as: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-as", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_as, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_as: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_as: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_as ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *const *arg_arg_as, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodAs", 4285s # g_variant_new ("(^as)", 4285s # arg_arg_as), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_as_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_as_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_as_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_as: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_as_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *const *arg_arg_as, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodAs", 4285s # g_variant_new ("(^as)", 4285s # arg_arg_as), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_as: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_as ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpw4zdr5iu.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpw4zdr5iu.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # const gchar *const *arg_arg_ao, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_boxed (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_ao", 4285s # (gchar *) "ao", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodAo", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-ao", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_ao: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-ao", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_ao, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_ao: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_ao: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_ao ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *const *arg_arg_ao, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodAo", 4285s # g_variant_new ("(^ao)", 4285s # arg_arg_ao), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_ao_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_ao_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_ao_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_ao: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_ao_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *const *arg_arg_ao, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodAo", 4285s # g_variant_new ("(^ao)", 4285s # arg_arg_ao), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_ao: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAo() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_ao ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpbow3drrs.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpbow3drrs.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # const gchar *const *arg_arg_aay, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_boxed (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_aay", 4285s # (gchar *) "aay", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodAay", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-aay", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_aay: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-aay", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_aay, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_aay: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_aay: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_aay ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *const *arg_arg_aay, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodAay", 4285s # g_variant_new ("(^aay)", 4285s # arg_arg_aay), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_aay_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_aay_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_aay_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_aay: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_aay_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # const gchar *const *arg_arg_aay, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodAay", 4285s # g_variant_new ("(^aay)", 4285s # arg_arg_aay), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_aay: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAay() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_aay ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # guint num_extra; 4285s # gsize n; 4285s # guint signal_id; 4285s # GValue return_value = G_VALUE_INIT; 4285s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4285s # g_assert (info != NULL); 4285s # num_params = g_variant_n_children (parameters); 4285s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4285s # n = 0; 4285s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[n++], skeleton); 4285s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4285s # g_value_set_object (¶mv[n++], invocation); 4285s # if (info->pass_fdlist) 4285s # { 4285s # #ifdef G_OS_UNIX 4285s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4285s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4285s # #else 4285s # g_assert_not_reached (); 4285s # #endif 4285s # } 4285s # g_variant_iter_init (&iter, parameters); 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4285s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4285s # if (!g_value_get_boolean (&return_value)) 4285s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4285s # g_value_unset (&return_value); 4285s # for (n = 0; n < num_params + num_extra; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static GVariant * 4285s # _org_project_useful_interface_skeleton_handle_get_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # GVariant *ret; 4285s # ret = NULL; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # g_value_init (&value, pspec->value_type); 4285s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4285s # g_value_unset (&value); 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _org_project_useful_interface_skeleton_handle_set_property ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name G_GNUC_UNUSED, 4285s # const gchar *property_name, 4285s # GVariant *variant, 4285s # GError **error, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # GValue value = G_VALUE_INIT; 4285s # GParamSpec *pspec; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # gboolean ret; 4285s # ret = FALSE; 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4285s # g_assert (info != NULL); 4285s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4285s # if (pspec == NULL) 4285s # { 4285s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4285s # } 4285s # else 4285s # { 4285s # if (info->use_gvariant) 4285s # g_value_set_variant (&value, variant); 4285s # else 4285s # g_dbus_gvariant_to_gvalue (variant, &value); 4285s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4285s # g_value_unset (&value); 4285s # ret = TRUE; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4285s # { 4285s # _org_project_useful_interface_skeleton_handle_method_call, 4285s # _org_project_useful_interface_skeleton_handle_get_property, 4285s # _org_project_useful_interface_skeleton_handle_set_property, 4285s # {NULL} 4285s # }; 4285s # 4285s # static GDBusInterfaceInfo * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return org_project_useful_interface_interface_info (); 4285s # } 4285s # 4285s # static GDBusInterfaceVTable * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4285s # { 4285s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4285s # } 4285s # 4285s # static GVariant * 4285s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4285s # 4285s # GVariantBuilder builder; 4285s # guint n; 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4285s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #else 4285s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4285s # #endif 4285s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4285s # goto out; 4285s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4285s # { 4285s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4285s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4285s # { 4285s # GVariant *value; 4285s # 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); 4285s # if (value != NULL) 4285s # { 4285s # g_variant_take_ref (value); 4285s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4285s # g_variant_unref (value); 4285s # } 4285s # } 4285s # } 4285s # out: 4285s # return g_variant_builder_end (&builder); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_skeleton_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4285s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4285s # if (skeleton->priv->changed_properties_idle_source != NULL) 4285s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4285s # g_main_context_unref (skeleton->priv->context); 4285s # g_mutex_clear (&skeleton->priv->lock); 4285s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4285s # #else 4285s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4285s # #endif 4285s # 4285s # g_mutex_init (&skeleton->priv->lock); 4285s # skeleton->priv->context = g_main_context_ref_thread_default (); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusInterfaceSkeletonClass *skeleton_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4285s # 4285s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4285s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4285s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4285s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4285s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_skeleton_new: 4285s # * 4285s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_skeleton_new (void) 4285s # { 4285s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4285s # } 4285s # Error: 4285s # 4285s # /tmp/tmppagcfg50/tmpbh1h24dv.xml: 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # 4285s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppagcfg50/tmpbh1h24dv.xml', '--output', '-', '--body'] 4285s # Return code: 0 4285s # Output: 4285s # /* 4285s # * This file is generated by gdbus-codegen, do not modify it. 4285s # * 4285s # * The license of this code is the same as for the D-Bus interface description 4285s # * it was derived from. Note that it links to GLib, so must comply with the 4285s # * LGPL linking clauses. 4285s # */ 4285s # 4285s # #ifdef HAVE_CONFIG_H 4285s # # include "config.h" 4285s # #endif 4285s # 4285s # #include 4285s # #ifdef G_OS_UNIX 4285s # # include 4285s # #endif 4285s # 4285s # #ifdef G_ENABLE_DEBUG 4285s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4285s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4285s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4285s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4285s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4285s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4285s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4285s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4285s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4285s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4285s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4285s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4285s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4285s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4285s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4285s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4285s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4285s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4285s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4285s # #else /* !G_ENABLE_DEBUG */ 4285s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4285s # * Do not access GValues directly in your code. Instead, use the 4285s # * g_value_get_*() functions 4285s # */ 4285s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4285s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4285s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4285s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4285s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4285s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4285s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4285s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4285s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4285s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4285s # #endif /* !G_ENABLE_DEBUG */ 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusArgInfo parent_struct; 4285s # gboolean use_gvariant; 4285s # } _ExtendedGDBusArgInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusMethodInfo parent_struct; 4285s # const gchar *signal_name; 4285s # gboolean pass_fdlist; 4285s # } _ExtendedGDBusMethodInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusSignalInfo parent_struct; 4285s # const gchar *signal_name; 4285s # } _ExtendedGDBusSignalInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusPropertyInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # guint use_gvariant : 1; 4285s # guint emits_changed_signal : 1; 4285s # } _ExtendedGDBusPropertyInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # GDBusInterfaceInfo parent_struct; 4285s # const gchar *hyphen_name; 4285s # } _ExtendedGDBusInterfaceInfo; 4285s # 4285s # typedef struct 4285s # { 4285s # const _ExtendedGDBusPropertyInfo *info; 4285s # guint prop_id; 4285s # GValue orig_value; /* the value before the change */ 4285s # } ChangedProperty; 4285s # 4285s # static void 4285s # _changed_property_free (ChangedProperty *data) 4285s # { 4285s # g_value_unset (&data->orig_value); 4285s # g_free (data); 4285s # } 4285s # 4285s # static gboolean 4285s # _g_strv_equal0 (gchar **a, gchar **b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # guint n; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # if (g_strv_length (a) != g_strv_length (b)) 4285s # goto out; 4285s # for (n = 0; a[n] != NULL; n++) 4285s # if (g_strcmp0 (a[n], b[n]) != 0) 4285s # goto out; 4285s # ret = TRUE; 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # static gboolean 4285s # _g_variant_equal0 (GVariant *a, GVariant *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # if (a == NULL && b == NULL) 4285s # { 4285s # ret = TRUE; 4285s # goto out; 4285s # } 4285s # if (a == NULL || b == NULL) 4285s # goto out; 4285s # ret = g_variant_equal (a, b); 4285s # out: 4285s # return ret; 4285s # } 4285s # 4285s # G_GNUC_UNUSED static gboolean 4285s # _g_value_equal (const GValue *a, const GValue *b) 4285s # { 4285s # gboolean ret = FALSE; 4285s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4285s # switch (G_VALUE_TYPE (a)) 4285s # { 4285s # case G_TYPE_BOOLEAN: 4285s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4285s # break; 4285s # case G_TYPE_UCHAR: 4285s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4285s # break; 4285s # case G_TYPE_INT: 4285s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4285s # break; 4285s # case G_TYPE_UINT: 4285s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4285s # break; 4285s # case G_TYPE_INT64: 4285s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4285s # break; 4285s # case G_TYPE_UINT64: 4285s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4285s # break; 4285s # case G_TYPE_DOUBLE: 4285s # { 4285s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4285s # gdouble da = g_value_get_double (a); 4285s # gdouble db = g_value_get_double (b); 4285s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4285s # } 4285s # break; 4285s # case G_TYPE_STRING: 4285s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4285s # break; 4285s # case G_TYPE_VARIANT: 4285s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4285s # break; 4285s # default: 4285s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4285s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4285s # else 4285s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4285s # break; 4285s # } 4285s # return ret; 4285s # } 4285s # 4285s # static void 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint G_GNUC_UNUSED, 4285s # void *marshal_data) 4285s # { 4285s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 4285s # (void *data1, 4285s # GDBusMethodInvocation *arg_method_invocation, 4285s # GVariant *arg_arg_asv, 4285s # void *data2); 4285s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 4285s # GCClosure *cc = (GCClosure*) closure; 4285s # void *data1, *data2; 4285s # gboolean v_return; 4285s # 4285s # g_return_if_fail (return_value != NULL); 4285s # g_return_if_fail (n_param_values == 3); 4285s # 4285s # if (G_CCLOSURE_SWAP_DATA (closure)) 4285s # { 4285s # data1 = closure->data; 4285s # data2 = g_value_peek_pointer (param_values + 0); 4285s # } 4285s # else 4285s # { 4285s # data1 = g_value_peek_pointer (param_values + 0); 4285s # data2 = closure->data; 4285s # } 4285s # 4285s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 4285s # (marshal_data ? marshal_data : cc->callback); 4285s # 4285s # v_return = 4285s # callback (data1, 4285s # g_marshal_value_peek_object (param_values + 1), 4285s # g_marshal_value_peek_variant (param_values + 2), 4285s # data2); 4285s # 4285s # g_value_set_boolean (return_value, v_return); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ 4285s # * Code for interface org.project.UsefulInterface 4285s # * ------------------------------------------------------------------------ 4285s # */ 4285s # 4285s # /** 4285s # * SECTION:OrgProjectUsefulInterface 4285s # * @title: OrgProjectUsefulInterface 4285s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4285s # * 4285s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4285s # */ 4285s # 4285s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4285s # 4285s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "arg_asv", 4285s # (gchar *) "a{sv}", 4285s # NULL 4285s # }, 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "SingleArgMethodAsv", 4285s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "handle-single-arg-method-asv", 4285s # FALSE 4285s # }; 4285s # 4285s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4285s # { 4285s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 4285s # NULL 4285s # }; 4285s # 4285s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4285s # { 4285s # { 4285s # -1, 4285s # (gchar *) "org.project.UsefulInterface", 4285s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4285s # NULL, 4285s # NULL, 4285s # NULL 4285s # }, 4285s # "org-project-useful-interface", 4285s # }; 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_interface_info: 4285s # * 4285s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4285s # * 4285s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4285s # */ 4285s # GDBusInterfaceInfo * 4285s # org_project_useful_interface_interface_info (void) 4285s # { 4285s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_override_properties: 4285s # * @klass: The class structure for a #GObject derived class. 4285s # * @property_id_begin: The property id to assign to the first overridden property. 4285s # * 4285s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4285s # * The properties are overridden in the order they are defined. 4285s # * 4285s # * Returns: The last property id. 4285s # */ 4285s # guint 4285s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4285s # { 4285s # return property_id_begin - 1; 4285s # } 4285s # 4285s # 4285s # inline static void 4285s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 4285s # GClosure *closure, 4285s # GValue *return_value, 4285s # unsigned int n_param_values, 4285s # const GValue *param_values, 4285s # void *invocation_hint, 4285s # void *marshal_data) 4285s # { 4285s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 4285s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4285s # } 4285s # 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterface: 4285s # * 4285s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceIface: 4285s # * @parent_iface: The parent interface. 4285s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 4285s # * 4285s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4285s # */ 4285s # 4285s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4285s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4285s # 4285s # static void 4285s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4285s # { 4285s # /* GObject signals for incoming D-Bus method calls: */ 4285s # /** 4285s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: A #GDBusMethodInvocation. 4285s # * @arg_arg_asv: Argument passed by remote caller. 4285s # * 4285s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 4285s # * 4285s # * 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. 4285s # * 4285s # * 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. 4285s # */ 4285s # g_signal_new ("handle-single-arg-method-asv", 4285s # G_TYPE_FROM_INTERFACE (iface), 4285s # G_SIGNAL_RUN_LAST, 4285s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 4285s # g_signal_accumulator_true_handled, 4285s # NULL, 4285s # org_project_useful_interface_method_marshal_single_arg_method_asv, 4285s # G_TYPE_BOOLEAN, 4285s # 2, 4285s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 4285s # 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_asv: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_asv: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 4285s # */ 4285s # void 4285s # org_project_useful_interface_call_single_arg_method_asv ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GVariant *arg_arg_asv, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodAsv", 4285s # g_variant_new ("(@a{sv})", 4285s # arg_arg_asv), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # callback, 4285s # user_data); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_asv_finish: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_asv_finish ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_call_single_arg_method_asv_sync: 4285s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4285s # * @arg_arg_asv: Argument to pass with the method invocation. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL. 4285s # * 4285s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 4285s # * 4285s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4285s # */ 4285s # gboolean 4285s # org_project_useful_interface_call_single_arg_method_asv_sync ( 4285s # OrgProjectUsefulInterface *proxy, 4285s # GVariant *arg_arg_asv, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GVariant *_ret; 4285s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4285s # "SingleArgMethodAsv", 4285s # g_variant_new ("(@a{sv})", 4285s # arg_arg_asv), 4285s # G_DBUS_CALL_FLAGS_NONE, 4285s # -1, 4285s # cancellable, 4285s # error); 4285s # if (_ret == NULL) 4285s # goto _out; 4285s # g_variant_get (_ret, 4285s # "()"); 4285s # g_variant_unref (_ret); 4285s # _out: 4285s # return _ret != NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_complete_single_arg_method_asv: 4285s # * @object: A #OrgProjectUsefulInterface. 4285s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4285s # * 4285s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAsv() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4285s # * 4285s # * This method will free @invocation, you cannot use it afterwards. 4285s # */ 4285s # void 4285s # org_project_useful_interface_complete_single_arg_method_asv ( 4285s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4285s # GDBusMethodInvocation *invocation) 4285s # { 4285s # g_dbus_method_invocation_return_value (invocation, 4285s # g_variant_new ("()")); 4285s # } 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxy: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceProxyClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceProxyPrivate 4285s # { 4285s # GData *qdata; 4285s # }; 4285s # 4285s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #else 4285s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4285s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4285s # 4285s # #endif 4285s # static void 4285s # org_project_useful_interface_proxy_finalize (GObject *object) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4285s # g_datalist_clear (&proxy->priv->qdata); 4285s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4285s # guint prop_id G_GNUC_UNUSED, 4285s # const GValue *value G_GNUC_UNUSED, 4285s # GParamSpec *pspec G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4285s # const gchar *sender_name G_GNUC_UNUSED, 4285s # const gchar *signal_name, 4285s # GVariant *parameters) 4285s # { 4285s # _ExtendedGDBusSignalInfo *info; 4285s # GVariantIter iter; 4285s # GVariant *child; 4285s # GValue *paramv; 4285s # gsize num_params; 4285s # gsize n; 4285s # guint signal_id; 4285s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4285s # if (info == NULL) 4285s # return; 4285s # num_params = g_variant_n_children (parameters); 4285s # paramv = g_new0 (GValue, num_params + 1); 4285s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_value_set_object (¶mv[0], proxy); 4285s # g_variant_iter_init (&iter, parameters); 4285s # n = 1; 4285s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4285s # { 4285s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4285s # if (arg_info->use_gvariant) 4285s # { 4285s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4285s # g_value_set_variant (¶mv[n], child); 4285s # n++; 4285s # } 4285s # else 4285s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4285s # g_variant_unref (child); 4285s # } 4285s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4285s # g_signal_emitv (paramv, signal_id, 0, NULL); 4285s # for (n = 0; n < num_params + 1; n++) 4285s # g_value_unset (¶mv[n]); 4285s # g_free (paramv); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4285s # GVariant *changed_properties, 4285s # const gchar *const *invalidated_properties) 4285s # { 4285s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4285s # guint n; 4285s # const gchar *key; 4285s # GVariantIter *iter; 4285s # _ExtendedGDBusPropertyInfo *info; 4285s # g_variant_get (changed_properties, "a{sv}", &iter); 4285s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4285s # g_datalist_remove_data (&proxy->priv->qdata, key); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # g_variant_iter_free (iter); 4285s # for (n = 0; invalidated_properties[n] != NULL; n++) 4285s # { 4285s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4285s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4285s # if (info != NULL) 4285s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4285s # } 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4285s # { 4285s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4285s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4285s # #else 4285s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4285s # #endif 4285s # 4285s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4285s # { 4285s # GObjectClass *gobject_class; 4285s # GDBusProxyClass *proxy_class; 4285s # 4285s # gobject_class = G_OBJECT_CLASS (klass); 4285s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4285s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4285s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4285s # 4285s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4285s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4285s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4285s # 4285s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4285s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4285s # #endif 4285s # } 4285s # 4285s # static void 4285s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4285s # { 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_sync: 4285s # * @connection: A #GDBusConnection. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_sync ( 4285s # GDBusConnection *connection, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4285s # * @user_data: User data to pass to @callback. 4285s # * 4285s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4285s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4285s # */ 4285s # void 4285s # org_project_useful_interface_proxy_new_for_bus ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GAsyncReadyCallback callback, 4285s # gpointer user_data) 4285s # { 4285s # g_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); 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_finish: 4285s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_finish ( 4285s # GAsyncResult *res, 4285s # GError **error) 4285s # { 4285s # GObject *ret; 4285s # GObject *source_object; 4285s # source_object = g_async_result_get_source_object (res); 4285s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4285s # g_object_unref (source_object); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # /** 4285s # * org_project_useful_interface_proxy_new_for_bus_sync: 4285s # * @bus_type: A #GBusType. 4285s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4285s # * @name: A bus name (well-known or unique). 4285s # * @object_path: An object path. 4285s # * @cancellable: (nullable): A #GCancellable or %NULL. 4285s # * @error: Return location for error or %NULL 4285s # * 4285s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4285s # * 4285s # * The calling thread is blocked until a reply is received. 4285s # * 4285s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4285s # * 4285s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4285s # */ 4285s # OrgProjectUsefulInterface * 4285s # org_project_useful_interface_proxy_new_for_bus_sync ( 4285s # GBusType bus_type, 4285s # GDBusProxyFlags flags, 4285s # const gchar *name, 4285s # const gchar *object_path, 4285s # GCancellable *cancellable, 4285s # GError **error) 4285s # { 4285s # GInitable *ret; 4285s # 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); 4285s # if (ret != NULL) 4285s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4285s # else 4285s # return NULL; 4285s # } 4285s # 4285s # 4285s # /* ------------------------------------------------------------------------ */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeleton: 4285s # * 4285s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4285s # */ 4285s # 4285s # /** 4285s # * OrgProjectUsefulInterfaceSkeletonClass: 4285s # * @parent_class: The parent class. 4285s # * 4285s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4285s # */ 4285s # 4285s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4285s # { 4285s # GValue *properties; 4285s # GList *changed_properties; 4285s # GSource *changed_properties_idle_source; 4285s # GMainContext *context; 4285s # GMutex lock; 4285s # }; 4285s # 4285s # static void 4285s # _org_project_useful_interface_skeleton_handle_method_call ( 4285s # GDBusConnection *connection G_GNUC_UNUSED, 4285s # const gchar *sender G_GNUC_UNUSED, 4285s # const gchar *object_path G_GNUC_UNUSED, 4285s # const gchar *interface_name, 4285s # const gchar *method_name, 4285s # GVariant *parameters, 4285s # GDBusMethodInvocation *invocation, 4285s # gpointer user_data) 4285s # { 4285s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4285s # _ExtendedGDBusMethodInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # guint num_extra; 4286s # gsize n; 4286s # guint signal_id; 4286s # GValue return_value = G_VALUE_INIT; 4286s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4286s # g_assert (info != NULL); 4286s # num_params = g_variant_n_children (parameters); 4286s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4286s # n = 0; 4286s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[n++], skeleton); 4286s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4286s # g_value_set_object (¶mv[n++], invocation); 4286s # if (info->pass_fdlist) 4286s # { 4286s # #ifdef G_OS_UNIX 4286s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4286s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4286s # #else 4286s # g_assert_not_reached (); 4286s # #endif 4286s # } 4286s # g_variant_iter_init (&iter, parameters); 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4286s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4286s # if (!g_value_get_boolean (&return_value)) 4286s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4286s # g_value_unset (&return_value); 4286s # for (n = 0; n < num_params + num_extra; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static GVariant * 4286s # _org_project_useful_interface_skeleton_handle_get_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # GVariant *ret; 4286s # ret = NULL; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # g_value_init (&value, pspec->value_type); 4286s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4286s # g_value_unset (&value); 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _org_project_useful_interface_skeleton_handle_set_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GVariant *variant, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # gboolean ret; 4286s # ret = FALSE; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # if (info->use_gvariant) 4286s # g_value_set_variant (&value, variant); 4286s # else 4286s # g_dbus_gvariant_to_gvalue (variant, &value); 4286s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # g_value_unset (&value); 4286s # ret = TRUE; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4286s # { 4286s # _org_project_useful_interface_skeleton_handle_method_call, 4286s # _org_project_useful_interface_skeleton_handle_get_property, 4286s # _org_project_useful_interface_skeleton_handle_set_property, 4286s # {NULL} 4286s # }; 4286s # 4286s # static GDBusInterfaceInfo * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return org_project_useful_interface_interface_info (); 4286s # } 4286s # 4286s # static GDBusInterfaceVTable * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4286s # } 4286s # 4286s # static GVariant * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4286s # 4286s # GVariantBuilder builder; 4286s # guint n; 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4286s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #else 4286s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #endif 4286s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4286s # goto out; 4286s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4286s # { 4286s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4286s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4286s # { 4286s # GVariant *value; 4286s # 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); 4286s # if (value != NULL) 4286s # { 4286s # g_variant_take_ref (value); 4286s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4286s # g_variant_unref (value); 4286s # } 4286s # } 4286s # } 4286s # out: 4286s # return g_variant_builder_end (&builder); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_skeleton_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4286s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4286s # if (skeleton->priv->changed_properties_idle_source != NULL) 4286s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4286s # g_main_context_unref (skeleton->priv->context); 4286s # g_mutex_clear (&skeleton->priv->lock); 4286s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4286s # #else 4286s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4286s # #endif 4286s # 4286s # g_mutex_init (&skeleton->priv->lock); 4286s # skeleton->priv->context = g_main_context_ref_thread_default (); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusInterfaceSkeletonClass *skeleton_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4286s # 4286s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4286s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4286s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4286s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4286s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_skeleton_new: 4286s # * 4286s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_skeleton_new (void) 4286s # { 4286s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4286s # } 4286s # Error: 4286s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 4286s # gdbus-codegen: /usr/bin/gdbus-codegen 4286s # tmpdir: /tmp/tmpst2rphhm 4286s # /tmp/tmpst2rphhm/tmp2z72hpza.xml: 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmp2z72hpza.xml', '--output', '-', '--body'] 4286s # Return code: 0 4286s # Output: 4286s # /* 4286s # * This file is generated by gdbus-codegen, do not modify it. 4286s # * 4286s # * The license of this code is the same as for the D-Bus interface description 4286s # * it was derived from. Note that it links to GLib, so must comply with the 4286s # * LGPL linking clauses. 4286s # */ 4286s # 4286s # #ifdef HAVE_CONFIG_H 4286s # # include "config.h" 4286s # #endif 4286s # 4286s # #include 4286s # #ifdef G_OS_UNIX 4286s # # include 4286s # #endif 4286s # 4286s # #ifdef G_ENABLE_DEBUG 4286s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4286s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4286s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4286s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4286s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4286s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4286s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4286s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4286s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4286s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4286s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4286s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4286s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4286s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4286s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4286s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4286s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4286s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4286s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4286s # #else /* !G_ENABLE_DEBUG */ 4286s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4286s # * Do not access GValues directly in your code. Instead, use the 4286s # * g_value_get_*() functions 4286s # */ 4286s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4286s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4286s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4286s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4286s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4286s # #endif /* !G_ENABLE_DEBUG */ 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusArgInfo parent_struct; 4286s # gboolean use_gvariant; 4286s # } _ExtendedGDBusArgInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusMethodInfo parent_struct; 4286s # const gchar *signal_name; 4286s # gboolean pass_fdlist; 4286s # } _ExtendedGDBusMethodInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusSignalInfo parent_struct; 4286s # const gchar *signal_name; 4286s # } _ExtendedGDBusSignalInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusPropertyInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # guint use_gvariant : 1; 4286s # guint emits_changed_signal : 1; 4286s # } _ExtendedGDBusPropertyInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusInterfaceInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # } _ExtendedGDBusInterfaceInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # const _ExtendedGDBusPropertyInfo *info; 4286s # guint prop_id; 4286s # GValue orig_value; /* the value before the change */ 4286s # } ChangedProperty; 4286s # 4286s # static void 4286s # _changed_property_free (ChangedProperty *data) 4286s # { 4286s # g_value_unset (&data->orig_value); 4286s # g_free (data); 4286s # } 4286s # 4286s # static gboolean 4286s # _g_strv_equal0 (gchar **a, gchar **b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # guint n; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # if (g_strv_length (a) != g_strv_length (b)) 4286s # goto out; 4286s # for (n = 0; a[n] != NULL; n++) 4286s # if (g_strcmp0 (a[n], b[n]) != 0) 4286s # goto out; 4286s # ret = TRUE; 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _g_variant_equal0 (GVariant *a, GVariant *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # ret = g_variant_equal (a, b); 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # G_GNUC_UNUSED static gboolean 4286s # _g_value_equal (const GValue *a, const GValue *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4286s # switch (G_VALUE_TYPE (a)) 4286s # { 4286s # case G_TYPE_BOOLEAN: 4286s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4286s # break; 4286s # case G_TYPE_UCHAR: 4286s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4286s # break; 4286s # case G_TYPE_INT: 4286s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4286s # break; 4286s # case G_TYPE_UINT: 4286s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4286s # break; 4286s # case G_TYPE_INT64: 4286s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4286s # break; 4286s # case G_TYPE_UINT64: 4286s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4286s # break; 4286s # case G_TYPE_DOUBLE: 4286s # { 4286s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4286s # gdouble da = g_value_get_double (a); 4286s # gdouble db = g_value_get_double (b); 4286s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4286s # } 4286s # break; 4286s # case G_TYPE_STRING: 4286s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4286s # break; 4286s # case G_TYPE_VARIANT: 4286s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4286s # break; 4286s # default: 4286s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4286s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4286s # else 4286s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4286s # break; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static void 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint G_GNUC_UNUSED, 4286s # void *marshal_data) 4286s # { 4286s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (void *data1, 4286s # GDBusMethodInvocation *arg_method_invocation, 4286s # void *data2); 4286s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4286s # GCClosure *cc = (GCClosure*) closure; 4286s # void *data1, *data2; 4286s # gboolean v_return; 4286s # 4286s # g_return_if_fail (return_value != NULL); 4286s # g_return_if_fail (n_param_values == 2); 4286s # 4286s # if (G_CCLOSURE_SWAP_DATA (closure)) 4286s # { 4286s # data1 = closure->data; 4286s # data2 = g_value_peek_pointer (param_values + 0); 4286s # } 4286s # else 4286s # { 4286s # data1 = g_value_peek_pointer (param_values + 0); 4286s # data2 = closure->data; 4286s # } 4286s # 4286s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (marshal_data ? marshal_data : cc->callback); 4286s # 4286s # v_return = 4286s # callback (data1, 4286s # g_marshal_value_peek_object (param_values + 1), 4286s # data2); 4286s # 4286s # g_value_set_boolean (return_value, v_return); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ 4286s # * Code for interface org.project.UsefulInterface 4286s # * ------------------------------------------------------------------------ 4286s # */ 4286s # 4286s # /** 4286s # * SECTION:OrgProjectUsefulInterface 4286s # * @title: OrgProjectUsefulInterface 4286s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4286s # * 4286s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4286s # */ 4286s # 4286s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4286s # 4286s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "arg_b", 4286s # (gchar *) "b", 4286s # NULL 4286s # }, 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "SingleArgMethodB", 4286s # NULL, 4286s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 4286s # NULL 4286s # }, 4286s # "handle-single-arg-method-b", 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "org.project.UsefulInterface", 4286s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4286s # NULL, 4286s # NULL, 4286s # NULL 4286s # }, 4286s # "org-project-useful-interface", 4286s # }; 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_interface_info: 4286s # * 4286s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4286s # * 4286s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4286s # */ 4286s # GDBusInterfaceInfo * 4286s # org_project_useful_interface_interface_info (void) 4286s # { 4286s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_override_properties: 4286s # * @klass: The class structure for a #GObject derived class. 4286s # * @property_id_begin: The property id to assign to the first overridden property. 4286s # * 4286s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4286s # * The properties are overridden in the order they are defined. 4286s # * 4286s # * Returns: The last property id. 4286s # */ 4286s # guint 4286s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4286s # { 4286s # return property_id_begin - 1; 4286s # } 4286s # 4286s # 4286s # inline static void 4286s # org_project_useful_interface_method_marshal_single_arg_method_b ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint, 4286s # void *marshal_data) 4286s # { 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4286s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4286s # } 4286s # 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterface: 4286s # * 4286s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceIface: 4286s # * @parent_iface: The parent interface. 4286s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 4286s # * 4286s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4286s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4286s # 4286s # static void 4286s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4286s # { 4286s # /* GObject signals for incoming D-Bus method calls: */ 4286s # /** 4286s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: A #GDBusMethodInvocation. 4286s # * 4286s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 4286s # * 4286s # * 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. 4286s # * 4286s # * 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. 4286s # */ 4286s # g_signal_new ("handle-single-arg-method-b", 4286s # G_TYPE_FROM_INTERFACE (iface), 4286s # G_SIGNAL_RUN_LAST, 4286s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 4286s # g_signal_accumulator_true_handled, 4286s # NULL, 4286s # org_project_useful_interface_method_marshal_single_arg_method_b, 4286s # G_TYPE_BOOLEAN, 4286s # 1, 4286s # G_TYPE_DBUS_METHOD_INVOCATION); 4286s # 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_b: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 4286s # */ 4286s # void 4286s # org_project_useful_interface_call_single_arg_method_b ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodB", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # callback, 4286s # user_data); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_b_finish: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_b_finish ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # gboolean *out_arg_b, 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(b)", 4286s # out_arg_b); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_b_sync: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_b_sync ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # gboolean *out_arg_b, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodB", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(b)", 4286s # out_arg_b); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_complete_single_arg_method_b: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4286s # * @arg_b: Parameter to return. 4286s # * 4286s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodB() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4286s # * 4286s # * This method will free @invocation, you cannot use it afterwards. 4286s # */ 4286s # void 4286s # org_project_useful_interface_complete_single_arg_method_b ( 4286s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4286s # GDBusMethodInvocation *invocation, 4286s # gboolean arg_b) 4286s # { 4286s # g_dbus_method_invocation_return_value (invocation, 4286s # g_variant_new ("(b)", 4286s # arg_b)); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxy: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxyClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceProxyPrivate 4286s # { 4286s # GData *qdata; 4286s # }; 4286s # 4286s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_proxy_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4286s # g_datalist_clear (&proxy->priv->qdata); 4286s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # const GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4286s # const gchar *sender_name G_GNUC_UNUSED, 4286s # const gchar *signal_name, 4286s # GVariant *parameters) 4286s # { 4286s # _ExtendedGDBusSignalInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # gsize n; 4286s # guint signal_id; 4286s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4286s # if (info == NULL) 4286s # return; 4286s # num_params = g_variant_n_children (parameters); 4286s # paramv = g_new0 (GValue, num_params + 1); 4286s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[0], proxy); 4286s # g_variant_iter_init (&iter, parameters); 4286s # n = 1; 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_signal_emitv (paramv, signal_id, 0, NULL); 4286s # for (n = 0; n < num_params + 1; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4286s # GVariant *changed_properties, 4286s # const gchar *const *invalidated_properties) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4286s # guint n; 4286s # const gchar *key; 4286s # GVariantIter *iter; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # g_variant_get (changed_properties, "a{sv}", &iter); 4286s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4286s # g_datalist_remove_data (&proxy->priv->qdata, key); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # g_variant_iter_free (iter); 4286s # for (n = 0; invalidated_properties[n] != NULL; n++) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4286s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4286s # #else 4286s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4286s # #endif 4286s # 4286s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusProxyClass *proxy_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4286s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4286s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4286s # 4286s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4286s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4286s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_sync: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_sync ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new_for_bus ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_sync: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_sync ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeleton: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeletonClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4286s # { 4286s # GValue *properties; 4286s # GList *changed_properties; 4286s # GSource *changed_properties_idle_source; 4286s # GMainContext *context; 4286s # GMutex lock; 4286s # }; 4286s # 4286s # static void 4286s # _org_project_useful_interface_skeleton_handle_method_call ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name, 4286s # const gchar *method_name, 4286s # GVariant *parameters, 4286s # GDBusMethodInvocation *invocation, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # _ExtendedGDBusMethodInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # guint num_extra; 4286s # gsize n; 4286s # guint signal_id; 4286s # GValue return_value = G_VALUE_INIT; 4286s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4286s # g_assert (info != NULL); 4286s # num_params = g_variant_n_children (parameters); 4286s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4286s # n = 0; 4286s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[n++], skeleton); 4286s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4286s # g_value_set_object (¶mv[n++], invocation); 4286s # if (info->pass_fdlist) 4286s # { 4286s # #ifdef G_OS_UNIX 4286s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4286s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4286s # #else 4286s # g_assert_not_reached (); 4286s # #endif 4286s # } 4286s # g_variant_iter_init (&iter, parameters); 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4286s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4286s # if (!g_value_get_boolean (&return_value)) 4286s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4286s # g_value_unset (&return_value); 4286s # for (n = 0; n < num_params + num_extra; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static GVariant * 4286s # _org_project_useful_interface_skeleton_handle_get_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # GVariant *ret; 4286s # ret = NULL; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # g_value_init (&value, pspec->value_type); 4286s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4286s # g_value_unset (&value); 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _org_project_useful_interface_skeleton_handle_set_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GVariant *variant, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # gboolean ret; 4286s # ret = FALSE; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # if (info->use_gvariant) 4286s # g_value_set_variant (&value, variant); 4286s # else 4286s # g_dbus_gvariant_to_gvalue (variant, &value); 4286s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # g_value_unset (&value); 4286s # ret = TRUE; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4286s # { 4286s # _org_project_useful_interface_skeleton_handle_method_call, 4286s # _org_project_useful_interface_skeleton_handle_get_property, 4286s # _org_project_useful_interface_skeleton_handle_set_property, 4286s # {NULL} 4286s # }; 4286s # 4286s # static GDBusInterfaceInfo * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return org_project_useful_interface_interface_info (); 4286s # } 4286s # 4286s # static GDBusInterfaceVTable * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4286s # } 4286s # 4286s # static GVariant * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4286s # 4286s # GVariantBuilder builder; 4286s # guint n; 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4286s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #else 4286s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #endif 4286s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4286s # goto out; 4286s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4286s # { 4286s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4286s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4286s # { 4286s # GVariant *value; 4286s # 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); 4286s # if (value != NULL) 4286s # { 4286s # g_variant_take_ref (value); 4286s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4286s # g_variant_unref (value); 4286s # } 4286s # } 4286s # } 4286s # out: 4286s # return g_variant_builder_end (&builder); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_skeleton_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4286s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4286s # if (skeleton->priv->changed_properties_idle_source != NULL) 4286s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4286s # g_main_context_unref (skeleton->priv->context); 4286s # g_mutex_clear (&skeleton->priv->lock); 4286s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4286s # #else 4286s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4286s # #endif 4286s # 4286s # g_mutex_init (&skeleton->priv->lock); 4286s # skeleton->priv->context = g_main_context_ref_thread_default (); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusInterfaceSkeletonClass *skeleton_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4286s # 4286s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4286s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4286s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4286s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4286s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_skeleton_new: 4286s # * 4286s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_skeleton_new (void) 4286s # { 4286s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4286s # } 4286s # Error: 4286s # 4286s # /tmp/tmpst2rphhm/tmpsevq5iyy.xml: 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpsevq5iyy.xml', '--output', '-', '--body'] 4286s # Return code: 0 4286s # Output: 4286s # /* 4286s # * This file is generated by gdbus-codegen, do not modify it. 4286s # * 4286s # * The license of this code is the same as for the D-Bus interface description 4286s # * it was derived from. Note that it links to GLib, so must comply with the 4286s # * LGPL linking clauses. 4286s # */ 4286s # 4286s # #ifdef HAVE_CONFIG_H 4286s # # include "config.h" 4286s # #endif 4286s # 4286s # #include 4286s # #ifdef G_OS_UNIX 4286s # # include 4286s # #endif 4286s # 4286s # #ifdef G_ENABLE_DEBUG 4286s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4286s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4286s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4286s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4286s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4286s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4286s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4286s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4286s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4286s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4286s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4286s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4286s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4286s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4286s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4286s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4286s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4286s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4286s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4286s # #else /* !G_ENABLE_DEBUG */ 4286s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4286s # * Do not access GValues directly in your code. Instead, use the 4286s # * g_value_get_*() functions 4286s # */ 4286s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4286s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4286s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4286s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4286s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4286s # #endif /* !G_ENABLE_DEBUG */ 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusArgInfo parent_struct; 4286s # gboolean use_gvariant; 4286s # } _ExtendedGDBusArgInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusMethodInfo parent_struct; 4286s # const gchar *signal_name; 4286s # gboolean pass_fdlist; 4286s # } _ExtendedGDBusMethodInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusSignalInfo parent_struct; 4286s # const gchar *signal_name; 4286s # } _ExtendedGDBusSignalInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusPropertyInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # guint use_gvariant : 1; 4286s # guint emits_changed_signal : 1; 4286s # } _ExtendedGDBusPropertyInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusInterfaceInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # } _ExtendedGDBusInterfaceInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # const _ExtendedGDBusPropertyInfo *info; 4286s # guint prop_id; 4286s # GValue orig_value; /* the value before the change */ 4286s # } ChangedProperty; 4286s # 4286s # static void 4286s # _changed_property_free (ChangedProperty *data) 4286s # { 4286s # g_value_unset (&data->orig_value); 4286s # g_free (data); 4286s # } 4286s # 4286s # static gboolean 4286s # _g_strv_equal0 (gchar **a, gchar **b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # guint n; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # if (g_strv_length (a) != g_strv_length (b)) 4286s # goto out; 4286s # for (n = 0; a[n] != NULL; n++) 4286s # if (g_strcmp0 (a[n], b[n]) != 0) 4286s # goto out; 4286s # ret = TRUE; 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _g_variant_equal0 (GVariant *a, GVariant *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # ret = g_variant_equal (a, b); 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # G_GNUC_UNUSED static gboolean 4286s # _g_value_equal (const GValue *a, const GValue *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4286s # switch (G_VALUE_TYPE (a)) 4286s # { 4286s # case G_TYPE_BOOLEAN: 4286s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4286s # break; 4286s # case G_TYPE_UCHAR: 4286s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4286s # break; 4286s # case G_TYPE_INT: 4286s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4286s # break; 4286s # case G_TYPE_UINT: 4286s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4286s # break; 4286s # case G_TYPE_INT64: 4286s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4286s # break; 4286s # case G_TYPE_UINT64: 4286s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4286s # break; 4286s # case G_TYPE_DOUBLE: 4286s # { 4286s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4286s # gdouble da = g_value_get_double (a); 4286s # gdouble db = g_value_get_double (b); 4286s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4286s # } 4286s # break; 4286s # case G_TYPE_STRING: 4286s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4286s # break; 4286s # case G_TYPE_VARIANT: 4286s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4286s # break; 4286s # default: 4286s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4286s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4286s # else 4286s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4286s # break; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static void 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint G_GNUC_UNUSED, 4286s # void *marshal_data) 4286s # { 4286s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (void *data1, 4286s # GDBusMethodInvocation *arg_method_invocation, 4286s # void *data2); 4286s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4286s # GCClosure *cc = (GCClosure*) closure; 4286s # void *data1, *data2; 4286s # gboolean v_return; 4286s # 4286s # g_return_if_fail (return_value != NULL); 4286s # g_return_if_fail (n_param_values == 2); 4286s # 4286s # if (G_CCLOSURE_SWAP_DATA (closure)) 4286s # { 4286s # data1 = closure->data; 4286s # data2 = g_value_peek_pointer (param_values + 0); 4286s # } 4286s # else 4286s # { 4286s # data1 = g_value_peek_pointer (param_values + 0); 4286s # data2 = closure->data; 4286s # } 4286s # 4286s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (marshal_data ? marshal_data : cc->callback); 4286s # 4286s # v_return = 4286s # callback (data1, 4286s # g_marshal_value_peek_object (param_values + 1), 4286s # data2); 4286s # 4286s # g_value_set_boolean (return_value, v_return); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ 4286s # * Code for interface org.project.UsefulInterface 4286s # * ------------------------------------------------------------------------ 4286s # */ 4286s # 4286s # /** 4286s # * SECTION:OrgProjectUsefulInterface 4286s # * @title: OrgProjectUsefulInterface 4286s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4286s # * 4286s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4286s # */ 4286s # 4286s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4286s # 4286s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "arg_y", 4286s # (gchar *) "y", 4286s # NULL 4286s # }, 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "SingleArgMethodY", 4286s # NULL, 4286s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 4286s # NULL 4286s # }, 4286s # "handle-single-arg-method-y", 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "org.project.UsefulInterface", 4286s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4286s # NULL, 4286s # NULL, 4286s # NULL 4286s # }, 4286s # "org-project-useful-interface", 4286s # }; 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_interface_info: 4286s # * 4286s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4286s # * 4286s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4286s # */ 4286s # GDBusInterfaceInfo * 4286s # org_project_useful_interface_interface_info (void) 4286s # { 4286s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_override_properties: 4286s # * @klass: The class structure for a #GObject derived class. 4286s # * @property_id_begin: The property id to assign to the first overridden property. 4286s # * 4286s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4286s # * The properties are overridden in the order they are defined. 4286s # * 4286s # * Returns: The last property id. 4286s # */ 4286s # guint 4286s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4286s # { 4286s # return property_id_begin - 1; 4286s # } 4286s # 4286s # 4286s # inline static void 4286s # org_project_useful_interface_method_marshal_single_arg_method_y ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint, 4286s # void *marshal_data) 4286s # { 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4286s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4286s # } 4286s # 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterface: 4286s # * 4286s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceIface: 4286s # * @parent_iface: The parent interface. 4286s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 4286s # * 4286s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4286s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4286s # 4286s # static void 4286s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4286s # { 4286s # /* GObject signals for incoming D-Bus method calls: */ 4286s # /** 4286s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: A #GDBusMethodInvocation. 4286s # * 4286s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 4286s # * 4286s # * 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. 4286s # * 4286s # * 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. 4286s # */ 4286s # g_signal_new ("handle-single-arg-method-y", 4286s # G_TYPE_FROM_INTERFACE (iface), 4286s # G_SIGNAL_RUN_LAST, 4286s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 4286s # g_signal_accumulator_true_handled, 4286s # NULL, 4286s # org_project_useful_interface_method_marshal_single_arg_method_y, 4286s # G_TYPE_BOOLEAN, 4286s # 1, 4286s # G_TYPE_DBUS_METHOD_INVOCATION); 4286s # 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_y: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 4286s # */ 4286s # void 4286s # org_project_useful_interface_call_single_arg_method_y ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodY", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # callback, 4286s # user_data); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_y_finish: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_y_finish ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # guchar *out_arg_y, 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(y)", 4286s # out_arg_y); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_y_sync: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_y_sync ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # guchar *out_arg_y, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodY", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(y)", 4286s # out_arg_y); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_complete_single_arg_method_y: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4286s # * @arg_y: Parameter to return. 4286s # * 4286s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodY() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4286s # * 4286s # * This method will free @invocation, you cannot use it afterwards. 4286s # */ 4286s # void 4286s # org_project_useful_interface_complete_single_arg_method_y ( 4286s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4286s # GDBusMethodInvocation *invocation, 4286s # guchar arg_y) 4286s # { 4286s # g_dbus_method_invocation_return_value (invocation, 4286s # g_variant_new ("(y)", 4286s # arg_y)); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxy: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxyClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceProxyPrivate 4286s # { 4286s # GData *qdata; 4286s # }; 4286s # 4286s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_proxy_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4286s # g_datalist_clear (&proxy->priv->qdata); 4286s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # const GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4286s # const gchar *sender_name G_GNUC_UNUSED, 4286s # const gchar *signal_name, 4286s # GVariant *parameters) 4286s # { 4286s # _ExtendedGDBusSignalInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # gsize n; 4286s # guint signal_id; 4286s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4286s # if (info == NULL) 4286s # return; 4286s # num_params = g_variant_n_children (parameters); 4286s # paramv = g_new0 (GValue, num_params + 1); 4286s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[0], proxy); 4286s # g_variant_iter_init (&iter, parameters); 4286s # n = 1; 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_signal_emitv (paramv, signal_id, 0, NULL); 4286s # for (n = 0; n < num_params + 1; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4286s # GVariant *changed_properties, 4286s # const gchar *const *invalidated_properties) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4286s # guint n; 4286s # const gchar *key; 4286s # GVariantIter *iter; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # g_variant_get (changed_properties, "a{sv}", &iter); 4286s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4286s # g_datalist_remove_data (&proxy->priv->qdata, key); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # g_variant_iter_free (iter); 4286s # for (n = 0; invalidated_properties[n] != NULL; n++) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4286s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4286s # #else 4286s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4286s # #endif 4286s # 4286s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusProxyClass *proxy_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4286s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4286s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4286s # 4286s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4286s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4286s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_sync: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_sync ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new_for_bus ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_sync: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_sync ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeleton: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeletonClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4286s # { 4286s # GValue *properties; 4286s # GList *changed_properties; 4286s # GSource *changed_properties_idle_source; 4286s # GMainContext *context; 4286s # GMutex lock; 4286s # }; 4286s # 4286s # static void 4286s # _org_project_useful_interface_skeleton_handle_method_call ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name, 4286s # const gchar *method_name, 4286s # GVariant *parameters, 4286s # GDBusMethodInvocation *invocation, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # _ExtendedGDBusMethodInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # guint num_extra; 4286s # gsize n; 4286s # guint signal_id; 4286s # GValue return_value = G_VALUE_INIT; 4286s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4286s # g_assert (info != NULL); 4286s # num_params = g_variant_n_children (parameters); 4286s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4286s # n = 0; 4286s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[n++], skeleton); 4286s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4286s # g_value_set_object (¶mv[n++], invocation); 4286s # if (info->pass_fdlist) 4286s # { 4286s # #ifdef G_OS_UNIX 4286s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4286s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4286s # #else 4286s # g_assert_not_reached (); 4286s # #endif 4286s # } 4286s # g_variant_iter_init (&iter, parameters); 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4286s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4286s # if (!g_value_get_boolean (&return_value)) 4286s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4286s # g_value_unset (&return_value); 4286s # for (n = 0; n < num_params + num_extra; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static GVariant * 4286s # _org_project_useful_interface_skeleton_handle_get_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # GVariant *ret; 4286s # ret = NULL; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # g_value_init (&value, pspec->value_type); 4286s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4286s # g_value_unset (&value); 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _org_project_useful_interface_skeleton_handle_set_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GVariant *variant, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # gboolean ret; 4286s # ret = FALSE; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # if (info->use_gvariant) 4286s # g_value_set_variant (&value, variant); 4286s # else 4286s # g_dbus_gvariant_to_gvalue (variant, &value); 4286s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # g_value_unset (&value); 4286s # ret = TRUE; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4286s # { 4286s # _org_project_useful_interface_skeleton_handle_method_call, 4286s # _org_project_useful_interface_skeleton_handle_get_property, 4286s # _org_project_useful_interface_skeleton_handle_set_property, 4286s # {NULL} 4286s # }; 4286s # 4286s # static GDBusInterfaceInfo * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return org_project_useful_interface_interface_info (); 4286s # } 4286s # 4286s # static GDBusInterfaceVTable * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4286s # } 4286s # 4286s # static GVariant * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4286s # 4286s # GVariantBuilder builder; 4286s # guint n; 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4286s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #else 4286s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #endif 4286s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4286s # goto out; 4286s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4286s # { 4286s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4286s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4286s # { 4286s # GVariant *value; 4286s # 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); 4286s # if (value != NULL) 4286s # { 4286s # g_variant_take_ref (value); 4286s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4286s # g_variant_unref (value); 4286s # } 4286s # } 4286s # } 4286s # out: 4286s # return g_variant_builder_end (&builder); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_skeleton_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4286s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4286s # if (skeleton->priv->changed_properties_idle_source != NULL) 4286s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4286s # g_main_context_unref (skeleton->priv->context); 4286s # g_mutex_clear (&skeleton->priv->lock); 4286s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4286s # #else 4286s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4286s # #endif 4286s # 4286s # g_mutex_init (&skeleton->priv->lock); 4286s # skeleton->priv->context = g_main_context_ref_thread_default (); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusInterfaceSkeletonClass *skeleton_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4286s # 4286s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4286s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4286s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4286s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4286s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_skeleton_new: 4286s # * 4286s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_skeleton_new (void) 4286s # { 4286s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4286s # } 4286s # Error: 4286s # 4286s # /tmp/tmpst2rphhm/tmp4aga1h8r.xml: 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmp4aga1h8r.xml', '--output', '-', '--body'] 4286s # Return code: 0 4286s # Output: 4286s # /* 4286s # * This file is generated by gdbus-codegen, do not modify it. 4286s # * 4286s # * The license of this code is the same as for the D-Bus interface description 4286s # * it was derived from. Note that it links to GLib, so must comply with the 4286s # * LGPL linking clauses. 4286s # */ 4286s # 4286s # #ifdef HAVE_CONFIG_H 4286s # # include "config.h" 4286s # #endif 4286s # 4286s # #include 4286s # #ifdef G_OS_UNIX 4286s # # include 4286s # #endif 4286s # 4286s # #ifdef G_ENABLE_DEBUG 4286s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4286s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4286s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4286s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4286s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4286s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4286s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4286s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4286s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4286s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4286s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4286s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4286s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4286s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4286s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4286s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4286s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4286s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4286s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4286s # #else /* !G_ENABLE_DEBUG */ 4286s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4286s # * Do not access GValues directly in your code. Instead, use the 4286s # * g_value_get_*() functions 4286s # */ 4286s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4286s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4286s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4286s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4286s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4286s # #endif /* !G_ENABLE_DEBUG */ 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusArgInfo parent_struct; 4286s # gboolean use_gvariant; 4286s # } _ExtendedGDBusArgInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusMethodInfo parent_struct; 4286s # const gchar *signal_name; 4286s # gboolean pass_fdlist; 4286s # } _ExtendedGDBusMethodInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusSignalInfo parent_struct; 4286s # const gchar *signal_name; 4286s # } _ExtendedGDBusSignalInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusPropertyInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # guint use_gvariant : 1; 4286s # guint emits_changed_signal : 1; 4286s # } _ExtendedGDBusPropertyInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusInterfaceInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # } _ExtendedGDBusInterfaceInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # const _ExtendedGDBusPropertyInfo *info; 4286s # guint prop_id; 4286s # GValue orig_value; /* the value before the change */ 4286s # } ChangedProperty; 4286s # 4286s # static void 4286s # _changed_property_free (ChangedProperty *data) 4286s # { 4286s # g_value_unset (&data->orig_value); 4286s # g_free (data); 4286s # } 4286s # 4286s # static gboolean 4286s # _g_strv_equal0 (gchar **a, gchar **b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # guint n; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # if (g_strv_length (a) != g_strv_length (b)) 4286s # goto out; 4286s # for (n = 0; a[n] != NULL; n++) 4286s # if (g_strcmp0 (a[n], b[n]) != 0) 4286s # goto out; 4286s # ret = TRUE; 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _g_variant_equal0 (GVariant *a, GVariant *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # ret = g_variant_equal (a, b); 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # G_GNUC_UNUSED static gboolean 4286s # _g_value_equal (const GValue *a, const GValue *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4286s # switch (G_VALUE_TYPE (a)) 4286s # { 4286s # case G_TYPE_BOOLEAN: 4286s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4286s # break; 4286s # case G_TYPE_UCHAR: 4286s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4286s # break; 4286s # case G_TYPE_INT: 4286s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4286s # break; 4286s # case G_TYPE_UINT: 4286s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4286s # break; 4286s # case G_TYPE_INT64: 4286s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4286s # break; 4286s # case G_TYPE_UINT64: 4286s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4286s # break; 4286s # case G_TYPE_DOUBLE: 4286s # { 4286s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4286s # gdouble da = g_value_get_double (a); 4286s # gdouble db = g_value_get_double (b); 4286s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4286s # } 4286s # break; 4286s # case G_TYPE_STRING: 4286s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4286s # break; 4286s # case G_TYPE_VARIANT: 4286s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4286s # break; 4286s # default: 4286s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4286s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4286s # else 4286s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4286s # break; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static void 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint G_GNUC_UNUSED, 4286s # void *marshal_data) 4286s # { 4286s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (void *data1, 4286s # GDBusMethodInvocation *arg_method_invocation, 4286s # void *data2); 4286s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4286s # GCClosure *cc = (GCClosure*) closure; 4286s # void *data1, *data2; 4286s # gboolean v_return; 4286s # 4286s # g_return_if_fail (return_value != NULL); 4286s # g_return_if_fail (n_param_values == 2); 4286s # 4286s # if (G_CCLOSURE_SWAP_DATA (closure)) 4286s # { 4286s # data1 = closure->data; 4286s # data2 = g_value_peek_pointer (param_values + 0); 4286s # } 4286s # else 4286s # { 4286s # data1 = g_value_peek_pointer (param_values + 0); 4286s # data2 = closure->data; 4286s # } 4286s # 4286s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (marshal_data ? marshal_data : cc->callback); 4286s # 4286s # v_return = 4286s # callback (data1, 4286s # g_marshal_value_peek_object (param_values + 1), 4286s # data2); 4286s # 4286s # g_value_set_boolean (return_value, v_return); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ 4286s # * Code for interface org.project.UsefulInterface 4286s # * ------------------------------------------------------------------------ 4286s # */ 4286s # 4286s # /** 4286s # * SECTION:OrgProjectUsefulInterface 4286s # * @title: OrgProjectUsefulInterface 4286s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4286s # * 4286s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4286s # */ 4286s # 4286s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4286s # 4286s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "arg_n", 4286s # (gchar *) "n", 4286s # NULL 4286s # }, 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "SingleArgMethodN", 4286s # NULL, 4286s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 4286s # NULL 4286s # }, 4286s # "handle-single-arg-method-n", 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "org.project.UsefulInterface", 4286s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4286s # NULL, 4286s # NULL, 4286s # NULL 4286s # }, 4286s # "org-project-useful-interface", 4286s # }; 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_interface_info: 4286s # * 4286s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4286s # * 4286s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4286s # */ 4286s # GDBusInterfaceInfo * 4286s # org_project_useful_interface_interface_info (void) 4286s # { 4286s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_override_properties: 4286s # * @klass: The class structure for a #GObject derived class. 4286s # * @property_id_begin: The property id to assign to the first overridden property. 4286s # * 4286s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4286s # * The properties are overridden in the order they are defined. 4286s # * 4286s # * Returns: The last property id. 4286s # */ 4286s # guint 4286s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4286s # { 4286s # return property_id_begin - 1; 4286s # } 4286s # 4286s # 4286s # inline static void 4286s # org_project_useful_interface_method_marshal_single_arg_method_n ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint, 4286s # void *marshal_data) 4286s # { 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4286s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4286s # } 4286s # 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterface: 4286s # * 4286s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceIface: 4286s # * @parent_iface: The parent interface. 4286s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 4286s # * 4286s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4286s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4286s # 4286s # static void 4286s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4286s # { 4286s # /* GObject signals for incoming D-Bus method calls: */ 4286s # /** 4286s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: A #GDBusMethodInvocation. 4286s # * 4286s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 4286s # * 4286s # * 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. 4286s # * 4286s # * 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. 4286s # */ 4286s # g_signal_new ("handle-single-arg-method-n", 4286s # G_TYPE_FROM_INTERFACE (iface), 4286s # G_SIGNAL_RUN_LAST, 4286s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 4286s # g_signal_accumulator_true_handled, 4286s # NULL, 4286s # org_project_useful_interface_method_marshal_single_arg_method_n, 4286s # G_TYPE_BOOLEAN, 4286s # 1, 4286s # G_TYPE_DBUS_METHOD_INVOCATION); 4286s # 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_n: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 4286s # */ 4286s # void 4286s # org_project_useful_interface_call_single_arg_method_n ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodN", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # callback, 4286s # user_data); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_n_finish: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_n_finish ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # gint16 *out_arg_n, 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(n)", 4286s # out_arg_n); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_n_sync: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_n_sync ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # gint16 *out_arg_n, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodN", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(n)", 4286s # out_arg_n); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_complete_single_arg_method_n: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4286s # * @arg_n: Parameter to return. 4286s # * 4286s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodN() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4286s # * 4286s # * This method will free @invocation, you cannot use it afterwards. 4286s # */ 4286s # void 4286s # org_project_useful_interface_complete_single_arg_method_n ( 4286s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4286s # GDBusMethodInvocation *invocation, 4286s # gint16 arg_n) 4286s # { 4286s # g_dbus_method_invocation_return_value (invocation, 4286s # g_variant_new ("(n)", 4286s # arg_n)); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxy: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxyClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceProxyPrivate 4286s # { 4286s # GData *qdata; 4286s # }; 4286s # 4286s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_proxy_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4286s # g_datalist_clear (&proxy->priv->qdata); 4286s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # const GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4286s # const gchar *sender_name G_GNUC_UNUSED, 4286s # const gchar *signal_name, 4286s # GVariant *parameters) 4286s # { 4286s # _ExtendedGDBusSignalInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # gsize n; 4286s # guint signal_id; 4286s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4286s # if (info == NULL) 4286s # return; 4286s # num_params = g_variant_n_children (parameters); 4286s # paramv = g_new0 (GValue, num_params + 1); 4286s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[0], proxy); 4286s # g_variant_iter_init (&iter, parameters); 4286s # n = 1; 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_signal_emitv (paramv, signal_id, 0, NULL); 4286s # for (n = 0; n < num_params + 1; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4286s # GVariant *changed_properties, 4286s # const gchar *const *invalidated_properties) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4286s # guint n; 4286s # const gchar *key; 4286s # GVariantIter *iter; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # g_variant_get (changed_properties, "a{sv}", &iter); 4286s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4286s # g_datalist_remove_data (&proxy->priv->qdata, key); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # g_variant_iter_free (iter); 4286s # for (n = 0; invalidated_properties[n] != NULL; n++) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4286s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4286s # #else 4286s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4286s # #endif 4286s # 4286s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusProxyClass *proxy_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4286s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4286s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4286s # 4286s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4286s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4286s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_sync: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_sync ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new_for_bus ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_sync: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_sync ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeleton: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeletonClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4286s # { 4286s # GValue *properties; 4286s # GList *changed_properties; 4286s # GSource *changed_properties_idle_source; 4286s # GMainContext *context; 4286s # GMutex lock; 4286s # }; 4286s # 4286s # static void 4286s # _org_project_useful_interface_skeleton_handle_method_call ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name, 4286s # const gchar *method_name, 4286s # GVariant *parameters, 4286s # GDBusMethodInvocation *invocation, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # _ExtendedGDBusMethodInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # guint num_extra; 4286s # gsize n; 4286s # guint signal_id; 4286s # GValue return_value = G_VALUE_INIT; 4286s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4286s # g_assert (info != NULL); 4286s # num_params = g_variant_n_children (parameters); 4286s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4286s # n = 0; 4286s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[n++], skeleton); 4286s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4286s # g_value_set_object (¶mv[n++], invocation); 4286s # if (info->pass_fdlist) 4286s # { 4286s # #ifdef G_OS_UNIX 4286s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4286s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4286s # #else 4286s # g_assert_not_reached (); 4286s # #endif 4286s # } 4286s # g_variant_iter_init (&iter, parameters); 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4286s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4286s # if (!g_value_get_boolean (&return_value)) 4286s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4286s # g_value_unset (&return_value); 4286s # for (n = 0; n < num_params + num_extra; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static GVariant * 4286s # _org_project_useful_interface_skeleton_handle_get_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # GVariant *ret; 4286s # ret = NULL; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # g_value_init (&value, pspec->value_type); 4286s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4286s # g_value_unset (&value); 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _org_project_useful_interface_skeleton_handle_set_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GVariant *variant, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # gboolean ret; 4286s # ret = FALSE; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # if (info->use_gvariant) 4286s # g_value_set_variant (&value, variant); 4286s # else 4286s # g_dbus_gvariant_to_gvalue (variant, &value); 4286s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # g_value_unset (&value); 4286s # ret = TRUE; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4286s # { 4286s # _org_project_useful_interface_skeleton_handle_method_call, 4286s # _org_project_useful_interface_skeleton_handle_get_property, 4286s # _org_project_useful_interface_skeleton_handle_set_property, 4286s # {NULL} 4286s # }; 4286s # 4286s # static GDBusInterfaceInfo * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return org_project_useful_interface_interface_info (); 4286s # } 4286s # 4286s # static GDBusInterfaceVTable * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4286s # } 4286s # 4286s # static GVariant * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4286s # 4286s # GVariantBuilder builder; 4286s # guint n; 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4286s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #else 4286s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #endif 4286s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4286s # goto out; 4286s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4286s # { 4286s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4286s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4286s # { 4286s # GVariant *value; 4286s # 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); 4286s # if (value != NULL) 4286s # { 4286s # g_variant_take_ref (value); 4286s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4286s # g_variant_unref (value); 4286s # } 4286s # } 4286s # } 4286s # out: 4286s # return g_variant_builder_end (&builder); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_skeleton_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4286s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4286s # if (skeleton->priv->changed_properties_idle_source != NULL) 4286s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4286s # g_main_context_unref (skeleton->priv->context); 4286s # g_mutex_clear (&skeleton->priv->lock); 4286s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4286s # #else 4286s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4286s # #endif 4286s # 4286s # g_mutex_init (&skeleton->priv->lock); 4286s # skeleton->priv->context = g_main_context_ref_thread_default (); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusInterfaceSkeletonClass *skeleton_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4286s # 4286s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4286s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4286s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4286s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4286s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_skeleton_new: 4286s # * 4286s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_skeleton_new (void) 4286s # { 4286s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4286s # } 4286s # Error: 4286s # 4286s # /tmp/tmpst2rphhm/tmpenktp8t0.xml: 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpenktp8t0.xml', '--output', '-', '--body'] 4286s # Return code: 0 4286s # Output: 4286s # /* 4286s # * This file is generated by gdbus-codegen, do not modify it. 4286s # * 4286s # * The license of this code is the same as for the D-Bus interface description 4286s # * it was derived from. Note that it links to GLib, so must comply with the 4286s # * LGPL linking clauses. 4286s # */ 4286s # 4286s # #ifdef HAVE_CONFIG_H 4286s # # include "config.h" 4286s # #endif 4286s # 4286s # #include 4286s # #ifdef G_OS_UNIX 4286s # # include 4286s # #endif 4286s # 4286s # #ifdef G_ENABLE_DEBUG 4286s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4286s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4286s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4286s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4286s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4286s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4286s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4286s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4286s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4286s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4286s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4286s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4286s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4286s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4286s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4286s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4286s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4286s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4286s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4286s # #else /* !G_ENABLE_DEBUG */ 4286s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4286s # * Do not access GValues directly in your code. Instead, use the 4286s # * g_value_get_*() functions 4286s # */ 4286s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4286s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4286s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4286s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4286s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4286s # #endif /* !G_ENABLE_DEBUG */ 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusArgInfo parent_struct; 4286s # gboolean use_gvariant; 4286s # } _ExtendedGDBusArgInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusMethodInfo parent_struct; 4286s # const gchar *signal_name; 4286s # gboolean pass_fdlist; 4286s # } _ExtendedGDBusMethodInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusSignalInfo parent_struct; 4286s # const gchar *signal_name; 4286s # } _ExtendedGDBusSignalInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusPropertyInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # guint use_gvariant : 1; 4286s # guint emits_changed_signal : 1; 4286s # } _ExtendedGDBusPropertyInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusInterfaceInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # } _ExtendedGDBusInterfaceInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # const _ExtendedGDBusPropertyInfo *info; 4286s # guint prop_id; 4286s # GValue orig_value; /* the value before the change */ 4286s # } ChangedProperty; 4286s # 4286s # static void 4286s # _changed_property_free (ChangedProperty *data) 4286s # { 4286s # g_value_unset (&data->orig_value); 4286s # g_free (data); 4286s # } 4286s # 4286s # static gboolean 4286s # _g_strv_equal0 (gchar **a, gchar **b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # guint n; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # if (g_strv_length (a) != g_strv_length (b)) 4286s # goto out; 4286s # for (n = 0; a[n] != NULL; n++) 4286s # if (g_strcmp0 (a[n], b[n]) != 0) 4286s # goto out; 4286s # ret = TRUE; 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _g_variant_equal0 (GVariant *a, GVariant *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # ret = g_variant_equal (a, b); 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # G_GNUC_UNUSED static gboolean 4286s # _g_value_equal (const GValue *a, const GValue *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4286s # switch (G_VALUE_TYPE (a)) 4286s # { 4286s # case G_TYPE_BOOLEAN: 4286s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4286s # break; 4286s # case G_TYPE_UCHAR: 4286s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4286s # break; 4286s # case G_TYPE_INT: 4286s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4286s # break; 4286s # case G_TYPE_UINT: 4286s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4286s # break; 4286s # case G_TYPE_INT64: 4286s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4286s # break; 4286s # case G_TYPE_UINT64: 4286s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4286s # break; 4286s # case G_TYPE_DOUBLE: 4286s # { 4286s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4286s # gdouble da = g_value_get_double (a); 4286s # gdouble db = g_value_get_double (b); 4286s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4286s # } 4286s # break; 4286s # case G_TYPE_STRING: 4286s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4286s # break; 4286s # case G_TYPE_VARIANT: 4286s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4286s # break; 4286s # default: 4286s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4286s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4286s # else 4286s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4286s # break; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static void 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint G_GNUC_UNUSED, 4286s # void *marshal_data) 4286s # { 4286s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (void *data1, 4286s # GDBusMethodInvocation *arg_method_invocation, 4286s # void *data2); 4286s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4286s # GCClosure *cc = (GCClosure*) closure; 4286s # void *data1, *data2; 4286s # gboolean v_return; 4286s # 4286s # g_return_if_fail (return_value != NULL); 4286s # g_return_if_fail (n_param_values == 2); 4286s # 4286s # if (G_CCLOSURE_SWAP_DATA (closure)) 4286s # { 4286s # data1 = closure->data; 4286s # data2 = g_value_peek_pointer (param_values + 0); 4286s # } 4286s # else 4286s # { 4286s # data1 = g_value_peek_pointer (param_values + 0); 4286s # data2 = closure->data; 4286s # } 4286s # 4286s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (marshal_data ? marshal_data : cc->callback); 4286s # 4286s # v_return = 4286s # callback (data1, 4286s # g_marshal_value_peek_object (param_values + 1), 4286s # data2); 4286s # 4286s # g_value_set_boolean (return_value, v_return); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ 4286s # * Code for interface org.project.UsefulInterface 4286s # * ------------------------------------------------------------------------ 4286s # */ 4286s # 4286s # /** 4286s # * SECTION:OrgProjectUsefulInterface 4286s # * @title: OrgProjectUsefulInterface 4286s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4286s # * 4286s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4286s # */ 4286s # 4286s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4286s # 4286s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "arg_q", 4286s # (gchar *) "q", 4286s # NULL 4286s # }, 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "SingleArgMethodQ", 4286s # NULL, 4286s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 4286s # NULL 4286s # }, 4286s # "handle-single-arg-method-q", 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "org.project.UsefulInterface", 4286s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4286s # NULL, 4286s # NULL, 4286s # NULL 4286s # }, 4286s # "org-project-useful-interface", 4286s # }; 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_interface_info: 4286s # * 4286s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4286s # * 4286s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4286s # */ 4286s # GDBusInterfaceInfo * 4286s # org_project_useful_interface_interface_info (void) 4286s # { 4286s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_override_properties: 4286s # * @klass: The class structure for a #GObject derived class. 4286s # * @property_id_begin: The property id to assign to the first overridden property. 4286s # * 4286s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4286s # * The properties are overridden in the order they are defined. 4286s # * 4286s # * Returns: The last property id. 4286s # */ 4286s # guint 4286s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4286s # { 4286s # return property_id_begin - 1; 4286s # } 4286s # 4286s # 4286s # inline static void 4286s # org_project_useful_interface_method_marshal_single_arg_method_q ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint, 4286s # void *marshal_data) 4286s # { 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4286s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4286s # } 4286s # 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterface: 4286s # * 4286s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceIface: 4286s # * @parent_iface: The parent interface. 4286s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 4286s # * 4286s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4286s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4286s # 4286s # static void 4286s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4286s # { 4286s # /* GObject signals for incoming D-Bus method calls: */ 4286s # /** 4286s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: A #GDBusMethodInvocation. 4286s # * 4286s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 4286s # * 4286s # * 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. 4286s # * 4286s # * 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. 4286s # */ 4286s # g_signal_new ("handle-single-arg-method-q", 4286s # G_TYPE_FROM_INTERFACE (iface), 4286s # G_SIGNAL_RUN_LAST, 4286s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 4286s # g_signal_accumulator_true_handled, 4286s # NULL, 4286s # org_project_useful_interface_method_marshal_single_arg_method_q, 4286s # G_TYPE_BOOLEAN, 4286s # 1, 4286s # G_TYPE_DBUS_METHOD_INVOCATION); 4286s # 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_q: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 4286s # */ 4286s # void 4286s # org_project_useful_interface_call_single_arg_method_q ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodQ", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # callback, 4286s # user_data); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_q_finish: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_q_finish ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # guint16 *out_arg_q, 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(q)", 4286s # out_arg_q); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_q_sync: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_q_sync ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # guint16 *out_arg_q, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodQ", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(q)", 4286s # out_arg_q); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_complete_single_arg_method_q: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4286s # * @arg_q: Parameter to return. 4286s # * 4286s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodQ() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4286s # * 4286s # * This method will free @invocation, you cannot use it afterwards. 4286s # */ 4286s # void 4286s # org_project_useful_interface_complete_single_arg_method_q ( 4286s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4286s # GDBusMethodInvocation *invocation, 4286s # guint16 arg_q) 4286s # { 4286s # g_dbus_method_invocation_return_value (invocation, 4286s # g_variant_new ("(q)", 4286s # arg_q)); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxy: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxyClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceProxyPrivate 4286s # { 4286s # GData *qdata; 4286s # }; 4286s # 4286s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_proxy_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4286s # g_datalist_clear (&proxy->priv->qdata); 4286s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # const GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4286s # const gchar *sender_name G_GNUC_UNUSED, 4286s # const gchar *signal_name, 4286s # GVariant *parameters) 4286s # { 4286s # _ExtendedGDBusSignalInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # gsize n; 4286s # guint signal_id; 4286s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4286s # if (info == NULL) 4286s # return; 4286s # num_params = g_variant_n_children (parameters); 4286s # paramv = g_new0 (GValue, num_params + 1); 4286s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[0], proxy); 4286s # g_variant_iter_init (&iter, parameters); 4286s # n = 1; 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_signal_emitv (paramv, signal_id, 0, NULL); 4286s # for (n = 0; n < num_params + 1; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4286s # GVariant *changed_properties, 4286s # const gchar *const *invalidated_properties) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4286s # guint n; 4286s # const gchar *key; 4286s # GVariantIter *iter; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # g_variant_get (changed_properties, "a{sv}", &iter); 4286s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4286s # g_datalist_remove_data (&proxy->priv->qdata, key); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # g_variant_iter_free (iter); 4286s # for (n = 0; invalidated_properties[n] != NULL; n++) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4286s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4286s # #else 4286s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4286s # #endif 4286s # 4286s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusProxyClass *proxy_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4286s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4286s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4286s # 4286s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4286s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4286s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_sync: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_sync ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new_for_bus ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_sync: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_sync ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeleton: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeletonClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4286s # { 4286s # GValue *properties; 4286s # GList *changed_properties; 4286s # GSource *changed_properties_idle_source; 4286s # GMainContext *context; 4286s # GMutex lock; 4286s # }; 4286s # 4286s # static void 4286s # _org_project_useful_interface_skeleton_handle_method_call ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name, 4286s # const gchar *method_name, 4286s # GVariant *parameters, 4286s # GDBusMethodInvocation *invocation, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # _ExtendedGDBusMethodInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # guint num_extra; 4286s # gsize n; 4286s # guint signal_id; 4286s # GValue return_value = G_VALUE_INIT; 4286s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4286s # g_assert (info != NULL); 4286s # num_params = g_variant_n_children (parameters); 4286s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4286s # n = 0; 4286s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[n++], skeleton); 4286s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4286s # g_value_set_object (¶mv[n++], invocation); 4286s # if (info->pass_fdlist) 4286s # { 4286s # #ifdef G_OS_UNIX 4286s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4286s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4286s # #else 4286s # g_assert_not_reached (); 4286s # #endif 4286s # } 4286s # g_variant_iter_init (&iter, parameters); 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4286s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4286s # if (!g_value_get_boolean (&return_value)) 4286s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4286s # g_value_unset (&return_value); 4286s # for (n = 0; n < num_params + num_extra; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static GVariant * 4286s # _org_project_useful_interface_skeleton_handle_get_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # GVariant *ret; 4286s # ret = NULL; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # g_value_init (&value, pspec->value_type); 4286s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4286s # g_value_unset (&value); 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _org_project_useful_interface_skeleton_handle_set_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GVariant *variant, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # gboolean ret; 4286s # ret = FALSE; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # if (info->use_gvariant) 4286s # g_value_set_variant (&value, variant); 4286s # else 4286s # g_dbus_gvariant_to_gvalue (variant, &value); 4286s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # g_value_unset (&value); 4286s # ret = TRUE; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4286s # { 4286s # _org_project_useful_interface_skeleton_handle_method_call, 4286s # _org_project_useful_interface_skeleton_handle_get_property, 4286s # _org_project_useful_interface_skeleton_handle_set_property, 4286s # {NULL} 4286s # }; 4286s # 4286s # static GDBusInterfaceInfo * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return org_project_useful_interface_interface_info (); 4286s # } 4286s # 4286s # static GDBusInterfaceVTable * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4286s # } 4286s # 4286s # static GVariant * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4286s # 4286s # GVariantBuilder builder; 4286s # guint n; 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4286s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #else 4286s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #endif 4286s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4286s # goto out; 4286s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4286s # { 4286s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4286s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4286s # { 4286s # GVariant *value; 4286s # 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); 4286s # if (value != NULL) 4286s # { 4286s # g_variant_take_ref (value); 4286s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4286s # g_variant_unref (value); 4286s # } 4286s # } 4286s # } 4286s # out: 4286s # return g_variant_builder_end (&builder); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_skeleton_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4286s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4286s # if (skeleton->priv->changed_properties_idle_source != NULL) 4286s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4286s # g_main_context_unref (skeleton->priv->context); 4286s # g_mutex_clear (&skeleton->priv->lock); 4286s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4286s # #else 4286s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4286s # #endif 4286s # 4286s # g_mutex_init (&skeleton->priv->lock); 4286s # skeleton->priv->context = g_main_context_ref_thread_default (); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusInterfaceSkeletonClass *skeleton_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4286s # 4286s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4286s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4286s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4286s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4286s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_skeleton_new: 4286s # * 4286s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_skeleton_new (void) 4286s # { 4286s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4286s # } 4286s # Error: 4286s # 4286s # /tmp/tmpst2rphhm/tmp8jx8bwiz.xml: 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmp8jx8bwiz.xml', '--output', '-', '--body'] 4286s # Return code: 0 4286s # Output: 4286s # /* 4286s # * This file is generated by gdbus-codegen, do not modify it. 4286s # * 4286s # * The license of this code is the same as for the D-Bus interface description 4286s # * it was derived from. Note that it links to GLib, so must comply with the 4286s # * LGPL linking clauses. 4286s # */ 4286s # 4286s # #ifdef HAVE_CONFIG_H 4286s # # include "config.h" 4286s # #endif 4286s # 4286s # #include 4286s # #ifdef G_OS_UNIX 4286s # # include 4286s # #endif 4286s # 4286s # #ifdef G_ENABLE_DEBUG 4286s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4286s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4286s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4286s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4286s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4286s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4286s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4286s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4286s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4286s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4286s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4286s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4286s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4286s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4286s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4286s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4286s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4286s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4286s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4286s # #else /* !G_ENABLE_DEBUG */ 4286s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4286s # * Do not access GValues directly in your code. Instead, use the 4286s # * g_value_get_*() functions 4286s # */ 4286s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4286s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4286s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4286s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4286s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4286s # #endif /* !G_ENABLE_DEBUG */ 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusArgInfo parent_struct; 4286s # gboolean use_gvariant; 4286s # } _ExtendedGDBusArgInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusMethodInfo parent_struct; 4286s # const gchar *signal_name; 4286s # gboolean pass_fdlist; 4286s # } _ExtendedGDBusMethodInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusSignalInfo parent_struct; 4286s # const gchar *signal_name; 4286s # } _ExtendedGDBusSignalInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusPropertyInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # guint use_gvariant : 1; 4286s # guint emits_changed_signal : 1; 4286s # } _ExtendedGDBusPropertyInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusInterfaceInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # } _ExtendedGDBusInterfaceInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # const _ExtendedGDBusPropertyInfo *info; 4286s # guint prop_id; 4286s # GValue orig_value; /* the value before the change */ 4286s # } ChangedProperty; 4286s # 4286s # static void 4286s # _changed_property_free (ChangedProperty *data) 4286s # { 4286s # g_value_unset (&data->orig_value); 4286s # g_free (data); 4286s # } 4286s # 4286s # static gboolean 4286s # _g_strv_equal0 (gchar **a, gchar **b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # guint n; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # if (g_strv_length (a) != g_strv_length (b)) 4286s # goto out; 4286s # for (n = 0; a[n] != NULL; n++) 4286s # if (g_strcmp0 (a[n], b[n]) != 0) 4286s # goto out; 4286s # ret = TRUE; 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _g_variant_equal0 (GVariant *a, GVariant *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # ret = g_variant_equal (a, b); 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # G_GNUC_UNUSED static gboolean 4286s # _g_value_equal (const GValue *a, const GValue *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4286s # switch (G_VALUE_TYPE (a)) 4286s # { 4286s # case G_TYPE_BOOLEAN: 4286s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4286s # break; 4286s # case G_TYPE_UCHAR: 4286s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4286s # break; 4286s # case G_TYPE_INT: 4286s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4286s # break; 4286s # case G_TYPE_UINT: 4286s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4286s # break; 4286s # case G_TYPE_INT64: 4286s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4286s # break; 4286s # case G_TYPE_UINT64: 4286s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4286s # break; 4286s # case G_TYPE_DOUBLE: 4286s # { 4286s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4286s # gdouble da = g_value_get_double (a); 4286s # gdouble db = g_value_get_double (b); 4286s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4286s # } 4286s # break; 4286s # case G_TYPE_STRING: 4286s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4286s # break; 4286s # case G_TYPE_VARIANT: 4286s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4286s # break; 4286s # default: 4286s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4286s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4286s # else 4286s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4286s # break; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static void 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint G_GNUC_UNUSED, 4286s # void *marshal_data) 4286s # { 4286s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (void *data1, 4286s # GDBusMethodInvocation *arg_method_invocation, 4286s # void *data2); 4286s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4286s # GCClosure *cc = (GCClosure*) closure; 4286s # void *data1, *data2; 4286s # gboolean v_return; 4286s # 4286s # g_return_if_fail (return_value != NULL); 4286s # g_return_if_fail (n_param_values == 2); 4286s # 4286s # if (G_CCLOSURE_SWAP_DATA (closure)) 4286s # { 4286s # data1 = closure->data; 4286s # data2 = g_value_peek_pointer (param_values + 0); 4286s # } 4286s # else 4286s # { 4286s # data1 = g_value_peek_pointer (param_values + 0); 4286s # data2 = closure->data; 4286s # } 4286s # 4286s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (marshal_data ? marshal_data : cc->callback); 4286s # 4286s # v_return = 4286s # callback (data1, 4286s # g_marshal_value_peek_object (param_values + 1), 4286s # data2); 4286s # 4286s # g_value_set_boolean (return_value, v_return); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ 4286s # * Code for interface org.project.UsefulInterface 4286s # * ------------------------------------------------------------------------ 4286s # */ 4286s # 4286s # /** 4286s # * SECTION:OrgProjectUsefulInterface 4286s # * @title: OrgProjectUsefulInterface 4286s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4286s # * 4286s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4286s # */ 4286s # 4286s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4286s # 4286s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "arg_i", 4286s # (gchar *) "i", 4286s # NULL 4286s # }, 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "SingleArgMethodI", 4286s # NULL, 4286s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 4286s # NULL 4286s # }, 4286s # "handle-single-arg-method-i", 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "org.project.UsefulInterface", 4286s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4286s # NULL, 4286s # NULL, 4286s # NULL 4286s # }, 4286s # "org-project-useful-interface", 4286s # }; 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_interface_info: 4286s # * 4286s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4286s # * 4286s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4286s # */ 4286s # GDBusInterfaceInfo * 4286s # org_project_useful_interface_interface_info (void) 4286s # { 4286s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_override_properties: 4286s # * @klass: The class structure for a #GObject derived class. 4286s # * @property_id_begin: The property id to assign to the first overridden property. 4286s # * 4286s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4286s # * The properties are overridden in the order they are defined. 4286s # * 4286s # * Returns: The last property id. 4286s # */ 4286s # guint 4286s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4286s # { 4286s # return property_id_begin - 1; 4286s # } 4286s # 4286s # 4286s # inline static void 4286s # org_project_useful_interface_method_marshal_single_arg_method_i ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint, 4286s # void *marshal_data) 4286s # { 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4286s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4286s # } 4286s # 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterface: 4286s # * 4286s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceIface: 4286s # * @parent_iface: The parent interface. 4286s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 4286s # * 4286s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4286s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4286s # 4286s # static void 4286s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4286s # { 4286s # /* GObject signals for incoming D-Bus method calls: */ 4286s # /** 4286s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: A #GDBusMethodInvocation. 4286s # * 4286s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 4286s # * 4286s # * 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. 4286s # * 4286s # * 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. 4286s # */ 4286s # g_signal_new ("handle-single-arg-method-i", 4286s # G_TYPE_FROM_INTERFACE (iface), 4286s # G_SIGNAL_RUN_LAST, 4286s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 4286s # g_signal_accumulator_true_handled, 4286s # NULL, 4286s # org_project_useful_interface_method_marshal_single_arg_method_i, 4286s # G_TYPE_BOOLEAN, 4286s # 1, 4286s # G_TYPE_DBUS_METHOD_INVOCATION); 4286s # 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_i: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 4286s # */ 4286s # void 4286s # org_project_useful_interface_call_single_arg_method_i ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodI", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # callback, 4286s # user_data); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_i_finish: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_i_finish ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # gint *out_arg_i, 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(i)", 4286s # out_arg_i); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_i_sync: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_i_sync ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # gint *out_arg_i, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodI", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(i)", 4286s # out_arg_i); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_complete_single_arg_method_i: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4286s # * @arg_i: Parameter to return. 4286s # * 4286s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodI() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4286s # * 4286s # * This method will free @invocation, you cannot use it afterwards. 4286s # */ 4286s # void 4286s # org_project_useful_interface_complete_single_arg_method_i ( 4286s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4286s # GDBusMethodInvocation *invocation, 4286s # gint arg_i) 4286s # { 4286s # g_dbus_method_invocation_return_value (invocation, 4286s # g_variant_new ("(i)", 4286s # arg_i)); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxy: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxyClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceProxyPrivate 4286s # { 4286s # GData *qdata; 4286s # }; 4286s # 4286s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_proxy_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4286s # g_datalist_clear (&proxy->priv->qdata); 4286s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # const GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4286s # const gchar *sender_name G_GNUC_UNUSED, 4286s # const gchar *signal_name, 4286s # GVariant *parameters) 4286s # { 4286s # _ExtendedGDBusSignalInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # gsize n; 4286s # guint signal_id; 4286s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4286s # if (info == NULL) 4286s # return; 4286s # num_params = g_variant_n_children (parameters); 4286s # paramv = g_new0 (GValue, num_params + 1); 4286s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[0], proxy); 4286s # g_variant_iter_init (&iter, parameters); 4286s # n = 1; 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_signal_emitv (paramv, signal_id, 0, NULL); 4286s # for (n = 0; n < num_params + 1; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4286s # GVariant *changed_properties, 4286s # const gchar *const *invalidated_properties) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4286s # guint n; 4286s # const gchar *key; 4286s # GVariantIter *iter; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # g_variant_get (changed_properties, "a{sv}", &iter); 4286s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4286s # g_datalist_remove_data (&proxy->priv->qdata, key); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # g_variant_iter_free (iter); 4286s # for (n = 0; invalidated_properties[n] != NULL; n++) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4286s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4286s # #else 4286s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4286s # #endif 4286s # 4286s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusProxyClass *proxy_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4286s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4286s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4286s # 4286s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4286s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4286s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_sync: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_sync ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new_for_bus ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_sync: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_sync ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeleton: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeletonClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4286s # { 4286s # GValue *properties; 4286s # GList *changed_properties; 4286s # GSource *changed_properties_idle_source; 4286s # GMainContext *context; 4286s # GMutex lock; 4286s # }; 4286s # 4286s # static void 4286s # _org_project_useful_interface_skeleton_handle_method_call ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name, 4286s # const gchar *method_name, 4286s # GVariant *parameters, 4286s # GDBusMethodInvocation *invocation, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # _ExtendedGDBusMethodInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # guint num_extra; 4286s # gsize n; 4286s # guint signal_id; 4286s # GValue return_value = G_VALUE_INIT; 4286s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4286s # g_assert (info != NULL); 4286s # num_params = g_variant_n_children (parameters); 4286s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4286s # n = 0; 4286s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[n++], skeleton); 4286s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4286s # g_value_set_object (¶mv[n++], invocation); 4286s # if (info->pass_fdlist) 4286s # { 4286s # #ifdef G_OS_UNIX 4286s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4286s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4286s # #else 4286s # g_assert_not_reached (); 4286s # #endif 4286s # } 4286s # g_variant_iter_init (&iter, parameters); 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4286s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4286s # if (!g_value_get_boolean (&return_value)) 4286s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4286s # g_value_unset (&return_value); 4286s # for (n = 0; n < num_params + num_extra; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static GVariant * 4286s # _org_project_useful_interface_skeleton_handle_get_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # GVariant *ret; 4286s # ret = NULL; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # g_value_init (&value, pspec->value_type); 4286s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4286s # g_value_unset (&value); 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _org_project_useful_interface_skeleton_handle_set_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GVariant *variant, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # gboolean ret; 4286s # ret = FALSE; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # if (info->use_gvariant) 4286s # g_value_set_variant (&value, variant); 4286s # else 4286s # g_dbus_gvariant_to_gvalue (variant, &value); 4286s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # g_value_unset (&value); 4286s # ret = TRUE; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4286s # { 4286s # _org_project_useful_interface_skeleton_handle_method_call, 4286s # _org_project_useful_interface_skeleton_handle_get_property, 4286s # _org_project_useful_interface_skeleton_handle_set_property, 4286s # {NULL} 4286s # }; 4286s # 4286s # static GDBusInterfaceInfo * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return org_project_useful_interface_interface_info (); 4286s # } 4286s # 4286s # static GDBusInterfaceVTable * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4286s # } 4286s # 4286s # static GVariant * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4286s # 4286s # GVariantBuilder builder; 4286s # guint n; 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4286s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #else 4286s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #endif 4286s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4286s # goto out; 4286s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4286s # { 4286s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4286s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4286s # { 4286s # GVariant *value; 4286s # 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); 4286s # if (value != NULL) 4286s # { 4286s # g_variant_take_ref (value); 4286s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4286s # g_variant_unref (value); 4286s # } 4286s # } 4286s # } 4286s # out: 4286s # return g_variant_builder_end (&builder); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_skeleton_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4286s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4286s # if (skeleton->priv->changed_properties_idle_source != NULL) 4286s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4286s # g_main_context_unref (skeleton->priv->context); 4286s # g_mutex_clear (&skeleton->priv->lock); 4286s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4286s # #else 4286s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4286s # #endif 4286s # 4286s # g_mutex_init (&skeleton->priv->lock); 4286s # skeleton->priv->context = g_main_context_ref_thread_default (); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusInterfaceSkeletonClass *skeleton_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4286s # 4286s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4286s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4286s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4286s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4286s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_skeleton_new: 4286s # * 4286s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_skeleton_new (void) 4286s # { 4286s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4286s # } 4286s # Error: 4286s # 4286s # /tmp/tmpst2rphhm/tmpl6_ditlu.xml: 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpl6_ditlu.xml', '--output', '-', '--body'] 4286s # Return code: 0 4286s # Output: 4286s # /* 4286s # * This file is generated by gdbus-codegen, do not modify it. 4286s # * 4286s # * The license of this code is the same as for the D-Bus interface description 4286s # * it was derived from. Note that it links to GLib, so must comply with the 4286s # * LGPL linking clauses. 4286s # */ 4286s # 4286s # #ifdef HAVE_CONFIG_H 4286s # # include "config.h" 4286s # #endif 4286s # 4286s # #include 4286s # #ifdef G_OS_UNIX 4286s # # include 4286s # #endif 4286s # 4286s # #ifdef G_ENABLE_DEBUG 4286s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4286s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4286s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4286s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4286s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4286s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4286s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4286s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4286s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4286s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4286s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4286s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4286s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4286s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4286s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4286s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4286s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4286s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4286s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4286s # #else /* !G_ENABLE_DEBUG */ 4286s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4286s # * Do not access GValues directly in your code. Instead, use the 4286s # * g_value_get_*() functions 4286s # */ 4286s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4286s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4286s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4286s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4286s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4286s # #endif /* !G_ENABLE_DEBUG */ 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusArgInfo parent_struct; 4286s # gboolean use_gvariant; 4286s # } _ExtendedGDBusArgInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusMethodInfo parent_struct; 4286s # const gchar *signal_name; 4286s # gboolean pass_fdlist; 4286s # } _ExtendedGDBusMethodInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusSignalInfo parent_struct; 4286s # const gchar *signal_name; 4286s # } _ExtendedGDBusSignalInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusPropertyInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # guint use_gvariant : 1; 4286s # guint emits_changed_signal : 1; 4286s # } _ExtendedGDBusPropertyInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusInterfaceInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # } _ExtendedGDBusInterfaceInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # const _ExtendedGDBusPropertyInfo *info; 4286s # guint prop_id; 4286s # GValue orig_value; /* the value before the change */ 4286s # } ChangedProperty; 4286s # 4286s # static void 4286s # _changed_property_free (ChangedProperty *data) 4286s # { 4286s # g_value_unset (&data->orig_value); 4286s # g_free (data); 4286s # } 4286s # 4286s # static gboolean 4286s # _g_strv_equal0 (gchar **a, gchar **b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # guint n; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # if (g_strv_length (a) != g_strv_length (b)) 4286s # goto out; 4286s # for (n = 0; a[n] != NULL; n++) 4286s # if (g_strcmp0 (a[n], b[n]) != 0) 4286s # goto out; 4286s # ret = TRUE; 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _g_variant_equal0 (GVariant *a, GVariant *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # ret = g_variant_equal (a, b); 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # G_GNUC_UNUSED static gboolean 4286s # _g_value_equal (const GValue *a, const GValue *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4286s # switch (G_VALUE_TYPE (a)) 4286s # { 4286s # case G_TYPE_BOOLEAN: 4286s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4286s # break; 4286s # case G_TYPE_UCHAR: 4286s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4286s # break; 4286s # case G_TYPE_INT: 4286s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4286s # break; 4286s # case G_TYPE_UINT: 4286s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4286s # break; 4286s # case G_TYPE_INT64: 4286s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4286s # break; 4286s # case G_TYPE_UINT64: 4286s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4286s # break; 4286s # case G_TYPE_DOUBLE: 4286s # { 4286s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4286s # gdouble da = g_value_get_double (a); 4286s # gdouble db = g_value_get_double (b); 4286s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4286s # } 4286s # break; 4286s # case G_TYPE_STRING: 4286s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4286s # break; 4286s # case G_TYPE_VARIANT: 4286s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4286s # break; 4286s # default: 4286s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4286s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4286s # else 4286s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4286s # break; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static void 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint G_GNUC_UNUSED, 4286s # void *marshal_data) 4286s # { 4286s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (void *data1, 4286s # GDBusMethodInvocation *arg_method_invocation, 4286s # void *data2); 4286s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4286s # GCClosure *cc = (GCClosure*) closure; 4286s # void *data1, *data2; 4286s # gboolean v_return; 4286s # 4286s # g_return_if_fail (return_value != NULL); 4286s # g_return_if_fail (n_param_values == 2); 4286s # 4286s # if (G_CCLOSURE_SWAP_DATA (closure)) 4286s # { 4286s # data1 = closure->data; 4286s # data2 = g_value_peek_pointer (param_values + 0); 4286s # } 4286s # else 4286s # { 4286s # data1 = g_value_peek_pointer (param_values + 0); 4286s # data2 = closure->data; 4286s # } 4286s # 4286s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (marshal_data ? marshal_data : cc->callback); 4286s # 4286s # v_return = 4286s # callback (data1, 4286s # g_marshal_value_peek_object (param_values + 1), 4286s # data2); 4286s # 4286s # g_value_set_boolean (return_value, v_return); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ 4286s # * Code for interface org.project.UsefulInterface 4286s # * ------------------------------------------------------------------------ 4286s # */ 4286s # 4286s # /** 4286s # * SECTION:OrgProjectUsefulInterface 4286s # * @title: OrgProjectUsefulInterface 4286s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4286s # * 4286s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4286s # */ 4286s # 4286s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4286s # 4286s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "arg_u", 4286s # (gchar *) "u", 4286s # NULL 4286s # }, 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "SingleArgMethodU", 4286s # NULL, 4286s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 4286s # NULL 4286s # }, 4286s # "handle-single-arg-method-u", 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "org.project.UsefulInterface", 4286s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4286s # NULL, 4286s # NULL, 4286s # NULL 4286s # }, 4286s # "org-project-useful-interface", 4286s # }; 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_interface_info: 4286s # * 4286s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4286s # * 4286s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4286s # */ 4286s # GDBusInterfaceInfo * 4286s # org_project_useful_interface_interface_info (void) 4286s # { 4286s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_override_properties: 4286s # * @klass: The class structure for a #GObject derived class. 4286s # * @property_id_begin: The property id to assign to the first overridden property. 4286s # * 4286s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4286s # * The properties are overridden in the order they are defined. 4286s # * 4286s # * Returns: The last property id. 4286s # */ 4286s # guint 4286s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4286s # { 4286s # return property_id_begin - 1; 4286s # } 4286s # 4286s # 4286s # inline static void 4286s # org_project_useful_interface_method_marshal_single_arg_method_u ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint, 4286s # void *marshal_data) 4286s # { 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4286s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4286s # } 4286s # 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterface: 4286s # * 4286s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceIface: 4286s # * @parent_iface: The parent interface. 4286s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 4286s # * 4286s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4286s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4286s # 4286s # static void 4286s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4286s # { 4286s # /* GObject signals for incoming D-Bus method calls: */ 4286s # /** 4286s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: A #GDBusMethodInvocation. 4286s # * 4286s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 4286s # * 4286s # * 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. 4286s # * 4286s # * 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. 4286s # */ 4286s # g_signal_new ("handle-single-arg-method-u", 4286s # G_TYPE_FROM_INTERFACE (iface), 4286s # G_SIGNAL_RUN_LAST, 4286s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 4286s # g_signal_accumulator_true_handled, 4286s # NULL, 4286s # org_project_useful_interface_method_marshal_single_arg_method_u, 4286s # G_TYPE_BOOLEAN, 4286s # 1, 4286s # G_TYPE_DBUS_METHOD_INVOCATION); 4286s # 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_u: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 4286s # */ 4286s # void 4286s # org_project_useful_interface_call_single_arg_method_u ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodU", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # callback, 4286s # user_data); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_u_finish: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_u_finish ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # guint *out_arg_u, 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(u)", 4286s # out_arg_u); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_u_sync: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_u_sync ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # guint *out_arg_u, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodU", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(u)", 4286s # out_arg_u); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_complete_single_arg_method_u: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4286s # * @arg_u: Parameter to return. 4286s # * 4286s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodU() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4286s # * 4286s # * This method will free @invocation, you cannot use it afterwards. 4286s # */ 4286s # void 4286s # org_project_useful_interface_complete_single_arg_method_u ( 4286s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4286s # GDBusMethodInvocation *invocation, 4286s # guint arg_u) 4286s # { 4286s # g_dbus_method_invocation_return_value (invocation, 4286s # g_variant_new ("(u)", 4286s # arg_u)); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxy: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxyClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceProxyPrivate 4286s # { 4286s # GData *qdata; 4286s # }; 4286s # 4286s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_proxy_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4286s # g_datalist_clear (&proxy->priv->qdata); 4286s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # const GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4286s # const gchar *sender_name G_GNUC_UNUSED, 4286s # const gchar *signal_name, 4286s # GVariant *parameters) 4286s # { 4286s # _ExtendedGDBusSignalInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # gsize n; 4286s # guint signal_id; 4286s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4286s # if (info == NULL) 4286s # return; 4286s # num_params = g_variant_n_children (parameters); 4286s # paramv = g_new0 (GValue, num_params + 1); 4286s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[0], proxy); 4286s # g_variant_iter_init (&iter, parameters); 4286s # n = 1; 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_signal_emitv (paramv, signal_id, 0, NULL); 4286s # for (n = 0; n < num_params + 1; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4286s # GVariant *changed_properties, 4286s # const gchar *const *invalidated_properties) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4286s # guint n; 4286s # const gchar *key; 4286s # GVariantIter *iter; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # g_variant_get (changed_properties, "a{sv}", &iter); 4286s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4286s # g_datalist_remove_data (&proxy->priv->qdata, key); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # g_variant_iter_free (iter); 4286s # for (n = 0; invalidated_properties[n] != NULL; n++) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4286s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4286s # #else 4286s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4286s # #endif 4286s # 4286s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusProxyClass *proxy_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4286s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4286s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4286s # 4286s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4286s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4286s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_sync: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_sync ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new_for_bus ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_sync: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_sync ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeleton: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeletonClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4286s # { 4286s # GValue *properties; 4286s # GList *changed_properties; 4286s # GSource *changed_properties_idle_source; 4286s # GMainContext *context; 4286s # GMutex lock; 4286s # }; 4286s # 4286s # static void 4286s # _org_project_useful_interface_skeleton_handle_method_call ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name, 4286s # const gchar *method_name, 4286s # GVariant *parameters, 4286s # GDBusMethodInvocation *invocation, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # _ExtendedGDBusMethodInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # guint num_extra; 4286s # gsize n; 4286s # guint signal_id; 4286s # GValue return_value = G_VALUE_INIT; 4286s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4286s # g_assert (info != NULL); 4286s # num_params = g_variant_n_children (parameters); 4286s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4286s # n = 0; 4286s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[n++], skeleton); 4286s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4286s # g_value_set_object (¶mv[n++], invocation); 4286s # if (info->pass_fdlist) 4286s # { 4286s # #ifdef G_OS_UNIX 4286s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4286s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4286s # #else 4286s # g_assert_not_reached (); 4286s # #endif 4286s # } 4286s # g_variant_iter_init (&iter, parameters); 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4286s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4286s # if (!g_value_get_boolean (&return_value)) 4286s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4286s # g_value_unset (&return_value); 4286s # for (n = 0; n < num_params + num_extra; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static GVariant * 4286s # _org_project_useful_interface_skeleton_handle_get_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # GVariant *ret; 4286s # ret = NULL; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # g_value_init (&value, pspec->value_type); 4286s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4286s # g_value_unset (&value); 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _org_project_useful_interface_skeleton_handle_set_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GVariant *variant, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # gboolean ret; 4286s # ret = FALSE; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # if (info->use_gvariant) 4286s # g_value_set_variant (&value, variant); 4286s # else 4286s # g_dbus_gvariant_to_gvalue (variant, &value); 4286s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # g_value_unset (&value); 4286s # ret = TRUE; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4286s # { 4286s # _org_project_useful_interface_skeleton_handle_method_call, 4286s # _org_project_useful_interface_skeleton_handle_get_property, 4286s # _org_project_useful_interface_skeleton_handle_set_property, 4286s # {NULL} 4286s # }; 4286s # 4286s # static GDBusInterfaceInfo * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return org_project_useful_interface_interface_info (); 4286s # } 4286s # 4286s # static GDBusInterfaceVTable * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4286s # } 4286s # 4286s # static GVariant * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4286s # 4286s # GVariantBuilder builder; 4286s # guint n; 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4286s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #else 4286s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #endif 4286s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4286s # goto out; 4286s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4286s # { 4286s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4286s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4286s # { 4286s # GVariant *value; 4286s # 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); 4286s # if (value != NULL) 4286s # { 4286s # g_variant_take_ref (value); 4286s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4286s # g_variant_unref (value); 4286s # } 4286s # } 4286s # } 4286s # out: 4286s # return g_variant_builder_end (&builder); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_skeleton_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4286s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4286s # if (skeleton->priv->changed_properties_idle_source != NULL) 4286s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4286s # g_main_context_unref (skeleton->priv->context); 4286s # g_mutex_clear (&skeleton->priv->lock); 4286s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4286s # #else 4286s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4286s # #endif 4286s # 4286s # g_mutex_init (&skeleton->priv->lock); 4286s # skeleton->priv->context = g_main_context_ref_thread_default (); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusInterfaceSkeletonClass *skeleton_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4286s # 4286s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4286s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4286s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4286s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4286s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_skeleton_new: 4286s # * 4286s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_skeleton_new (void) 4286s # { 4286s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4286s # } 4286s # Error: 4286s # 4286s # /tmp/tmpst2rphhm/tmpszlfo72k.xml: 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpszlfo72k.xml', '--output', '-', '--body'] 4286s # Return code: 0 4286s # Output: 4286s # /* 4286s # * This file is generated by gdbus-codegen, do not modify it. 4286s # * 4286s # * The license of this code is the same as for the D-Bus interface description 4286s # * it was derived from. Note that it links to GLib, so must comply with the 4286s # * LGPL linking clauses. 4286s # */ 4286s # 4286s # #ifdef HAVE_CONFIG_H 4286s # # include "config.h" 4286s # #endif 4286s # 4286s # #include 4286s # #ifdef G_OS_UNIX 4286s # # include 4286s # #endif 4286s # 4286s # #ifdef G_ENABLE_DEBUG 4286s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4286s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4286s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4286s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4286s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4286s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4286s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4286s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4286s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4286s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4286s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4286s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4286s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4286s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4286s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4286s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4286s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4286s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4286s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4286s # #else /* !G_ENABLE_DEBUG */ 4286s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4286s # * Do not access GValues directly in your code. Instead, use the 4286s # * g_value_get_*() functions 4286s # */ 4286s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4286s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4286s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4286s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4286s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4286s # #endif /* !G_ENABLE_DEBUG */ 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusArgInfo parent_struct; 4286s # gboolean use_gvariant; 4286s # } _ExtendedGDBusArgInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusMethodInfo parent_struct; 4286s # const gchar *signal_name; 4286s # gboolean pass_fdlist; 4286s # } _ExtendedGDBusMethodInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusSignalInfo parent_struct; 4286s # const gchar *signal_name; 4286s # } _ExtendedGDBusSignalInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusPropertyInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # guint use_gvariant : 1; 4286s # guint emits_changed_signal : 1; 4286s # } _ExtendedGDBusPropertyInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusInterfaceInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # } _ExtendedGDBusInterfaceInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # const _ExtendedGDBusPropertyInfo *info; 4286s # guint prop_id; 4286s # GValue orig_value; /* the value before the change */ 4286s # } ChangedProperty; 4286s # 4286s # static void 4286s # _changed_property_free (ChangedProperty *data) 4286s # { 4286s # g_value_unset (&data->orig_value); 4286s # g_free (data); 4286s # } 4286s # 4286s # static gboolean 4286s # _g_strv_equal0 (gchar **a, gchar **b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # guint n; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # if (g_strv_length (a) != g_strv_length (b)) 4286s # goto out; 4286s # for (n = 0; a[n] != NULL; n++) 4286s # if (g_strcmp0 (a[n], b[n]) != 0) 4286s # goto out; 4286s # ret = TRUE; 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _g_variant_equal0 (GVariant *a, GVariant *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # ret = g_variant_equal (a, b); 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # G_GNUC_UNUSED static gboolean 4286s # _g_value_equal (const GValue *a, const GValue *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4286s # switch (G_VALUE_TYPE (a)) 4286s # { 4286s # case G_TYPE_BOOLEAN: 4286s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4286s # break; 4286s # case G_TYPE_UCHAR: 4286s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4286s # break; 4286s # case G_TYPE_INT: 4286s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4286s # break; 4286s # case G_TYPE_UINT: 4286s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4286s # break; 4286s # case G_TYPE_INT64: 4286s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4286s # break; 4286s # case G_TYPE_UINT64: 4286s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4286s # break; 4286s # case G_TYPE_DOUBLE: 4286s # { 4286s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4286s # gdouble da = g_value_get_double (a); 4286s # gdouble db = g_value_get_double (b); 4286s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4286s # } 4286s # break; 4286s # case G_TYPE_STRING: 4286s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4286s # break; 4286s # case G_TYPE_VARIANT: 4286s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4286s # break; 4286s # default: 4286s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4286s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4286s # else 4286s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4286s # break; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static void 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint G_GNUC_UNUSED, 4286s # void *marshal_data) 4286s # { 4286s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (void *data1, 4286s # GDBusMethodInvocation *arg_method_invocation, 4286s # void *data2); 4286s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4286s # GCClosure *cc = (GCClosure*) closure; 4286s # void *data1, *data2; 4286s # gboolean v_return; 4286s # 4286s # g_return_if_fail (return_value != NULL); 4286s # g_return_if_fail (n_param_values == 2); 4286s # 4286s # if (G_CCLOSURE_SWAP_DATA (closure)) 4286s # { 4286s # data1 = closure->data; 4286s # data2 = g_value_peek_pointer (param_values + 0); 4286s # } 4286s # else 4286s # { 4286s # data1 = g_value_peek_pointer (param_values + 0); 4286s # data2 = closure->data; 4286s # } 4286s # 4286s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (marshal_data ? marshal_data : cc->callback); 4286s # 4286s # v_return = 4286s # callback (data1, 4286s # g_marshal_value_peek_object (param_values + 1), 4286s # data2); 4286s # 4286s # g_value_set_boolean (return_value, v_return); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ 4286s # * Code for interface org.project.UsefulInterface 4286s # * ------------------------------------------------------------------------ 4286s # */ 4286s # 4286s # /** 4286s # * SECTION:OrgProjectUsefulInterface 4286s # * @title: OrgProjectUsefulInterface 4286s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4286s # * 4286s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4286s # */ 4286s # 4286s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4286s # 4286s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "arg_x", 4286s # (gchar *) "x", 4286s # NULL 4286s # }, 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "SingleArgMethodX", 4286s # NULL, 4286s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 4286s # NULL 4286s # }, 4286s # "handle-single-arg-method-x", 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "org.project.UsefulInterface", 4286s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4286s # NULL, 4286s # NULL, 4286s # NULL 4286s # }, 4286s # "org-project-useful-interface", 4286s # }; 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_interface_info: 4286s # * 4286s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4286s # * 4286s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4286s # */ 4286s # GDBusInterfaceInfo * 4286s # org_project_useful_interface_interface_info (void) 4286s # { 4286s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_override_properties: 4286s # * @klass: The class structure for a #GObject derived class. 4286s # * @property_id_begin: The property id to assign to the first overridden property. 4286s # * 4286s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4286s # * The properties are overridden in the order they are defined. 4286s # * 4286s # * Returns: The last property id. 4286s # */ 4286s # guint 4286s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4286s # { 4286s # return property_id_begin - 1; 4286s # } 4286s # 4286s # 4286s # inline static void 4286s # org_project_useful_interface_method_marshal_single_arg_method_x ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint, 4286s # void *marshal_data) 4286s # { 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4286s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4286s # } 4286s # 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterface: 4286s # * 4286s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceIface: 4286s # * @parent_iface: The parent interface. 4286s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 4286s # * 4286s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4286s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4286s # 4286s # static void 4286s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4286s # { 4286s # /* GObject signals for incoming D-Bus method calls: */ 4286s # /** 4286s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: A #GDBusMethodInvocation. 4286s # * 4286s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 4286s # * 4286s # * 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. 4286s # * 4286s # * 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. 4286s # */ 4286s # g_signal_new ("handle-single-arg-method-x", 4286s # G_TYPE_FROM_INTERFACE (iface), 4286s # G_SIGNAL_RUN_LAST, 4286s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 4286s # g_signal_accumulator_true_handled, 4286s # NULL, 4286s # org_project_useful_interface_method_marshal_single_arg_method_x, 4286s # G_TYPE_BOOLEAN, 4286s # 1, 4286s # G_TYPE_DBUS_METHOD_INVOCATION); 4286s # 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_x: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 4286s # */ 4286s # void 4286s # org_project_useful_interface_call_single_arg_method_x ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodX", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # callback, 4286s # user_data); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_x_finish: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_x_finish ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # gint64 *out_arg_x, 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(x)", 4286s # out_arg_x); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_x_sync: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_x_sync ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # gint64 *out_arg_x, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodX", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(x)", 4286s # out_arg_x); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_complete_single_arg_method_x: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4286s # * @arg_x: Parameter to return. 4286s # * 4286s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodX() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4286s # * 4286s # * This method will free @invocation, you cannot use it afterwards. 4286s # */ 4286s # void 4286s # org_project_useful_interface_complete_single_arg_method_x ( 4286s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4286s # GDBusMethodInvocation *invocation, 4286s # gint64 arg_x) 4286s # { 4286s # g_dbus_method_invocation_return_value (invocation, 4286s # g_variant_new ("(x)", 4286s # arg_x)); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxy: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxyClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceProxyPrivate 4286s # { 4286s # GData *qdata; 4286s # }; 4286s # 4286s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_proxy_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4286s # g_datalist_clear (&proxy->priv->qdata); 4286s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # const GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4286s # const gchar *sender_name G_GNUC_UNUSED, 4286s # const gchar *signal_name, 4286s # GVariant *parameters) 4286s # { 4286s # _ExtendedGDBusSignalInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # gsize n; 4286s # guint signal_id; 4286s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4286s # if (info == NULL) 4286s # return; 4286s # num_params = g_variant_n_children (parameters); 4286s # paramv = g_new0 (GValue, num_params + 1); 4286s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[0], proxy); 4286s # g_variant_iter_init (&iter, parameters); 4286s # n = 1; 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_signal_emitv (paramv, signal_id, 0, NULL); 4286s # for (n = 0; n < num_params + 1; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4286s # GVariant *changed_properties, 4286s # const gchar *const *invalidated_properties) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4286s # guint n; 4286s # const gchar *key; 4286s # GVariantIter *iter; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # g_variant_get (changed_properties, "a{sv}", &iter); 4286s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4286s # g_datalist_remove_data (&proxy->priv->qdata, key); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # g_variant_iter_free (iter); 4286s # for (n = 0; invalidated_properties[n] != NULL; n++) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4286s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4286s # #else 4286s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4286s # #endif 4286s # 4286s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusProxyClass *proxy_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4286s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4286s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4286s # 4286s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4286s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4286s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_sync: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_sync ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new_for_bus ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus_sync: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_for_bus_sync ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeleton: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceSkeletonClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4286s # { 4286s # GValue *properties; 4286s # GList *changed_properties; 4286s # GSource *changed_properties_idle_source; 4286s # GMainContext *context; 4286s # GMutex lock; 4286s # }; 4286s # 4286s # static void 4286s # _org_project_useful_interface_skeleton_handle_method_call ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name, 4286s # const gchar *method_name, 4286s # GVariant *parameters, 4286s # GDBusMethodInvocation *invocation, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # _ExtendedGDBusMethodInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # guint num_extra; 4286s # gsize n; 4286s # guint signal_id; 4286s # GValue return_value = G_VALUE_INIT; 4286s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4286s # g_assert (info != NULL); 4286s # num_params = g_variant_n_children (parameters); 4286s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4286s # n = 0; 4286s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[n++], skeleton); 4286s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4286s # g_value_set_object (¶mv[n++], invocation); 4286s # if (info->pass_fdlist) 4286s # { 4286s # #ifdef G_OS_UNIX 4286s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4286s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4286s # #else 4286s # g_assert_not_reached (); 4286s # #endif 4286s # } 4286s # g_variant_iter_init (&iter, parameters); 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4286s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4286s # if (!g_value_get_boolean (&return_value)) 4286s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4286s # g_value_unset (&return_value); 4286s # for (n = 0; n < num_params + num_extra; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static GVariant * 4286s # _org_project_useful_interface_skeleton_handle_get_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # GVariant *ret; 4286s # ret = NULL; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # g_value_init (&value, pspec->value_type); 4286s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4286s # g_value_unset (&value); 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _org_project_useful_interface_skeleton_handle_set_property ( 4286s # GDBusConnection *connection G_GNUC_UNUSED, 4286s # const gchar *sender G_GNUC_UNUSED, 4286s # const gchar *object_path G_GNUC_UNUSED, 4286s # const gchar *interface_name G_GNUC_UNUSED, 4286s # const gchar *property_name, 4286s # GVariant *variant, 4286s # GError **error, 4286s # gpointer user_data) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4286s # GValue value = G_VALUE_INIT; 4286s # GParamSpec *pspec; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # gboolean ret; 4286s # ret = FALSE; 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4286s # g_assert (info != NULL); 4286s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4286s # if (pspec == NULL) 4286s # { 4286s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4286s # } 4286s # else 4286s # { 4286s # if (info->use_gvariant) 4286s # g_value_set_variant (&value, variant); 4286s # else 4286s # g_dbus_gvariant_to_gvalue (variant, &value); 4286s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4286s # g_value_unset (&value); 4286s # ret = TRUE; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4286s # { 4286s # _org_project_useful_interface_skeleton_handle_method_call, 4286s # _org_project_useful_interface_skeleton_handle_get_property, 4286s # _org_project_useful_interface_skeleton_handle_set_property, 4286s # {NULL} 4286s # }; 4286s # 4286s # static GDBusInterfaceInfo * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return org_project_useful_interface_interface_info (); 4286s # } 4286s # 4286s # static GDBusInterfaceVTable * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4286s # { 4286s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4286s # } 4286s # 4286s # static GVariant * 4286s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4286s # 4286s # GVariantBuilder builder; 4286s # guint n; 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4286s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #else 4286s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4286s # #endif 4286s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4286s # goto out; 4286s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4286s # { 4286s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4286s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4286s # { 4286s # GVariant *value; 4286s # 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); 4286s # if (value != NULL) 4286s # { 4286s # g_variant_take_ref (value); 4286s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4286s # g_variant_unref (value); 4286s # } 4286s # } 4286s # } 4286s # out: 4286s # return g_variant_builder_end (&builder); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_skeleton_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4286s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4286s # if (skeleton->priv->changed_properties_idle_source != NULL) 4286s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4286s # g_main_context_unref (skeleton->priv->context); 4286s # g_mutex_clear (&skeleton->priv->lock); 4286s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4286s # #else 4286s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4286s # #endif 4286s # 4286s # g_mutex_init (&skeleton->priv->lock); 4286s # skeleton->priv->context = g_main_context_ref_thread_default (); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusInterfaceSkeletonClass *skeleton_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4286s # 4286s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4286s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4286s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4286s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4286s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_skeleton_new: 4286s # * 4286s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_skeleton_new (void) 4286s # { 4286s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4286s # } 4286s # Error: 4286s # 4286s # /tmp/tmpst2rphhm/tmp88_ynbvy.xml: 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # 4286s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmp88_ynbvy.xml', '--output', '-', '--body'] 4286s # Return code: 0 4286s # Output: 4286s # /* 4286s # * This file is generated by gdbus-codegen, do not modify it. 4286s # * 4286s # * The license of this code is the same as for the D-Bus interface description 4286s # * it was derived from. Note that it links to GLib, so must comply with the 4286s # * LGPL linking clauses. 4286s # */ 4286s # 4286s # #ifdef HAVE_CONFIG_H 4286s # # include "config.h" 4286s # #endif 4286s # 4286s # #include 4286s # #ifdef G_OS_UNIX 4286s # # include 4286s # #endif 4286s # 4286s # #ifdef G_ENABLE_DEBUG 4286s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4286s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4286s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4286s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4286s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4286s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4286s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4286s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4286s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4286s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4286s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4286s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4286s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4286s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4286s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4286s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4286s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4286s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4286s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4286s # #else /* !G_ENABLE_DEBUG */ 4286s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4286s # * Do not access GValues directly in your code. Instead, use the 4286s # * g_value_get_*() functions 4286s # */ 4286s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4286s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4286s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4286s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4286s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4286s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4286s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4286s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4286s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4286s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4286s # #endif /* !G_ENABLE_DEBUG */ 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusArgInfo parent_struct; 4286s # gboolean use_gvariant; 4286s # } _ExtendedGDBusArgInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusMethodInfo parent_struct; 4286s # const gchar *signal_name; 4286s # gboolean pass_fdlist; 4286s # } _ExtendedGDBusMethodInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusSignalInfo parent_struct; 4286s # const gchar *signal_name; 4286s # } _ExtendedGDBusSignalInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusPropertyInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # guint use_gvariant : 1; 4286s # guint emits_changed_signal : 1; 4286s # } _ExtendedGDBusPropertyInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # GDBusInterfaceInfo parent_struct; 4286s # const gchar *hyphen_name; 4286s # } _ExtendedGDBusInterfaceInfo; 4286s # 4286s # typedef struct 4286s # { 4286s # const _ExtendedGDBusPropertyInfo *info; 4286s # guint prop_id; 4286s # GValue orig_value; /* the value before the change */ 4286s # } ChangedProperty; 4286s # 4286s # static void 4286s # _changed_property_free (ChangedProperty *data) 4286s # { 4286s # g_value_unset (&data->orig_value); 4286s # g_free (data); 4286s # } 4286s # 4286s # static gboolean 4286s # _g_strv_equal0 (gchar **a, gchar **b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # guint n; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # if (g_strv_length (a) != g_strv_length (b)) 4286s # goto out; 4286s # for (n = 0; a[n] != NULL; n++) 4286s # if (g_strcmp0 (a[n], b[n]) != 0) 4286s # goto out; 4286s # ret = TRUE; 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # static gboolean 4286s # _g_variant_equal0 (GVariant *a, GVariant *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # if (a == NULL && b == NULL) 4286s # { 4286s # ret = TRUE; 4286s # goto out; 4286s # } 4286s # if (a == NULL || b == NULL) 4286s # goto out; 4286s # ret = g_variant_equal (a, b); 4286s # out: 4286s # return ret; 4286s # } 4286s # 4286s # G_GNUC_UNUSED static gboolean 4286s # _g_value_equal (const GValue *a, const GValue *b) 4286s # { 4286s # gboolean ret = FALSE; 4286s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4286s # switch (G_VALUE_TYPE (a)) 4286s # { 4286s # case G_TYPE_BOOLEAN: 4286s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4286s # break; 4286s # case G_TYPE_UCHAR: 4286s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4286s # break; 4286s # case G_TYPE_INT: 4286s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4286s # break; 4286s # case G_TYPE_UINT: 4286s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4286s # break; 4286s # case G_TYPE_INT64: 4286s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4286s # break; 4286s # case G_TYPE_UINT64: 4286s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4286s # break; 4286s # case G_TYPE_DOUBLE: 4286s # { 4286s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4286s # gdouble da = g_value_get_double (a); 4286s # gdouble db = g_value_get_double (b); 4286s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4286s # } 4286s # break; 4286s # case G_TYPE_STRING: 4286s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4286s # break; 4286s # case G_TYPE_VARIANT: 4286s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4286s # break; 4286s # default: 4286s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4286s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4286s # else 4286s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4286s # break; 4286s # } 4286s # return ret; 4286s # } 4286s # 4286s # static void 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint G_GNUC_UNUSED, 4286s # void *marshal_data) 4286s # { 4286s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (void *data1, 4286s # GDBusMethodInvocation *arg_method_invocation, 4286s # void *data2); 4286s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4286s # GCClosure *cc = (GCClosure*) closure; 4286s # void *data1, *data2; 4286s # gboolean v_return; 4286s # 4286s # g_return_if_fail (return_value != NULL); 4286s # g_return_if_fail (n_param_values == 2); 4286s # 4286s # if (G_CCLOSURE_SWAP_DATA (closure)) 4286s # { 4286s # data1 = closure->data; 4286s # data2 = g_value_peek_pointer (param_values + 0); 4286s # } 4286s # else 4286s # { 4286s # data1 = g_value_peek_pointer (param_values + 0); 4286s # data2 = closure->data; 4286s # } 4286s # 4286s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4286s # (marshal_data ? marshal_data : cc->callback); 4286s # 4286s # v_return = 4286s # callback (data1, 4286s # g_marshal_value_peek_object (param_values + 1), 4286s # data2); 4286s # 4286s # g_value_set_boolean (return_value, v_return); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ 4286s # * Code for interface org.project.UsefulInterface 4286s # * ------------------------------------------------------------------------ 4286s # */ 4286s # 4286s # /** 4286s # * SECTION:OrgProjectUsefulInterface 4286s # * @title: OrgProjectUsefulInterface 4286s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4286s # * 4286s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4286s # */ 4286s # 4286s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4286s # 4286s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "arg_t", 4286s # (gchar *) "t", 4286s # NULL 4286s # }, 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "SingleArgMethodT", 4286s # NULL, 4286s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 4286s # NULL 4286s # }, 4286s # "handle-single-arg-method-t", 4286s # FALSE 4286s # }; 4286s # 4286s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4286s # { 4286s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 4286s # NULL 4286s # }; 4286s # 4286s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4286s # { 4286s # { 4286s # -1, 4286s # (gchar *) "org.project.UsefulInterface", 4286s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4286s # NULL, 4286s # NULL, 4286s # NULL 4286s # }, 4286s # "org-project-useful-interface", 4286s # }; 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_interface_info: 4286s # * 4286s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4286s # * 4286s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4286s # */ 4286s # GDBusInterfaceInfo * 4286s # org_project_useful_interface_interface_info (void) 4286s # { 4286s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_override_properties: 4286s # * @klass: The class structure for a #GObject derived class. 4286s # * @property_id_begin: The property id to assign to the first overridden property. 4286s # * 4286s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4286s # * The properties are overridden in the order they are defined. 4286s # * 4286s # * Returns: The last property id. 4286s # */ 4286s # guint 4286s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4286s # { 4286s # return property_id_begin - 1; 4286s # } 4286s # 4286s # 4286s # inline static void 4286s # org_project_useful_interface_method_marshal_single_arg_method_t ( 4286s # GClosure *closure, 4286s # GValue *return_value, 4286s # unsigned int n_param_values, 4286s # const GValue *param_values, 4286s # void *invocation_hint, 4286s # void *marshal_data) 4286s # { 4286s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4286s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4286s # } 4286s # 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterface: 4286s # * 4286s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceIface: 4286s # * @parent_iface: The parent interface. 4286s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 4286s # * 4286s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4286s # */ 4286s # 4286s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4286s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4286s # 4286s # static void 4286s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4286s # { 4286s # /* GObject signals for incoming D-Bus method calls: */ 4286s # /** 4286s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: A #GDBusMethodInvocation. 4286s # * 4286s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 4286s # * 4286s # * 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. 4286s # * 4286s # * 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. 4286s # */ 4286s # g_signal_new ("handle-single-arg-method-t", 4286s # G_TYPE_FROM_INTERFACE (iface), 4286s # G_SIGNAL_RUN_LAST, 4286s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 4286s # g_signal_accumulator_true_handled, 4286s # NULL, 4286s # org_project_useful_interface_method_marshal_single_arg_method_t, 4286s # G_TYPE_BOOLEAN, 4286s # 1, 4286s # G_TYPE_DBUS_METHOD_INVOCATION); 4286s # 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_t: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 4286s # */ 4286s # void 4286s # org_project_useful_interface_call_single_arg_method_t ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodT", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # callback, 4286s # user_data); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_t_finish: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_t_finish ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # guint64 *out_arg_t, 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(t)", 4286s # out_arg_t); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_call_single_arg_method_t_sync: 4286s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4286s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL. 4286s # * 4286s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 4286s # * 4286s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4286s # */ 4286s # gboolean 4286s # org_project_useful_interface_call_single_arg_method_t_sync ( 4286s # OrgProjectUsefulInterface *proxy, 4286s # guint64 *out_arg_t, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GVariant *_ret; 4286s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4286s # "SingleArgMethodT", 4286s # g_variant_new ("()"), 4286s # G_DBUS_CALL_FLAGS_NONE, 4286s # -1, 4286s # cancellable, 4286s # error); 4286s # if (_ret == NULL) 4286s # goto _out; 4286s # g_variant_get (_ret, 4286s # "(t)", 4286s # out_arg_t); 4286s # g_variant_unref (_ret); 4286s # _out: 4286s # return _ret != NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_complete_single_arg_method_t: 4286s # * @object: A #OrgProjectUsefulInterface. 4286s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4286s # * @arg_t: Parameter to return. 4286s # * 4286s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodT() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4286s # * 4286s # * This method will free @invocation, you cannot use it afterwards. 4286s # */ 4286s # void 4286s # org_project_useful_interface_complete_single_arg_method_t ( 4286s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4286s # GDBusMethodInvocation *invocation, 4286s # guint64 arg_t) 4286s # { 4286s # g_dbus_method_invocation_return_value (invocation, 4286s # g_variant_new ("(t)", 4286s # arg_t)); 4286s # } 4286s # 4286s # /* ------------------------------------------------------------------------ */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxy: 4286s # * 4286s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4286s # */ 4286s # 4286s # /** 4286s # * OrgProjectUsefulInterfaceProxyClass: 4286s # * @parent_class: The parent class. 4286s # * 4286s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4286s # */ 4286s # 4286s # struct _OrgProjectUsefulInterfaceProxyPrivate 4286s # { 4286s # GData *qdata; 4286s # }; 4286s # 4286s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #else 4286s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4286s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4286s # 4286s # #endif 4286s # static void 4286s # org_project_useful_interface_proxy_finalize (GObject *object) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4286s # g_datalist_clear (&proxy->priv->qdata); 4286s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4286s # guint prop_id G_GNUC_UNUSED, 4286s # const GValue *value G_GNUC_UNUSED, 4286s # GParamSpec *pspec G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4286s # const gchar *sender_name G_GNUC_UNUSED, 4286s # const gchar *signal_name, 4286s # GVariant *parameters) 4286s # { 4286s # _ExtendedGDBusSignalInfo *info; 4286s # GVariantIter iter; 4286s # GVariant *child; 4286s # GValue *paramv; 4286s # gsize num_params; 4286s # gsize n; 4286s # guint signal_id; 4286s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4286s # if (info == NULL) 4286s # return; 4286s # num_params = g_variant_n_children (parameters); 4286s # paramv = g_new0 (GValue, num_params + 1); 4286s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_value_set_object (¶mv[0], proxy); 4286s # g_variant_iter_init (&iter, parameters); 4286s # n = 1; 4286s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4286s # { 4286s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4286s # if (arg_info->use_gvariant) 4286s # { 4286s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4286s # g_value_set_variant (¶mv[n], child); 4286s # n++; 4286s # } 4286s # else 4286s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4286s # g_variant_unref (child); 4286s # } 4286s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4286s # g_signal_emitv (paramv, signal_id, 0, NULL); 4286s # for (n = 0; n < num_params + 1; n++) 4286s # g_value_unset (¶mv[n]); 4286s # g_free (paramv); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4286s # GVariant *changed_properties, 4286s # const gchar *const *invalidated_properties) 4286s # { 4286s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4286s # guint n; 4286s # const gchar *key; 4286s # GVariantIter *iter; 4286s # _ExtendedGDBusPropertyInfo *info; 4286s # g_variant_get (changed_properties, "a{sv}", &iter); 4286s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4286s # g_datalist_remove_data (&proxy->priv->qdata, key); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # g_variant_iter_free (iter); 4286s # for (n = 0; invalidated_properties[n] != NULL; n++) 4286s # { 4286s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4286s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4286s # if (info != NULL) 4286s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4286s # } 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4286s # { 4286s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4286s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4286s # #else 4286s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4286s # #endif 4286s # 4286s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4286s # { 4286s # GObjectClass *gobject_class; 4286s # GDBusProxyClass *proxy_class; 4286s # 4286s # gobject_class = G_OBJECT_CLASS (klass); 4286s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4286s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4286s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4286s # 4286s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4286s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4286s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4286s # 4286s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4286s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4286s # #endif 4286s # } 4286s # 4286s # static void 4286s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4286s # { 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GAsyncReadyCallback callback, 4286s # gpointer user_data) 4286s # { 4286s # g_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); 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_finish: 4286s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_finish ( 4286s # GAsyncResult *res, 4286s # GError **error) 4286s # { 4286s # GObject *ret; 4286s # GObject *source_object; 4286s # source_object = g_async_result_get_source_object (res); 4286s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4286s # g_object_unref (source_object); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_sync: 4286s # * @connection: A #GDBusConnection. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @error: Return location for error or %NULL 4286s # * 4286s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4286s # * 4286s # * The calling thread is blocked until a reply is received. 4286s # * 4286s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4286s # * 4286s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4286s # */ 4286s # OrgProjectUsefulInterface * 4286s # org_project_useful_interface_proxy_new_sync ( 4286s # GDBusConnection *connection, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4286s # GCancellable *cancellable, 4286s # GError **error) 4286s # { 4286s # GInitable *ret; 4286s # 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); 4286s # if (ret != NULL) 4286s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4286s # else 4286s # return NULL; 4286s # } 4286s # 4286s # 4286s # /** 4286s # * org_project_useful_interface_proxy_new_for_bus: 4286s # * @bus_type: A #GBusType. 4286s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4286s # * @name: A bus name (well-known or unique). 4286s # * @object_path: An object path. 4286s # * @cancellable: (nullable): A #GCancellable or %NULL. 4286s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4286s # * @user_data: User data to pass to @callback. 4286s # * 4286s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4286s # * 4286s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4286s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4286s # * 4286s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4286s # */ 4286s # void 4286s # org_project_useful_interface_proxy_new_for_bus ( 4286s # GBusType bus_type, 4286s # GDBusProxyFlags flags, 4286s # const gchar *name, 4286s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s # 4293s # /tmp/tmpst2rphhm/tmpaik75k5u.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpaik75k5u.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.UsefulInterface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectUsefulInterface 4293s # * @title: OrgProjectUsefulInterface 4293s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "arg_d", 4293s # (gchar *) "d", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SingleArgMethodD", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-single-arg-method-d", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.UsefulInterface", 4293s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-useful-interface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_useful_interface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_useful_interface_method_marshal_single_arg_method_d ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-single-arg-method-d", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_useful_interface_method_marshal_single_arg_method_d, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_d: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_useful_interface_call_single_arg_method_d ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodD", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_d_finish: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_d_finish ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gdouble *out_arg_d, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(d)", 4293s # out_arg_d); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_d_sync: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_d_sync ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gdouble *out_arg_d, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodD", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(d)", 4293s # out_arg_d); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_complete_single_arg_method_d: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @arg_d: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodD() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_useful_interface_complete_single_arg_method_d ( 4293s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # gdouble arg_d) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(d)", 4293s # arg_d)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxy: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4293s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4293s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s # 4293s # /tmp/tmpst2rphhm/tmpuff6sr5x.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpuff6sr5x.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.UsefulInterface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectUsefulInterface 4293s # * @title: OrgProjectUsefulInterface 4293s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "arg_s", 4293s # (gchar *) "s", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SingleArgMethodS", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-single-arg-method-s", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.UsefulInterface", 4293s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-useful-interface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_useful_interface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_useful_interface_method_marshal_single_arg_method_s ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-single-arg-method-s", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_useful_interface_method_marshal_single_arg_method_s, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_s: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_useful_interface_call_single_arg_method_s ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodS", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_s_finish: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_s_finish ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar **out_arg_s, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(s)", 4293s # out_arg_s); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_s_sync: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_s_sync ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar **out_arg_s, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodS", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(s)", 4293s # out_arg_s); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_complete_single_arg_method_s: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @arg_s: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodS() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_useful_interface_complete_single_arg_method_s ( 4293s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # const gchar *arg_s) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(s)", 4293s # arg_s)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxy: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfacok - glib/codegen.py.test 4293s # Running test: glib/base64.test 4293s ok - glib/base64.test 4293s # Running test: glib/async-splice-output-stream.test 4293s ok - glib/async-splice-output-stream.test 4293s # Running test: glib/dynamictests.test 4293s ok - glib/dynamictests.test 4293s # Running test: glib/objects-refcount2.test 4293s # Executing: glib/objects-refcount2.test 4293s ok - glib/objects-refcount2.test 4293s # Running test: glib/tls-interaction.test 4293s ok - glib/tls-interaction.test 4293s # Running test: glib/signals-refcount2.test 4293s eProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4293s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4293s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s # 4293s # /tmp/tmpst2rphhm/tmpir61rfh9.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpir61rfh9.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.UsefulInterface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectUsefulInterface 4293s # * @title: OrgProjectUsefulInterface 4293s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "arg_o", 4293s # (gchar *) "o", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SingleArgMethodO", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-single-arg-method-o", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.UsefulInterface", 4293s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-useful-interface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_useful_interface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_useful_interface_method_marshal_single_arg_method_o ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-single-arg-method-o", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_useful_interface_method_marshal_single_arg_method_o, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_o: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_useful_interface_call_single_arg_method_o ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodO", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_o_finish: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_o_finish ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar **out_arg_o, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(o)", 4293s # out_arg_o); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_o_sync: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_o_sync ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar **out_arg_o, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodO", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(o)", 4293s # out_arg_o); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_complete_single_arg_method_o: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @arg_o: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodO() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_useful_interface_complete_single_arg_method_o ( 4293s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # const gchar *arg_o) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(o)", 4293s # arg_o)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxy: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4293s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4293s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s # 4293s # /tmp/tmpst2rphhm/tmp2ckklz8r.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmp2ckklz8r.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.UsefulInterface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectUsefulInterface 4293s # * @title: OrgProjectUsefulInterface 4293s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "arg_g", 4293s # (gchar *) "g", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SingleArgMethodG", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-single-arg-method-g", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.UsefulInterface", 4293s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-useful-interface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_useful_interface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_useful_interface_method_marshal_single_arg_method_g ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-single-arg-method-g", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_useful_interface_method_marshal_single_arg_method_g, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_g: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_useful_interface_call_single_arg_method_g ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodG", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_g_finish: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_g_finish ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar **out_arg_g, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(g)", 4293s # out_arg_g); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_g_sync: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_g_sync ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar **out_arg_g, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodG", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(g)", 4293s # out_arg_g); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_complete_single_arg_method_g: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @arg_g: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodG() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_useful_interface_complete_single_arg_method_g ( 4293s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # const gchar *arg_g) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(g)", 4293s # arg_g)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxy: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4293s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4293s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s # 4293s # /tmp/tmpst2rphhm/tmpw40w4dqu.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpw40w4dqu.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.UsefulInterface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectUsefulInterface 4293s # * @title: OrgProjectUsefulInterface 4293s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "arg_h", 4293s # (gchar *) "h", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SingleArgMethodH", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-single-arg-method-h", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.UsefulInterface", 4293s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-useful-interface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_useful_interface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_useful_interface_method_marshal_single_arg_method_h ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-single-arg-method-h", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_useful_interface_method_marshal_single_arg_method_h, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_h: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_useful_interface_call_single_arg_method_h ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodH", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_h_finish: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_h_finish ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GVariant **out_arg_h, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(@h)", 4293s # out_arg_h); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_h_sync: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_h_sync ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GVariant **out_arg_h, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodH", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(@h)", 4293s # out_arg_h); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_complete_single_arg_method_h: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @arg_h: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodH() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_useful_interface_complete_single_arg_method_h ( 4293s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # GVariant *arg_h) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(@h)", 4293s # arg_h)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxy: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4293s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4293s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s # 4293s # /tmp/tmpst2rphhm/tmpjqaxt8b9.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpjqaxt8b9.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.UsefulInterface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectUsefulInterface 4293s # * @title: OrgProjectUsefulInterface 4293s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "arg_ay", 4293s # (gchar *) "ay", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SingleArgMethodAy", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-single-arg-method-ay", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.UsefulInterface", 4293s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-useful-interface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_useful_interface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-single-arg-method-ay", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_useful_interface_method_marshal_single_arg_method_ay, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_ay: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_useful_interface_call_single_arg_method_ay ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodAy", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_ay_finish: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_ay_finish ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar **out_arg_ay, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(^ay)", 4293s # out_arg_ay); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_ay_sync: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_ay_sync ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar **out_arg_ay, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodAy", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(^ay)", 4293s # out_arg_ay); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_complete_single_arg_method_ay: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @arg_ay: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAy() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_useful_interface_complete_single_arg_method_ay ( 4293s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # const gchar *arg_ay) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(^ay)", 4293s # arg_ay)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxy: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4293s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4293s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s # 4293s # /tmp/tmpst2rphhm/tmpsyvpof3h.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpsyvpof3h.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.UsefulInterface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectUsefulInterface 4293s # * @title: OrgProjectUsefulInterface 4293s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "arg_as", 4293s # (gchar *) "as", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SingleArgMethodAs", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-single-arg-method-as", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.UsefulInterface", 4293s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-useful-interface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_useful_interface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_useful_interface_method_marshal_single_arg_method_as ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-single-arg-method-as", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_useful_interface_method_marshal_single_arg_method_as, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_as: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_useful_interface_call_single_arg_method_as ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodAs", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_as_finish: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_as_finish ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar ***out_arg_as, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(^as)", 4293s # out_arg_as); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_as_sync: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_as_sync ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar ***out_arg_as, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodAs", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(^as)", 4293s # out_arg_as); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_complete_single_arg_method_as: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @arg_as: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_useful_interface_complete_single_arg_method_as ( 4293s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # const gchar *const *arg_as) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(^as)", 4293s # arg_as)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxy: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4293s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4293s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s # 4293s # /tmp/tmpst2rphhm/tmpvmyj0cdo.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpvmyj0cdo.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.UsefulInterface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectUsefulInterface 4293s # * @title: OrgProjectUsefulInterface 4293s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "arg_ao", 4293s # (gchar *) "ao", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SingleArgMethodAo", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-single-arg-method-ao", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.UsefulInterface", 4293s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-useful-interface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_useful_interface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-single-arg-method-ao", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_useful_interface_method_marshal_single_arg_method_ao, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_ao: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_useful_interface_call_single_arg_method_ao ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodAo", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_ao_finish: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_ao_finish ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar ***out_arg_ao, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(^ao)", 4293s # out_arg_ao); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_ao_sync: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_ao_sync ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar ***out_arg_ao, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodAo", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(^ao)", 4293s # out_arg_ao); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_complete_single_arg_method_ao: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @arg_ao: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAo() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_useful_interface_complete_single_arg_method_ao ( 4293s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # const gchar *const *arg_ao) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(^ao)", 4293s # arg_ao)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxy: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4293s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4293s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s # 4293s # /tmp/tmpst2rphhm/tmpnni3p9kl.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpnni3p9kl.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.UsefulInterface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectUsefulInterface 4293s # * @title: OrgProjectUsefulInterface 4293s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "arg_aay", 4293s # (gchar *) "aay", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SingleArgMethodAay", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-single-arg-method-aay", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.UsefulInterface", 4293s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-useful-interface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_useful_interface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-single-arg-method-aay", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_useful_interface_method_marshal_single_arg_method_aay, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_aay: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_useful_interface_call_single_arg_method_aay ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodAay", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_aay_finish: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_aay_finish ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar ***out_arg_aay, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(^aay)", 4293s # out_arg_aay); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_aay_sync: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_aay_sync ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # gchar ***out_arg_aay, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodAay", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(^aay)", 4293s # out_arg_aay); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_complete_single_arg_method_aay: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @arg_aay: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAay() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_useful_interface_complete_single_arg_method_aay ( 4293s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # const gchar *const *arg_aay) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(^aay)", 4293s # arg_aay)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxy: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4293s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4293s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s # 4293s # /tmp/tmpst2rphhm/tmpfxkrdfcp.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpst2rphhm/tmpfxkrdfcp.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.UsefulInterface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectUsefulInterface 4293s # * @title: OrgProjectUsefulInterface 4293s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "arg_asv", 4293s # (gchar *) "a{sv}", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SingleArgMethodAsv", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-single-arg-method-asv", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 4293s # { 4293s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.UsefulInterface", 4293s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-useful-interface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_useful_interface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4293s # */ 4293s # 4293s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-single-arg-method-asv", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_useful_interface_method_marshal_single_arg_method_asv, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_asv: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_useful_interface_call_single_arg_method_asv ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodAsv", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_asv_finish: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_asv_finish ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GVariant **out_arg_asv, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(@a{sv})", 4293s # out_arg_asv); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_call_single_arg_method_asv_sync: 4293s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 4293s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_useful_interface_call_single_arg_method_asv_sync ( 4293s # OrgProjectUsefulInterface *proxy, 4293s # GVariant **out_arg_asv, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SingleArgMethodAsv", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(@a{sv})", 4293s # out_arg_asv); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_complete_single_arg_method_asv: 4293s # * @object: A #OrgProjectUsefulInterface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @arg_asv: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAsv() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_useful_interface_complete_single_arg_method_asv ( 4293s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # GVariant *arg_asv) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(@a{sv})", 4293s # arg_asv)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxy: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4293s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4293s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_useful_interface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeleton: 4293s # * 4293s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectUsefulInterfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_useful_interface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_useful_interface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_useful_interface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4293s # { 4293s # _org_project_useful_interface_skeleton_handle_method_call, 4293s # _org_project_useful_interface_skeleton_handle_get_property, 4293s # _org_project_useful_interface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_useful_interface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_useful_interface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_useful_interface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectUsefulInterface * 4293s # org_project_useful_interface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 4293s # gdbus-codegen: /usr/bin/gdbus-codegen 4293s # tmpdir: /tmp/tmps_lybks0 4293s # /tmp/tmps_lybks0/tmpxmb5ghb7.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps_lybks0/tmpxmb5ghb7.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # gboolean arg_an_b, 4293s # guchar arg_an_y, 4293s # gint16 arg_an_n, 4293s # guint16 arg_an_q, 4293s # gint arg_an_i, 4293s # guint arg_an_u, 4293s # gint64 arg_an_x, 4293s # guint64 arg_an_t, 4293s # gdouble arg_an_d, 4293s # const gchar *arg_an_s, 4293s # const gchar *arg_an_o, 4293s # const gchar *arg_an_g, 4293s # GVariant *arg_an_h, 4293s # const gchar *arg_an_ay, 4293s # const gchar *const *arg_an_as, 4293s # const gchar *const *arg_an_ao, 4293s # const gchar *const *arg_an_aay, 4293s # GVariant *arg_an_asv, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 20); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # g_marshal_value_peek_boolean (param_values + 2), 4293s # g_marshal_value_peek_uchar (param_values + 3), 4293s # g_marshal_value_peek_int (param_values + 4), 4293s # g_marshal_value_peek_uint (param_values + 5), 4293s # g_marshal_value_peek_int (param_values + 6), 4293s # g_marshal_value_peek_uint (param_values + 7), 4293s # g_marshal_value_peek_int64 (param_values + 8), 4293s # g_marshal_value_peek_uint64 (param_values + 9), 4293s # g_marshal_value_peek_double (param_values + 10), 4293s # g_marshal_value_peek_string (param_values + 11), 4293s # g_marshal_value_peek_string (param_values + 12), 4293s # g_marshal_value_peek_string (param_values + 13), 4293s # g_marshal_value_peek_variant (param_values + 14), 4293s # g_marshal_value_peek_string (param_values + 15), 4293s # g_marshal_value_peek_boxed (param_values + 16), 4293s # g_marshal_value_peek_boxed (param_values + 17), 4293s # g_marshal_value_peek_boxed (param_values + 18), 4293s # g_marshal_value_peek_variant (param_values + 19), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.CallableIface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectCallableIface 4293s # * @title: OrgProjectCallableIface 4293s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.CallableIface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_b", 4293s # (gchar *) "b", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_y", 4293s # (gchar *) "y", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_n", 4293s # (gchar *) "n", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_q", 4293s # (gchar *) "q", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_i", 4293s # (gchar *) "i", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_u", 4293s # (gchar *) "u", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_x", 4293s # (gchar *) "x", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_t", 4293s # (gchar *) "t", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_d", 4293s # (gchar *) "d", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_s", 4293s # (gchar *) "s", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_o", 4293s # (gchar *) "o", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_g", 4293s # (gchar *) "g", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_h", 4293s # (gchar *) "h", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_ay", 4293s # (gchar *) "ay", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_as", 4293s # (gchar *) "as", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_ao", 4293s # (gchar *) "ao", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_aay", 4293s # (gchar *) "aay", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_asv", 4293s # (gchar *) "a{sv}", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 4293s # { 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "MethodWithManyArgs", 4293s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "handle-method-with-many-args", 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_b", 4293s # (gchar *) "b", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_y", 4293s # (gchar *) "y", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_n", 4293s # (gchar *) "n", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_q", 4293s # (gchar *) "q", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_i", 4293s # (gchar *) "i", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_u", 4293s # (gchar *) "u", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_x", 4293s # (gchar *) "x", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_t", 4293s # (gchar *) "t", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_d", 4293s # (gchar *) "d", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_s", 4293s # (gchar *) "s", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_o", 4293s # (gchar *) "o", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_g", 4293s # (gchar *) "g", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_h", 4293s # (gchar *) "h", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_ay", 4293s # (gchar *) "ay", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_as", 4293s # (gchar *) "as", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_ao", 4293s # (gchar *) "ao", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_aay", 4293s # (gchar *) "aay", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_asv", 4293s # (gchar *) "a{sv}", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 4293s # { 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "SameMethodWithManyArgs", 4293s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "handle-same-method-with-many-args", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 4293s # { 4293s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 4293s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.CallableIface", 4293s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-callable-iface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_callable_iface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_callable_iface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_callable_iface_method_marshal_method_with_many_args ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _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, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # inline static void 4293s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _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, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectCallableIface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectCallableIfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 4293s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.CallableIface. 4293s # */ 4293s # 4293s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectCallableIface::handle-method-with-many-args: 4293s # * @object: A #OrgProjectCallableIface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * @arg_an_b: Argument passed by remote caller. 4293s # * @arg_an_y: Argument passed by remote caller. 4293s # * @arg_an_n: Argument passed by remote caller. 4293s # * @arg_an_q: Argument passed by remote caller. 4293s # * @arg_an_i: Argument passed by remote caller. 4293s # * @arg_an_u: Argument passed by remote caller. 4293s # * @arg_an_x: Argument passed by remote caller. 4293s # * @arg_an_t: Argument passed by remote caller. 4293s # * @arg_an_d: Argument passed by remote caller. 4293s # * @arg_an_s: Argument passed by remote caller. 4293s # * @arg_an_o: Argument passed by remote caller. 4293s # * @arg_an_g: Argument passed by remote caller. 4293s # * @arg_an_h: Argument passed by remote caller. 4293s # * @arg_an_ay: Argument passed by remote caller. 4293s # * @arg_an_as: Argument passed by remote caller. 4293s # * @arg_an_ao: Argument passed by remote caller. 4293s # * @arg_an_aay: Argument passed by remote caller. 4293s # * @arg_an_asv: Argument passed by remote caller. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-method-with-many-args", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_callable_iface_method_marshal_method_with_many_args, 4293s # G_TYPE_BOOLEAN, 4293s # 19, 4293s # 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); 4293s # 4293s # /** 4293s # * OrgProjectCallableIface::handle-same-method-with-many-args: 4293s # * @object: A #OrgProjectCallableIface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * @arg_an_b: Argument passed by remote caller. 4293s # * @arg_an_y: Argument passed by remote caller. 4293s # * @arg_an_n: Argument passed by remote caller. 4293s # * @arg_an_q: Argument passed by remote caller. 4293s # * @arg_an_i: Argument passed by remote caller. 4293s # * @arg_an_u: Argument passed by remote caller. 4293s # * @arg_an_x: Argument passed by remote caller. 4293s # * @arg_an_t: Argument passed by remote caller. 4293s # * @arg_an_d: Argument passed by remote caller. 4293s # * @arg_an_s: Argument passed by remote caller. 4293s # * @arg_an_o: Argument passed by remote caller. 4293s # * @arg_an_g: Argument passed by remote caller. 4293s # * @arg_an_h: Argument passed by remote caller. 4293s # * @arg_an_ay: Argument passed by remote caller. 4293s # * @arg_an_as: Argument passed by remote caller. 4293s # * @arg_an_ao: Argument passed by remote caller. 4293s # * @arg_an_aay: Argument passed by remote caller. 4293s # * @arg_an_asv: Argument passed by remote caller. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-same-method-with-many-args", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_callable_iface_method_marshal_same_method_with_many_args, 4293s # G_TYPE_BOOLEAN, 4293s # 19, 4293s # 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); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_call_method_with_many_args: 4293s # * @proxy: A #OrgProjectCallableIfaceProxy. 4293s # * @arg_an_b: Argument to pass with the method invocation. 4293s # * @arg_an_y: Argument to pass with the method invocation. 4293s # * @arg_an_n: Argument to pass with the method invocation. 4293s # * @arg_an_q: Argument to pass with the method invocation. 4293s # * @arg_an_i: Argument to pass with the method invocation. 4293s # * @arg_an_u: Argument to pass with the method invocation. 4293s # * @arg_an_x: Argument to pass with the method invocation. 4293s # * @arg_an_t: Argument to pass with the method invocation. 4293s # * @arg_an_d: Argument to pass with the method invocation. 4293s # * @arg_an_s: Argument to pass with the method invocation. 4293s # * @arg_an_o: Argument to pass with the method invocation. 4293s # * @arg_an_g: Argument to pass with the method invocation. 4293s # * @arg_an_h: Argument to pass with the method invocation. 4293s # * @arg_an_ay: Argument to pass with the method invocation. 4293s # * @arg_an_as: Argument to pass with the method invocation. 4293s # * @arg_an_ao: Argument to pass with the method invocation. 4293s # * @arg_an_aay: Argument to pass with the method invocation. 4293s # * @arg_an_asv: Argument to pass with the method invocation. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_callable_iface_call_method_with_many_args ( 4293s # OrgProjectCallableIface *proxy, 4293s # gboolean arg_an_b, 4293s # guchar arg_an_y, 4293s # gint16 arg_an_n, 4293s # guint16 arg_an_q, 4293s # gint arg_an_i, 4293s # guint arg_an_u, 4293s # gint64 arg_an_x, 4293s # guint64 arg_an_t, 4293s # gdouble arg_an_d, 4293s # const gchar *arg_an_s, 4293s # const gchar *arg_an_o, 4293s # const gchar *arg_an_g, 4293s # GVariant *arg_an_h, 4293s # const gchar *arg_an_ay, 4293s # const gchar *const *arg_an_as, 4293s # const gchar *const *arg_an_ao, 4293s # const gchar *const *arg_an_aay, 4293s # GVariant *arg_an_asv, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "MethodWithManyArgs", 4293s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4293s # arg_an_b, 4293s # arg_an_y, 4293s # arg_an_n, 4293s # arg_an_q, 4293s # arg_an_i, 4293s # arg_an_u, 4293s # arg_an_x, 4293s # arg_an_t, 4293s # arg_an_d, 4293s # arg_an_s, 4293s # arg_an_o, 4293s # arg_an_g, 4293s # arg_an_h, 4293s # arg_an_ay, 4293s # arg_an_as, 4293s # arg_an_ao, 4293s # arg_an_aay, 4293s # arg_an_asv), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_call_method_with_many_args_finish: 4293s # * @proxy: A #OrgProjectCallableIfaceProxy. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_callable_iface_call_method_with_many_args_finish ( 4293s # OrgProjectCallableIface *proxy, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "()"); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_call_method_with_many_args_sync: 4293s # * @proxy: A #OrgProjectCallableIfaceProxy. 4293s # * @arg_an_b: Argument to pass with the method invocation. 4293s # * @arg_an_y: Argument to pass with the method invocation. 4293s # * @arg_an_n: Argument to pass with the method invocation. 4293s # * @arg_an_q: Argument to pass with the method invocation. 4293s # * @arg_an_i: Argument to pass with the method invocation. 4293s # * @arg_an_u: Argument to pass with the method invocation. 4293s # * @arg_an_x: Argument to pass with the method invocation. 4293s # * @arg_an_t: Argument to pass with the method invocation. 4293s # * @arg_an_d: Argument to pass with the method invocation. 4293s # * @arg_an_s: Argument to pass with the method invocation. 4293s # * @arg_an_o: Argument to pass with the method invocation. 4293s # * @arg_an_g: Argument to pass with the method invocation. 4293s # * @arg_an_h: Argument to pass with the method invocation. 4293s # * @arg_an_ay: Argument to pass with the method invocation. 4293s # * @arg_an_as: Argument to pass with the method invocation. 4293s # * @arg_an_ao: Argument to pass with the method invocation. 4293s # * @arg_an_aay: Argument to pass with the method invocation. 4293s # * @arg_an_asv: Argument to pass with the method invocation. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_callable_iface_call_method_with_many_args_sync ( 4293s # OrgProjectCallableIface *proxy, 4293s # gboolean arg_an_b, 4293s # guchar arg_an_y, 4293s # gint16 arg_an_n, 4293s # guint16 arg_an_q, 4293s # gint arg_an_i, 4293s # guint arg_an_u, 4293s # gint64 arg_an_x, 4293s # guint64 arg_an_t, 4293s # gdouble arg_an_d, 4293s # const gchar *arg_an_s, 4293s # const gchar *arg_an_o, 4293s # const gchar *arg_an_g, 4293s # GVariant *arg_an_h, 4293s # const gchar *arg_an_ay, 4293s # const gchar *const *arg_an_as, 4293s # const gchar *const *arg_an_ao, 4293s # const gchar *const *arg_an_aay, 4293s # GVariant *arg_an_asv, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "MethodWithManyArgs", 4293s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4293s # arg_an_b, 4293s # arg_an_y, 4293s # arg_an_n, 4293s # arg_an_q, 4293s # arg_an_i, 4293s # arg_an_u, 4293s # arg_an_x, 4293s # arg_an_t, 4293s # arg_an_d, 4293s # arg_an_s, 4293s # arg_an_o, 4293s # arg_an_g, 4293s # arg_an_h, 4293s # arg_an_ay, 4293s # arg_an_as, 4293s # arg_an_ao, 4293s # arg_an_aay, 4293s # arg_an_asv), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "()"); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_call_same_method_with_many_args: 4293s # * @proxy: A #OrgProjectCallableIfaceProxy. 4293s # * @arg_an_b: Argument to pass with the method invocation. 4293s # * @arg_an_y: Argument to pass with the method invocation. 4293s # * @arg_an_n: Argument to pass with the method invocation. 4293s # * @arg_an_q: Argument to pass with the method invocation. 4293s # * @arg_an_i: Argument to pass with the method invocation. 4293s # * @arg_an_u: Argument to pass with the method invocation. 4293s # * @arg_an_x: Argument to pass with the method invocation. 4293s # * @arg_an_t: Argument to pass with the method invocation. 4293s # * @arg_an_d: Argument to pass with the method invocation. 4293s # * @arg_an_s: Argument to pass with the method invocation. 4293s # * @arg_an_o: Argument to pass with the method invocation. 4293s # * @arg_an_g: Argument to pass with the method invocation. 4293s # * @arg_an_h: Argument to pass with the method invocation. 4293s # * @arg_an_ay: Argument to pass with the method invocation. 4293s # * @arg_an_as: Argument to pass with the method invocation. 4293s # * @arg_an_ao: Argument to pass with the method invocation. 4293s # * @arg_an_aay: Argument to pass with the method invocation. 4293s # * @arg_an_asv: Argument to pass with the method invocation. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_callable_iface_call_same_method_with_many_args ( 4293s # OrgProjectCallableIface *proxy, 4293s # gboolean arg_an_b, 4293s # guchar arg_an_y, 4293s # gint16 arg_an_n, 4293s # guint16 arg_an_q, 4293s # gint arg_an_i, 4293s # guint arg_an_u, 4293s # gint64 arg_an_x, 4293s # guint64 arg_an_t, 4293s # gdouble arg_an_d, 4293s # const gchar *arg_an_s, 4293s # const gchar *arg_an_o, 4293s # const gchar *arg_an_g, 4293s # GVariant *arg_an_h, 4293s # const gchar *arg_an_ay, 4293s # const gchar *const *arg_an_as, 4293s # const gchar *const *arg_an_ao, 4293s # const gchar *const *arg_an_aay, 4293s # GVariant *arg_an_asv, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "SameMethodWithManyArgs", 4293s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4293s # arg_an_b, 4293s # arg_an_y, 4293s # arg_an_n, 4293s # arg_an_q, 4293s # arg_an_i, 4293s # arg_an_u, 4293s # arg_an_x, 4293s # arg_an_t, 4293s # arg_an_d, 4293s # arg_an_s, 4293s # arg_an_o, 4293s # arg_an_g, 4293s # arg_an_h, 4293s # arg_an_ay, 4293s # arg_an_as, 4293s # arg_an_ao, 4293s # arg_an_aay, 4293s # arg_an_asv), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_call_same_method_with_many_args_finish: 4293s # * @proxy: A #OrgProjectCallableIfaceProxy. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_callable_iface_call_same_method_with_many_args_finish ( 4293s # OrgProjectCallableIface *proxy, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "()"); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_call_same_method_with_many_args_sync: 4293s # * @proxy: A #OrgProjectCallableIfaceProxy. 4293s # * @arg_an_b: Argument to pass with the method invocation. 4293s # * @arg_an_y: Argument to pass with the method invocation. 4293s # * @arg_an_n: Argument to pass with the method invocation. 4293s # * @arg_an_q: Argument to pass with the method invocation. 4293s # * @arg_an_i: Argument to pass with the method invocation. 4293s # * @arg_an_u: Argument to pass with the method invocation. 4293s # * @arg_an_x: Argument to pass with the method invocation. 4293s # * @arg_an_t: Argument to pass with the method invocation. 4293s # * @arg_an_d: Argument to pass with the method invocation. 4293s # * @arg_an_s: Argument to pass with the method invocation. 4293s # * @arg_an_o: Argument to pass with the method invocation. 4293s # * @arg_an_g: Argument to pass with the method invocation. 4293s # * @arg_an_h: Argument to pass with the method invocation. 4293s # * @arg_an_ay: Argument to pass with the method invocation. 4293s # * @arg_an_as: Argument to pass with the method invocation. 4293s # * @arg_an_ao: Argument to pass with the method invocation. 4293s # * @arg_an_aay: Argument to pass with the method invocation. 4293s # * @arg_an_asv: Argument to pass with the method invocation. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_callable_iface_call_same_method_with_many_args_sync ( 4293s # OrgProjectCallableIface *proxy, 4293s # gboolean arg_an_b, 4293s # guchar arg_an_y, 4293s # gint16 arg_an_n, 4293s # guint16 arg_an_q, 4293s # gint arg_an_i, 4293s # guint arg_an_u, 4293s # gint64 arg_an_x, 4293s # guint64 arg_an_t, 4293s # gdouble arg_an_d, 4293s # const gchar *arg_an_s, 4293s # const gchar *arg_an_o, 4293s # const gchar *arg_an_g, 4293s # GVariant *arg_an_h, 4293s # const gchar *arg_an_ay, 4293s # const gchar *const *arg_an_as, 4293s # const gchar *const *arg_an_ao, 4293s # const gchar *const *arg_an_aay, 4293s # GVariant *arg_an_asv, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "SameMethodWithManyArgs", 4293s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4293s # arg_an_b, 4293s # arg_an_y, 4293s # arg_an_n, 4293s # arg_an_q, 4293s # arg_an_i, 4293s # arg_an_u, 4293s # arg_an_x, 4293s # arg_an_t, 4293s # arg_an_d, 4293s # arg_an_s, 4293s # arg_an_o, 4293s # arg_an_g, 4293s # arg_an_h, 4293s # arg_an_ay, 4293s # arg_an_as, 4293s # arg_an_ao, 4293s # arg_an_aay, 4293s # arg_an_asv), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "()"); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_complete_method_with_many_args: 4293s # * @object: A #OrgProjectCallableIface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the MethodWithManyArgs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_callable_iface_complete_method_with_many_args ( 4293s # OrgProjectCallableIface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("()")); 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_complete_same_method_with_many_args: 4293s # * @object: A #OrgProjectCallableIface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the SameMethodWithManyArgs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_callable_iface_complete_same_method_with_many_args ( 4293s # OrgProjectCallableIface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("()")); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectCallableIfaceProxy: 4293s # * 4293s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectCallableIfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectCallableIfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectCallableIfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_callable_iface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 4293s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 4293s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_callable_iface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # 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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectCallableIface * 4293s # org_project_callable_iface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectCallableIface * 4293s # org_project_callable_iface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_callable_iface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # 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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectCallableIface * 4293s # org_project_callable_iface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectCallableIface * 4293s # org_project_callable_iface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectCallableIfaceSkeleton: 4293s # * 4293s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectCallableIfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectCallableIfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectCallableIfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_callable_iface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_callable_iface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_callable_iface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 4293s # { 4293s # _org_project_callable_iface_skeleton_handle_method_call, 4293s # _org_project_callable_iface_skeleton_handle_get_property, 4293s # _org_project_callable_iface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_callable_iface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_callable_iface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectCallableIface * 4293s # org_project_callable_iface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.OtherCallableIface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectOtherCallableIface 4293s # * @title: OrgProjectOtherCallableIface 4293s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_b", 4293s # (gchar *) "b", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_y", 4293s # (gchar *) "y", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_n", 4293s # (gchar *) "n", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_q", 4293s # (gchar *) "q", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_i", 4293s # (gchar *) "i", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_u", 4293s # (gchar *) "u", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_x", 4293s # (gchar *) "x", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_t", 4293s # (gchar *) "t", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_d", 4293s # (gchar *) "d", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_s", 4293s # (gchar *) "s", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_o", 4293s # (gchar *) "o", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_g", 4293s # (gchar *) "g", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_h", 4293s # (gchar *) "h", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_ay", 4293s # (gchar *) "ay", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_as", 4293s # (gchar *) "as", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_ao", 4293s # (gchar *) "ao", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_aay", 4293s # (gchar *) "aay", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_asv", 4293s # (gchar *) "a{sv}", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 4293s # { 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "MethodWithManyArgs", 4293s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "handle-method-with-many-args", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 4293s # { 4293s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.OtherCallableIface", 4293s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-other-callable-iface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_other_callable_iface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _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, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectOtherCallableIface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectOtherCallableIfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 4293s # */ 4293s # 4293s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 4293s # * @object: A #OrgProjectOtherCallableIface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * @arg_an_b: Argument passed by remote caller. 4293s # * @arg_an_y: Argument passed by remote caller. 4293s # * @arg_an_n: Argument passed by remote caller. 4293s # * @arg_an_q: Argument passed by remote caller. 4293s # * @arg_an_i: Argument passed by remote caller. 4293s # * @arg_an_u: Argument passed by remote caller. 4293s # * @arg_an_x: Argument passed by remote caller. 4293s # * @arg_an_t: Argument passed by remote caller. 4293s # * @arg_an_d: Argument passed by remote caller. 4293s # * @arg_an_s: Argument passed by remote caller. 4293s # * @arg_an_o: Argument passed by remote caller. 4293s # * @arg_an_g: Argument passed by remote caller. 4293s # * @arg_an_h: Argument passed by remote caller. 4293s # * @arg_an_ay: Argument passed by remote caller. 4293s # * @arg_an_as: Argument passed by remote caller. 4293s # * @arg_an_ao: Argument passed by remote caller. 4293s # * @arg_an_aay: Argument passed by remote caller. 4293s # * @arg_an_asv: Argument passed by remote caller. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-method-with-many-args", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_other_callable_iface_method_marshal_method_with_many_args, 4293s # G_TYPE_BOOLEAN, 4293s # 19, 4293s # 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); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_call_method_with_many_args: 4293s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 4293s # * @arg_an_b: Argument to pass with the method invocation. 4293s # * @arg_an_y: Argument to pass with the method invocation. 4293s # * @arg_an_n: Argument to pass with the method invocation. 4293s # * @arg_an_q: Argument to pass with the method invocation. 4293s # * @arg_an_i: Argument to pass with the method invocation. 4293s # * @arg_an_u: Argument to pass with the method invocation. 4293s # * @arg_an_x: Argument to pass with the method invocation. 4293s # * @arg_an_t: Argument to pass with the method invocation. 4293s # * @arg_an_d: Argument to pass with the method invocation. 4293s # * @arg_an_s: Argument to pass with the method invocation. 4293s # * @arg_an_o: Argument to pass with the method invocation. 4293s # * @arg_an_g: Argument to pass with the method invocation. 4293s # * @arg_an_h: Argument to pass with the method invocation. 4293s # * @arg_an_ay: Argument to pass with the method invocation. 4293s # * @arg_an_as: Argument to pass with the method invocation. 4293s # * @arg_an_ao: Argument to pass with the method invocation. 4293s # * @arg_an_aay: Argument to pass with the method invocation. 4293s # * @arg_an_asv: Argument to pass with the method invocation. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_other_callable_iface_call_method_with_many_args ( 4293s # OrgProjectOtherCallableIface *proxy, 4293s # gboolean arg_an_b, 4293s # guchar arg_an_y, 4293s # gint16 arg_an_n, 4293s # guint16 arg_an_q, 4293s # gint arg_an_i, 4293s # guint arg_an_u, 4293s # gint64 arg_an_x, 4293s # guint64 arg_an_t, 4293s # gdouble arg_an_d, 4293s # const gchar *arg_an_s, 4293s # const gchar *arg_an_o, 4293s # const gchar *arg_an_g, 4293s # GVariant *arg_an_h, 4293s # const gchar *arg_an_ay, 4293s # const gchar *const *arg_an_as, 4293s # const gchar *const *arg_an_ao, 4293s # const gchar *const *arg_an_aay, 4293s # GVariant *arg_an_asv, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "MethodWithManyArgs", 4293s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4293s # arg_an_b, 4293s # arg_an_y, 4293s # arg_an_n, 4293s # arg_an_q, 4293s # arg_an_i, 4293s # arg_an_u, 4293s # arg_an_x, 4293s # arg_an_t, 4293s # arg_an_d, 4293s # arg_an_s, 4293s # arg_an_o, 4293s # arg_an_g, 4293s # arg_an_h, 4293s # arg_an_ay, 4293s # arg_an_as, 4293s # arg_an_ao, 4293s # arg_an_aay, 4293s # arg_an_asv), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_call_method_with_many_args_finish: 4293s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_other_callable_iface_call_method_with_many_args_finish ( 4293s # OrgProjectOtherCallableIface *proxy, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "()"); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_call_method_with_many_args_sync: 4293s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 4293s # * @arg_an_b: Argument to pass with the method invocation. 4293s # * @arg_an_y: Argument to pass with the method invocation. 4293s # * @arg_an_n: Argument to pass with the method invocation. 4293s # * @arg_an_q: Argument to pass with the method invocation. 4293s # * @arg_an_i: Argument to pass with the method invocation. 4293s # * @arg_an_u: Argument to pass with the method invocation. 4293s # * @arg_an_x: Argument to pass with the method invocation. 4293s # * @arg_an_t: Argument to pass with the method invocation. 4293s # * @arg_an_d: Argument to pass with the method invocation. 4293s # * @arg_an_s: Argument to pass with the method invocation. 4293s # * @arg_an_o: Argument to pass with the method invocation. 4293s # * @arg_an_g: Argument to pass with the method invocation. 4293s # * @arg_an_h: Argument to pass with the method invocation. 4293s # * @arg_an_ay: Argument to pass with the method invocation. 4293s # * @arg_an_as: Argument to pass with the method invocation. 4293s # * @arg_an_ao: Argument to pass with the method invocation. 4293s # * @arg_an_aay: Argument to pass with the method invocation. 4293s # * @arg_an_asv: Argument to pass with the method invocation. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_other_callable_iface_call_method_with_many_args_sync ( 4293s # OrgProjectOtherCallableIface *proxy, 4293s # gboolean arg_an_b, 4293s # guchar arg_an_y, 4293s # gint16 arg_an_n, 4293s # guint16 arg_an_q, 4293s # gint arg_an_i, 4293s # guint arg_an_u, 4293s # gint64 arg_an_x, 4293s # guint64 arg_an_t, 4293s # gdouble arg_an_d, 4293s # const gchar *arg_an_s, 4293s # const gchar *arg_an_o, 4293s # const gchar *arg_an_g, 4293s # GVariant *arg_an_h, 4293s # const gchar *arg_an_ay, 4293s # const gchar *const *arg_an_as, 4293s # const gchar *const *arg_an_ao, 4293s # const gchar *const *arg_an_aay, 4293s # GVariant *arg_an_asv, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "MethodWithManyArgs", 4293s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4293s # arg_an_b, 4293s # arg_an_y, 4293s # arg_an_n, 4293s # arg_an_q, 4293s # arg_an_i, 4293s # arg_an_u, 4293s # arg_an_x, 4293s # arg_an_t, 4293s # arg_an_d, 4293s # arg_an_s, 4293s # arg_an_o, 4293s # arg_an_g, 4293s # arg_an_h, 4293s # arg_an_ay, 4293s # arg_an_as, 4293s # arg_an_ao, 4293s # arg_an_aay, 4293s # arg_an_asv), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "()"); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_complete_method_with_many_args: 4293s # * @object: A #OrgProjectOtherCallableIface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the MethodWithManyArgs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_other_callable_iface_complete_method_with_many_args ( 4293s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("()")); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectOtherCallableIfaceProxy: 4293s # * 4293s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectOtherCallableIfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectOtherCallableIfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_other_callable_iface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 4293s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 4293s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_other_callable_iface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # 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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectOtherCallableIface * 4293s # org_project_other_callable_iface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectOtherCallableIface * 4293s # org_project_other_callable_iface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_other_callable_iface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # 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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectOtherCallableIface * 4293s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectOtherCallableIface * 4293s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectOtherCallableIfaceSkeleton: 4293s # * 4293s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectOtherCallableIfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_other_callable_iface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_other_callable_iface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_other_callable_iface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 4293s # { 4293s # _org_project_other_callable_iface_skeleton_handle_method_call, 4293s # _org_project_other_callable_iface_skeleton_handle_get_property, 4293s # _org_project_other_callable_iface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_other_callable_iface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_other_callable_iface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectOtherCallableIface * 4293s # org_project_other_callable_iface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 4293s # gdbus-codegen: /usr/bin/gdbus-codegen 4293s # tmpdir: /tmp/tmp_o_r364p 4293s # /tmp/tmp_o_r364p/tmpck5alb3l.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_o_r364p/tmpck5alb3l.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 2); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface org.project.CallableIface 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:OrgProjectCallableIface 4293s # * @title: OrgProjectCallableIface 4293s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 4293s # * 4293s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for org.project.CallableIface ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_b", 4293s # (gchar *) "b", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_y", 4293s # (gchar *) "y", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_n", 4293s # (gchar *) "n", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_q", 4293s # (gchar *) "q", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_i", 4293s # (gchar *) "i", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_u", 4293s # (gchar *) "u", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_x", 4293s # (gchar *) "x", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_t", 4293s # (gchar *) "t", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_d", 4293s # (gchar *) "d", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_s", 4293s # (gchar *) "s", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_o", 4293s # (gchar *) "o", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_g", 4293s # (gchar *) "g", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_h", 4293s # (gchar *) "h", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_ay", 4293s # (gchar *) "ay", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_as", 4293s # (gchar *) "as", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_ao", 4293s # (gchar *) "ao", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_aay", 4293s # (gchar *) "aay", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "an_asv", 4293s # (gchar *) "a{sv}", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 4293s # { 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 4293s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "MethodWithManyArgs", 4293s # NULL, 4293s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-method-with-many-args", 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 4293s # { 4293s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "org.project.CallableIface", 4293s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "org-project-callable-iface", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * org_project_callable_iface_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # org_project_callable_iface_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # org_project_callable_iface_method_marshal_method_with_many_args ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * OrgProjectCallableIface: 4293s # * 4293s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectCallableIfaceIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 4293s # * 4293s # * Virtual table for the D-Bus interface org.project.CallableIface. 4293s # */ 4293s # 4293s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 4293s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * OrgProjectCallableIface::handle-method-with-many-args: 4293s # * @object: A #OrgProjectCallableIface. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-method-with-many-args", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # org_project_callable_iface_method_marshal_method_with_many_args, 4293s # G_TYPE_BOOLEAN, 4293s # 1, 4293s # G_TYPE_DBUS_METHOD_INVOCATION); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_call_method_with_many_args: 4293s # * @proxy: A #OrgProjectCallableIfaceProxy. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # org_project_callable_iface_call_method_with_many_args ( 4293s # OrgProjectCallableIface *proxy, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4293s # "MethodWithManyArgs", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_call_method_with_many_args_finish: 4293s # * @proxy: A #OrgProjectCallableIfaceProxy. 4293s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_callable_iface_call_method_with_many_args_finish ( 4293s # OrgProjectCallableIface *proxy, 4293s # gboolean *out_an_b, 4293s # guchar *out_an_y, 4293s # gint16 *out_an_n, 4293s # guint16 *out_an_q, 4293s # gint *out_an_i, 4293s # guint *out_an_u, 4293s # gint64 *out_an_x, 4293s # guint64 *out_an_t, 4293s # gdouble *out_an_d, 4293s # gchar **out_an_s, 4293s # gchar **out_an_o, 4293s # gchar **out_an_g, 4293s # GVariant **out_an_h, 4293s # gchar **out_an_ay, 4293s # gchar ***out_an_as, 4293s # gchar ***out_an_ao, 4293s # gchar ***out_an_aay, 4293s # GVariant **out_an_asv, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4293s # out_an_b, 4293s # out_an_y, 4293s # out_an_n, 4293s # out_an_q, 4293s # out_an_i, 4293s # out_an_u, 4293s # out_an_x, 4293s # out_an_t, 4293s # out_an_d, 4293s # out_an_s, 4293s # out_an_o, 4293s # out_an_g, 4293s # out_an_h, 4293s # out_an_ay, 4293s # out_an_as, 4293s # out_an_ao, 4293s # out_an_aay, 4293s # out_an_asv); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_call_method_with_many_args_sync: 4293s # * @proxy: A #OrgProjectCallableIfaceProxy. 4293s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 4293s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # org_project_callable_iface_call_method_with_many_args_sync ( 4293s # OrgProjectCallableIface *proxy, 4293s # gboolean *out_an_b, 4293s # guchar *out_an_y, 4293s # gint16 *out_an_n, 4293s # guint16 *out_an_q, 4293s # gint *out_an_i, 4293s # guint *out_an_u, 4293s # gint64 *out_an_x, 4293s # guint64 *out_an_t, 4293s # gdouble *out_an_d, 4293s # gchar **out_an_s, 4293s # gchar **out_an_o, 4293s # gchar **out_an_g, 4293s # GVariant **out_an_h, 4293s # gchar **out_an_ay, 4293s # gchar ***out_an_as, 4293s # gchar ***out_an_ao, 4293s # gchar ***out_an_aay, 4293s # GVariant **out_an_asv, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4293s # "MethodWithManyArgs", 4293s # g_variant_new ("()"), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4293s # out_an_b, 4293s # out_an_y, 4293s # out_an_n, 4293s # out_an_q, 4293s # out_an_i, 4293s # out_an_u, 4293s # out_an_x, 4293s # out_an_t, 4293s # out_an_d, 4293s # out_an_s, 4293s # out_an_o, 4293s # out_an_g, 4293s # out_an_h, 4293s # out_an_ay, 4293s # out_an_as, 4293s # out_an_ao, 4293s # out_an_aay, 4293s # out_an_asv); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_complete_method_with_many_args: 4293s # * @object: A #OrgProjectCallableIface. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @an_b: Parameter to return. 4293s # * @an_y: Parameter to return. 4293s # * @an_n: Parameter to return. 4293s # * @an_q: Parameter to return. 4293s # * @an_i: Parameter to return. 4293s # * @an_u: Parameter to return. 4293s # * @an_x: Parameter to return. 4293s # * @an_t: Parameter to return. 4293s # * @an_d: Parameter to return. 4293s # * @an_s: Parameter to return. 4293s # * @an_o: Parameter to return. 4293s # * @an_g: Parameter to return. 4293s # * @an_h: Parameter to return. 4293s # * @an_ay: Parameter to return. 4293s # * @an_as: Parameter to return. 4293s # * @an_ao: Parameter to return. 4293s # * @an_aay: Parameter to return. 4293s # * @an_asv: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the MethodWithManyArgs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # org_project_callable_iface_complete_method_with_many_args ( 4293s # OrgProjectCallableIface *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # gboolean an_b, 4293s # guchar an_y, 4293s # gint16 an_n, 4293s # guint16 an_q, 4293s # gint an_i, 4293s # guint an_u, 4293s # gint64 an_x, 4293s # guint64 an_t, 4293s # gdouble an_d, 4293s # const gchar *an_s, 4293s # const gchar *an_o, 4293s # const gchar *an_g, 4293s # GVariant *an_h, 4293s # const gchar *an_ay, 4293s # const gchar *const *an_as, 4293s # const gchar *const *an_ao, 4293s # const gchar *const *an_aay, 4293s # GVariant *an_asv) 4293s # { 4293s # g_dbus_method_invocation_return_value (invocation, 4293s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4293s # an_b, 4293s # an_y, 4293s # an_n, 4293s # an_q, 4293s # an_i, 4293s # an_u, 4293s # an_x, 4293s # an_t, 4293s # an_d, 4293s # an_s, 4293s # an_o, 4293s # an_g, 4293s # an_h, 4293s # an_ay, 4293s # an_as, 4293s # an_ao, 4293s # an_aay, 4293s # an_asv)); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectCallableIfaceProxy: 4293s # * 4293s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectCallableIfaceProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectCallableIfaceProxy. 4293s # */ 4293s # 4293s # struct _OrgProjectCallableIfaceProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_callable_iface_proxy_finalize (GObject *object) 4293s # { 4293s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 4293s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 4293s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 4293s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_callable_iface_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # 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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectCallableIface * 4293s # org_project_callable_iface_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectCallableIface * 4293s # org_project_callable_iface_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # org_project_callable_iface_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # 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); 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectCallableIface * 4293s # org_project_callable_iface_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # OrgProjectCallableIface * 4293s # org_project_callable_iface_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return ORG_PROJECT_CALLABLE_IFACE (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * OrgProjectCallableIfaceSkeleton: 4293s # * 4293s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * OrgProjectCallableIfaceSkeletonClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #OrgProjectCallableIfaceSkeleton. 4293s # */ 4293s # 4293s # struct _OrgProjectCallableIfaceSkeletonPrivate 4293s # { 4293s # GValue *properties; 4293s # GList *changed_properties; 4293s # GSource *changed_properties_idle_source; 4293s # GMainContext *context; 4293s # GMutex lock; 4293s # }; 4293s # 4293s # static void 4293s # _org_project_callable_iface_skeleton_handle_method_call ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name, 4293s # const gchar *method_name, 4293s # GVariant *parameters, 4293s # GDBusMethodInvocation *invocation, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 4293s # _ExtendedGDBusMethodInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # guint num_extra; 4293s # gsize n; 4293s # guint signal_id; 4293s # GValue return_value = G_VALUE_INIT; 4293s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4293s # g_assert (info != NULL); 4293s # num_params = g_variant_n_children (parameters); 4293s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4293s # n = 0; 4293s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 4293s # g_value_set_object (¶mv[n++], skeleton); 4293s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4293s # g_value_set_object (¶mv[n++], invocation); 4293s # if (info->pass_fdlist) 4293s # { 4293s # #ifdef G_OS_UNIX 4293s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4293s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4293s # #else 4293s # g_assert_not_reached (); 4293s # #endif 4293s # } 4293s # g_variant_iter_init (&iter, parameters); 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 4293s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4293s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4293s # if (!g_value_get_boolean (&return_value)) 4293s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4293s # g_value_unset (&return_value); 4293s # for (n = 0; n < num_params + num_extra; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static GVariant * 4293s # _org_project_callable_iface_skeleton_handle_get_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # GVariant *ret; 4293s # ret = NULL; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # g_value_init (&value, pspec->value_type); 4293s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4293s # g_value_unset (&value); 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _org_project_callable_iface_skeleton_handle_set_property ( 4293s # GDBusConnection *connection G_GNUC_UNUSED, 4293s # const gchar *sender G_GNUC_UNUSED, 4293s # const gchar *object_path G_GNUC_UNUSED, 4293s # const gchar *interface_name G_GNUC_UNUSED, 4293s # const gchar *property_name, 4293s # GVariant *variant, 4293s # GError **error, 4293s # gpointer user_data) 4293s # { 4293s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 4293s # GValue value = G_VALUE_INIT; 4293s # GParamSpec *pspec; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # gboolean ret; 4293s # ret = FALSE; 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 4293s # g_assert (info != NULL); 4293s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4293s # if (pspec == NULL) 4293s # { 4293s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4293s # } 4293s # else 4293s # { 4293s # if (info->use_gvariant) 4293s # g_value_set_variant (&value, variant); 4293s # else 4293s # g_dbus_gvariant_to_gvalue (variant, &value); 4293s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4293s # g_value_unset (&value); 4293s # ret = TRUE; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 4293s # { 4293s # _org_project_callable_iface_skeleton_handle_method_call, 4293s # _org_project_callable_iface_skeleton_handle_get_property, 4293s # _org_project_callable_iface_skeleton_handle_set_property, 4293s # {NULL} 4293s # }; 4293s # 4293s # static GDBusInterfaceInfo * 4293s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return org_project_callable_iface_interface_info (); 4293s # } 4293s # 4293s # static GDBusInterfaceVTable * 4293s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4293s # { 4293s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 4293s # } 4293s # 4293s # static GVariant * 4293s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4293s # { 4293s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 4293s # 4293s # GVariantBuilder builder; 4293s # guint n; 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4293s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #else 4293s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4293s # #endif 4293s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 4293s # goto out; 4293s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4293s # { 4293s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 4293s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4293s # { 4293s # GVariant *value; 4293s # 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); 4293s # if (value != NULL) 4293s # { 4293s # g_variant_take_ref (value); 4293s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4293s # g_variant_unref (value); 4293s # } 4293s # } 4293s # } 4293s # out: 4293s # return g_variant_builder_end (&builder); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4293s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # org_project_callable_iface_skeleton_finalize (GObject *object) 4293s # { 4293s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 4293s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4293s # if (skeleton->priv->changed_properties_idle_source != NULL) 4293s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4293s # g_main_context_unref (skeleton->priv->context); 4293s # g_mutex_clear (&skeleton->priv->lock); 4293s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 4293s # #else 4293s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 4293s # #endif 4293s # 4293s # g_mutex_init (&skeleton->priv->lock); 4293s # skeleton->priv->context = g_main_context_ref_thread_default (); 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusInterfaceSkeletonClass *skeleton_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 4293s # 4293s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4293s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 4293s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 4293s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 4293s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * org_project_callable_iface_skeleton_new: 4293s # * 4293s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 4293s # * 4293s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 4293s # */ 4293s # OrgProjectCallableIface * 4293s # org_project_callable_iface_skeleton_new (void) 4293s # { 4293s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 4293s # } 4293s # Error: 4293s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 4293s # gdbus-codegen: /usr/bin/gdbus-codegen 4293s # tmpdir: /tmp/tmp5i_o9cbh 4293s # /tmp/tmp5i_o9cbh/tmph7d_vxjy.xml: 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # 4293s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5i_o9cbh/tmph7d_vxjy.xml', '--output', '-', '--body'] 4293s # Return code: 0 4293s # Output: 4293s # /* 4293s # * This file is generated by gdbus-codegen, do not modify it. 4293s # * 4293s # * The license of this code is the same as for the D-Bus interface description 4293s # * it was derived from. Note that it links to GLib, so must comply with the 4293s # * LGPL linking clauses. 4293s # */ 4293s # 4293s # #ifdef HAVE_CONFIG_H 4293s # # include "config.h" 4293s # #endif 4293s # 4293s # #include 4293s # #ifdef G_OS_UNIX 4293s # # include 4293s # #endif 4293s # 4293s # #ifdef G_ENABLE_DEBUG 4293s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4293s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4293s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4293s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4293s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4293s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4293s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4293s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4293s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4293s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4293s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4293s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4293s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4293s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4293s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4293s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4293s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4293s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4293s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4293s # #else /* !G_ENABLE_DEBUG */ 4293s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4293s # * Do not access GValues directly in your code. Instead, use the 4293s # * g_value_get_*() functions 4293s # */ 4293s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4293s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4293s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4293s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4293s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4293s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4293s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4293s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4293s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4293s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4293s # #endif /* !G_ENABLE_DEBUG */ 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusArgInfo parent_struct; 4293s # gboolean use_gvariant; 4293s # } _ExtendedGDBusArgInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusMethodInfo parent_struct; 4293s # const gchar *signal_name; 4293s # gboolean pass_fdlist; 4293s # } _ExtendedGDBusMethodInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusSignalInfo parent_struct; 4293s # const gchar *signal_name; 4293s # } _ExtendedGDBusSignalInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusPropertyInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # guint use_gvariant : 1; 4293s # guint emits_changed_signal : 1; 4293s # } _ExtendedGDBusPropertyInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # GDBusInterfaceInfo parent_struct; 4293s # const gchar *hyphen_name; 4293s # } _ExtendedGDBusInterfaceInfo; 4293s # 4293s # typedef struct 4293s # { 4293s # const _ExtendedGDBusPropertyInfo *info; 4293s # guint prop_id; 4293s # GValue orig_value; /* the value before the change */ 4293s # } ChangedProperty; 4293s # 4293s # static void 4293s # _changed_property_free (ChangedProperty *data) 4293s # { 4293s # g_value_unset (&data->orig_value); 4293s # g_free (data); 4293s # } 4293s # 4293s # static gboolean 4293s # _g_strv_equal0 (gchar **a, gchar **b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # guint n; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # if (g_strv_length (a) != g_strv_length (b)) 4293s # goto out; 4293s # for (n = 0; a[n] != NULL; n++) 4293s # if (g_strcmp0 (a[n], b[n]) != 0) 4293s # goto out; 4293s # ret = TRUE; 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # static gboolean 4293s # _g_variant_equal0 (GVariant *a, GVariant *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # if (a == NULL && b == NULL) 4293s # { 4293s # ret = TRUE; 4293s # goto out; 4293s # } 4293s # if (a == NULL || b == NULL) 4293s # goto out; 4293s # ret = g_variant_equal (a, b); 4293s # out: 4293s # return ret; 4293s # } 4293s # 4293s # G_GNUC_UNUSED static gboolean 4293s # _g_value_equal (const GValue *a, const GValue *b) 4293s # { 4293s # gboolean ret = FALSE; 4293s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4293s # switch (G_VALUE_TYPE (a)) 4293s # { 4293s # case G_TYPE_BOOLEAN: 4293s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4293s # break; 4293s # case G_TYPE_UCHAR: 4293s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4293s # break; 4293s # case G_TYPE_INT: 4293s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4293s # break; 4293s # case G_TYPE_UINT: 4293s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4293s # break; 4293s # case G_TYPE_INT64: 4293s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4293s # break; 4293s # case G_TYPE_UINT64: 4293s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4293s # break; 4293s # case G_TYPE_DOUBLE: 4293s # { 4293s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4293s # gdouble da = g_value_get_double (a); 4293s # gdouble db = g_value_get_double (b); 4293s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4293s # } 4293s # break; 4293s # case G_TYPE_STRING: 4293s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4293s # break; 4293s # case G_TYPE_VARIANT: 4293s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4293s # break; 4293s # default: 4293s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4293s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4293s # else 4293s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4293s # break; 4293s # } 4293s # return ret; 4293s # } 4293s # 4293s # static void 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint G_GNUC_UNUSED, 4293s # void *marshal_data) 4293s # { 4293s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 4293s # (void *data1, 4293s # GDBusMethodInvocation *arg_method_invocation, 4293s # GUnixFDList *arg_fd_list, 4293s # const gchar *arg_greeting, 4293s # void *data2); 4293s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 4293s # GCClosure *cc = (GCClosure*) closure; 4293s # void *data1, *data2; 4293s # gboolean v_return; 4293s # 4293s # g_return_if_fail (return_value != NULL); 4293s # g_return_if_fail (n_param_values == 4); 4293s # 4293s # if (G_CCLOSURE_SWAP_DATA (closure)) 4293s # { 4293s # data1 = closure->data; 4293s # data2 = g_value_peek_pointer (param_values + 0); 4293s # } 4293s # else 4293s # { 4293s # data1 = g_value_peek_pointer (param_values + 0); 4293s # data2 = closure->data; 4293s # } 4293s # 4293s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 4293s # (marshal_data ? marshal_data : cc->callback); 4293s # 4293s # v_return = 4293s # callback (data1, 4293s # g_marshal_value_peek_object (param_values + 1), 4293s # g_marshal_value_peek_object (param_values + 2), 4293s # g_marshal_value_peek_string (param_values + 3), 4293s # data2); 4293s # 4293s # g_value_set_boolean (return_value, v_return); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ 4293s # * Code for interface test.FDPassing 4293s # * ------------------------------------------------------------------------ 4293s # */ 4293s # 4293s # /** 4293s # * SECTION:TestFDPassing 4293s # * @title: TestFDPassing 4293s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 4293s # * 4293s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 4293s # */ 4293s # 4293s # /* ---- Introspection data for test.FDPassing ---- */ 4293s # 4293s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "greeting", 4293s # (gchar *) "s", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 4293s # { 4293s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "response", 4293s # (gchar *) "s", 4293s # NULL 4293s # }, 4293s # FALSE 4293s # }; 4293s # 4293s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 4293s # { 4293s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "HelloFD", 4293s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 4293s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 4293s # NULL 4293s # }, 4293s # "handle-hello-fd", 4293s # TRUE 4293s # }; 4293s # 4293s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 4293s # { 4293s # &_test_fdpassing_method_info_hello_fd.parent_struct, 4293s # NULL 4293s # }; 4293s # 4293s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 4293s # { 4293s # { 4293s # -1, 4293s # (gchar *) "test.FDPassing", 4293s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 4293s # NULL, 4293s # NULL, 4293s # NULL 4293s # }, 4293s # "test-fdpassing", 4293s # }; 4293s # 4293s # 4293s # /** 4293s # * test_fdpassing_interface_info: 4293s # * 4293s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 4293s # * 4293s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4293s # */ 4293s # GDBusInterfaceInfo * 4293s # test_fdpassing_interface_info (void) 4293s # { 4293s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 4293s # } 4293s # 4293s # /** 4293s # * test_fdpassing_override_properties: 4293s # * @klass: The class structure for a #GObject derived class. 4293s # * @property_id_begin: The property id to assign to the first overridden property. 4293s # * 4293s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 4293s # * The properties are overridden in the order they are defined. 4293s # * 4293s # * Returns: The last property id. 4293s # */ 4293s # guint 4293s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4293s # { 4293s # return property_id_begin - 1; 4293s # } 4293s # 4293s # 4293s # inline static void 4293s # test_fdpassing_method_marshal_hello_fd ( 4293s # GClosure *closure, 4293s # GValue *return_value, 4293s # unsigned int n_param_values, 4293s # const GValue *param_values, 4293s # void *invocation_hint, 4293s # void *marshal_data) 4293s # { 4293s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 4293s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4293s # } 4293s # 4293s # 4293s # /** 4293s # * TestFDPassing: 4293s # * 4293s # * Abstract interface type for the D-Bus interface test.FDPassing. 4293s # */ 4293s # 4293s # /** 4293s # * TestFDPassingIface: 4293s # * @parent_iface: The parent interface. 4293s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 4293s # * 4293s # * Virtual table for the D-Bus interface test.FDPassing. 4293s # */ 4293s # 4293s # typedef TestFDPassingIface TestFDPassingInterface; 4293s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 4293s # 4293s # static void 4293s # test_fdpassing_default_init (TestFDPassingIface *iface) 4293s # { 4293s # /* GObject signals for incoming D-Bus method calls: */ 4293s # /** 4293s # * TestFDPassing::handle-hello-fd: 4293s # * @object: A #TestFDPassing. 4293s # * @invocation: A #GDBusMethodInvocation. 4293s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 4293s # * @arg_greeting: Argument passed by remote caller. 4293s # * 4293s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 4293s # * 4293s # * 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. 4293s # * 4293s # * 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. 4293s # */ 4293s # g_signal_new ("handle-hello-fd", 4293s # G_TYPE_FROM_INTERFACE (iface), 4293s # G_SIGNAL_RUN_LAST, 4293s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 4293s # g_signal_accumulator_true_handled, 4293s # NULL, 4293s # test_fdpassing_method_marshal_hello_fd, 4293s # G_TYPE_BOOLEAN, 4293s # 3, 4293s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 4293s # 4293s # } 4293s # 4293s # /** 4293s # * test_fdpassing_call_hello_fd: 4293s # * @proxy: A #TestFDPassingProxy. 4293s # * @arg_greeting: Argument to pass with the method invocation. 4293s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 4293s # * 4293s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 4293s # */ 4293s # void 4293s # test_fdpassing_call_hello_fd ( 4293s # TestFDPassing *proxy, 4293s # const gchar *arg_greeting, 4293s # GUnixFDList *fd_list, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 4293s # "HelloFD", 4293s # g_variant_new ("(s)", 4293s # arg_greeting), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # fd_list, 4293s # cancellable, 4293s # callback, 4293s # user_data); 4293s # } 4293s # 4293s # /** 4293s # * test_fdpassing_call_hello_fd_finish: 4293s # * @proxy: A #TestFDPassingProxy. 4293s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # test_fdpassing_call_hello_fd_finish ( 4293s # TestFDPassing *proxy, 4293s # gchar **out_response, 4293s # GUnixFDList **out_fd_list, 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(s)", 4293s # out_response); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * test_fdpassing_call_hello_fd_sync: 4293s # * @proxy: A #TestFDPassingProxy. 4293s # * @arg_greeting: Argument to pass with the method invocation. 4293s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 4293s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 4293s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL. 4293s # * 4293s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4293s # * 4293s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 4293s # * 4293s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4293s # */ 4293s # gboolean 4293s # test_fdpassing_call_hello_fd_sync ( 4293s # TestFDPassing *proxy, 4293s # const gchar *arg_greeting, 4293s # GUnixFDList *fd_list, 4293s # gchar **out_response, 4293s # GUnixFDList **out_fd_list, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GVariant *_ret; 4293s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 4293s # "HelloFD", 4293s # g_variant_new ("(s)", 4293s # arg_greeting), 4293s # G_DBUS_CALL_FLAGS_NONE, 4293s # -1, 4293s # fd_list, 4293s # out_fd_list, 4293s # cancellable, 4293s # error); 4293s # if (_ret == NULL) 4293s # goto _out; 4293s # g_variant_get (_ret, 4293s # "(s)", 4293s # out_response); 4293s # g_variant_unref (_ret); 4293s # _out: 4293s # return _ret != NULL; 4293s # } 4293s # 4293s # /** 4293s # * test_fdpassing_complete_hello_fd: 4293s # * @object: A #TestFDPassing. 4293s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4293s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 4293s # * @response: Parameter to return. 4293s # * 4293s # * Helper function used in service implementations to finish handling invocations of the HelloFD() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4293s # * 4293s # * This method will free @invocation, you cannot use it afterwards. 4293s # */ 4293s # void 4293s # test_fdpassing_complete_hello_fd ( 4293s # TestFDPassing *object G_GNUC_UNUSED, 4293s # GDBusMethodInvocation *invocation, 4293s # GUnixFDList *fd_list, 4293s # const gchar *response) 4293s # { 4293s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 4293s # g_variant_new ("(s)", 4293s # response), 4293s # fd_list); 4293s # } 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * TestFDPassingProxy: 4293s # * 4293s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 4293s # */ 4293s # 4293s # /** 4293s # * TestFDPassingProxyClass: 4293s # * @parent_class: The parent class. 4293s # * 4293s # * Class structure for #TestFDPassingProxy. 4293s # */ 4293s # 4293s # struct _TestFDPassingProxyPrivate 4293s # { 4293s # GData *qdata; 4293s # }; 4293s # 4293s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 4293s # G_ADD_PRIVATE (TestFDPassingProxy) 4293s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 4293s # 4293s # #else 4293s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 4293s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 4293s # 4293s # #endif 4293s # static void 4293s # test_fdpassing_proxy_finalize (GObject *object) 4293s # { 4293s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 4293s # g_datalist_clear (&proxy->priv->qdata); 4293s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 4293s # } 4293s # 4293s # static void 4293s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 4293s # guint prop_id G_GNUC_UNUSED, 4293s # const GValue *value G_GNUC_UNUSED, 4293s # GParamSpec *pspec G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # static void 4293s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 4293s # const gchar *sender_name G_GNUC_UNUSED, 4293s # const gchar *signal_name, 4293s # GVariant *parameters) 4293s # { 4293s # _ExtendedGDBusSignalInfo *info; 4293s # GVariantIter iter; 4293s # GVariant *child; 4293s # GValue *paramv; 4293s # gsize num_params; 4293s # gsize n; 4293s # guint signal_id; 4293s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 4293s # if (info == NULL) 4293s # return; 4293s # num_params = g_variant_n_children (parameters); 4293s # paramv = g_new0 (GValue, num_params + 1); 4293s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 4293s # g_value_set_object (¶mv[0], proxy); 4293s # g_variant_iter_init (&iter, parameters); 4293s # n = 1; 4293s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4293s # { 4293s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4293s # if (arg_info->use_gvariant) 4293s # { 4293s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4293s # g_value_set_variant (¶mv[n], child); 4293s # n++; 4293s # } 4293s # else 4293s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4293s # g_variant_unref (child); 4293s # } 4293s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 4293s # g_signal_emitv (paramv, signal_id, 0, NULL); 4293s # for (n = 0; n < num_params + 1; n++) 4293s # g_value_unset (¶mv[n]); 4293s # g_free (paramv); 4293s # } 4293s # 4293s # static void 4293s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 4293s # GVariant *changed_properties, 4293s # const gchar *const *invalidated_properties) 4293s # { 4293s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 4293s # guint n; 4293s # const gchar *key; 4293s # GVariantIter *iter; 4293s # _ExtendedGDBusPropertyInfo *info; 4293s # g_variant_get (changed_properties, "a{sv}", &iter); 4293s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 4293s # g_datalist_remove_data (&proxy->priv->qdata, key); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # g_variant_iter_free (iter); 4293s # for (n = 0; invalidated_properties[n] != NULL; n++) 4293s # { 4293s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 4293s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4293s # if (info != NULL) 4293s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4293s # } 4293s # } 4293s # 4293s # static void 4293s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 4293s # { 4293s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4293s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 4293s # #else 4293s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 4293s # #endif 4293s # 4293s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 4293s # } 4293s # 4293s # static void 4293s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 4293s # { 4293s # GObjectClass *gobject_class; 4293s # GDBusProxyClass *proxy_class; 4293s # 4293s # gobject_class = G_OBJECT_CLASS (klass); 4293s # gobject_class->finalize = test_fdpassing_proxy_finalize; 4293s # gobject_class->get_property = test_fdpassing_proxy_get_property; 4293s # gobject_class->set_property = test_fdpassing_proxy_set_property; 4293s # 4293s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4293s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 4293s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 4293s # 4293s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4293s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 4293s # #endif 4293s # } 4293s # 4293s # static void 4293s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 4293s # { 4293s # } 4293s # 4293s # /** 4293s # * test_fdpassing_proxy_new: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 4293s # * 4293s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # test_fdpassing_proxy_new ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # 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); 4293s # } 4293s # 4293s # /** 4293s # * test_fdpassing_proxy_new_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with test_fdpassing_proxy_new(). 4293s # * 4293s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # TestFDPassing * 4293s # test_fdpassing_proxy_new_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return TEST_FDPASSING (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * test_fdpassing_proxy_new_sync: 4293s # * @connection: A #GDBusConnection. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # TestFDPassing * 4293s # test_fdpassing_proxy_new_sync ( 4293s # GDBusConnection *connection, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return TEST_FDPASSING (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /** 4293s # * test_fdpassing_proxy_new_for_bus: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4293s # * @user_data: User data to pass to @callback. 4293s # * 4293s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4293s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 4293s # * 4293s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4293s # */ 4293s # void 4293s # test_fdpassing_proxy_new_for_bus ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GAsyncReadyCallback callback, 4293s # gpointer user_data) 4293s # { 4293s # 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); 4293s # } 4293s # 4293s # /** 4293s # * test_fdpassing_proxy_new_for_bus_finish: 4293s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 4293s # * 4293s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # TestFDPassing * 4293s # test_fdpassing_proxy_new_for_bus_finish ( 4293s # GAsyncResult *res, 4293s # GError **error) 4293s # { 4293s # GObject *ret; 4293s # GObject *source_object; 4293s # source_object = g_async_result_get_source_object (res); 4293s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4293s # g_object_unref (source_object); 4293s # if (ret != NULL) 4293s # return TEST_FDPASSING (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # /** 4293s # * test_fdpassing_proxy_new_for_bus_sync: 4293s # * @bus_type: A #GBusType. 4293s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4293s # * @name: A bus name (well-known or unique). 4293s # * @object_path: An object path. 4293s # * @cancellable: (nullable): A #GCancellable or %NULL. 4293s # * @error: Return location for error or %NULL 4293s # * 4293s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4293s # * 4293s # * The calling thread is blocked until a reply is received. 4293s # * 4293s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 4293s # * 4293s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 4293s # */ 4293s # TestFDPassing * 4293s # test_fdpassing_proxy_new_for_bus_sync ( 4293s # GBusType bus_type, 4293s # GDBusProxyFlags flags, 4293s # const gchar *name, 4293s # const gchar *object_path, 4293s # GCancellable *cancellable, 4293s # GError **error) 4293s # { 4293s # GInitable *ret; 4293s # 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); 4293s # if (ret != NULL) 4293s # return TEST_FDPASSING (ret); 4293s # else 4293s # return NULL; 4293s # } 4293s # 4293s # 4293s # /* ------------------------------------------------------------------------ */ 4293s # 4293s # /** 4293s # * TestFDPassingSkeleton: 4293s # * 4293s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 4293s # */ 4294s # 4294s # /** 4294s # * TestFDPassingSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #TestFDPassingSkeleton. 4294s # */ 4294s # 4294s # struct _TestFDPassingSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _test_fdpassing_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _test_fdpassing_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _test_fdpassing_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 4294s # { 4294s # _test_fdpassing_skeleton_handle_method_call, 4294s # _test_fdpassing_skeleton_handle_get_property, 4294s # _test_fdpassing_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return test_fdpassing_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (TestFDPassingSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # test_fdpassing_skeleton_finalize (GObject *object) 4294s # { 4294s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * test_fdpassing_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 4294s # * 4294s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 4294s # */ 4294s # TestFDPassing * 4294s # test_fdpassing_skeleton_new (void) 4294s # { 4294s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s ok 15 __main__.TestCodegen.test_generate_rst 4294s # gdbus-codegen: /usr/bin/gdbus-codegen 4294s # tmpdir: /tmp/tmppy6rxbjf 4294s # /tmp/tmppy6rxbjf/tmp6wa6zfi5.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppy6rxbjf/tmp6wa6zfi5.xml', '--generate-rst', 'test'] 4294s # Return code: 0 4294s # Output: 4294s # 4294s # Error: 4294s ok 16 __main__.TestCodegen.test_generate_rst_method 4294s # gdbus-codegen: /usr/bin/gdbus-codegen 4294s # tmpdir: /tmp/tmptfzlaybg 4294s # /tmp/tmptfzlaybg/tmpw8h6gyvy.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptfzlaybg/tmpw8h6gyvy.xml', '--generate-rst', 'test'] 4294s # Return code: 0 4294s # Output: 4294s # 4294s # Error: 4294s ok 17 __main__.TestCodegen.test_generate_rst_property 4294s # gdbus-codegen: /usr/bin/gdbus-codegen 4294s # tmpdir: /tmp/tmpmyf6wrk6 4294s # /tmp/tmpmyf6wrk6/tmpjvm4p0y1.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmyf6wrk6/tmpjvm4p0y1.xml', '--generate-rst', 'test'] 4294s # Return code: 0 4294s # Output: 4294s # 4294s # Error: 4294s ok 18 __main__.TestCodegen.test_generate_rst_signal 4294s # gdbus-codegen: /usr/bin/gdbus-codegen 4294s # tmpdir: /tmp/tmpuew1am7z 4294s # /tmp/tmpuew1am7z/tmpoinfmh0v.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuew1am7z/tmpoinfmh0v.xml', '--generate-rst', 'test'] 4294s # Return code: 0 4294s # Output: 4294s # 4294s # Error: 4294s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 4294s # gdbus-codegen: /usr/bin/gdbus-codegen 4294s # tmpdir: /tmp/tmp9r91i2r5 4294s # /tmp/tmp9r91i2r5/tmpy49y03ny.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9r91i2r5/tmpy49y03ny.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static void 4294s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 4294s # GClosure *closure, 4294s # GValue *return_value G_GNUC_UNUSED, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint G_GNUC_UNUSED, 4294s # void *marshal_data) 4294s # { 4294s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 4294s # (void *data1, 4294s # gboolean arg_an_b, 4294s # guchar arg_an_y, 4294s # gint16 arg_an_n, 4294s # guint16 arg_an_q, 4294s # gint arg_an_i, 4294s # guint arg_an_u, 4294s # gint64 arg_an_x, 4294s # guint64 arg_an_t, 4294s # gdouble arg_an_d, 4294s # const gchar *arg_an_s, 4294s # const gchar *arg_an_o, 4294s # const gchar *arg_an_g, 4294s # GVariant *arg_an_h, 4294s # const gchar *arg_an_ay, 4294s # const gchar *const *arg_an_as, 4294s # const gchar *const *arg_an_ao, 4294s # const gchar *const *arg_an_aay, 4294s # GVariant *arg_an_asv, 4294s # void *data2); 4294s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 4294s # GCClosure *cc = (GCClosure*) closure; 4294s # void *data1, *data2; 4294s # 4294s # g_return_if_fail (n_param_values == 19); 4294s # 4294s # if (G_CCLOSURE_SWAP_DATA (closure)) 4294s # { 4294s # data1 = closure->data; 4294s # data2 = g_value_peek_pointer (param_values + 0); 4294s # } 4294s # else 4294s # { 4294s # data1 = g_value_peek_pointer (param_values + 0); 4294s # data2 = closure->data; 4294s # } 4294s # 4294s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 4294s # (marshal_data ? marshal_data : cc->callback); 4294s # 4294s # callback (data1, 4294s # g_marshal_value_peek_boolean (param_values + 1), 4294s # g_marshal_value_peek_uchar (param_values + 2), 4294s # g_marshal_value_peek_int (param_values + 3), 4294s # g_marshal_value_peek_uint (param_values + 4), 4294s # g_marshal_value_peek_int (param_values + 5), 4294s # g_marshal_value_peek_uint (param_values + 6), 4294s # g_marshal_value_peek_int64 (param_values + 7), 4294s # g_marshal_value_peek_uint64 (param_values + 8), 4294s # g_marshal_value_peek_double (param_values + 9), 4294s # g_marshal_value_peek_string (param_values + 10), 4294s # g_marshal_value_peek_string (param_values + 11), 4294s # g_marshal_value_peek_string (param_values + 12), 4294s # g_marshal_value_peek_variant (param_values + 13), 4294s # g_marshal_value_peek_string (param_values + 14), 4294s # g_marshal_value_peek_boxed (param_values + 15), 4294s # g_marshal_value_peek_boxed (param_values + 16), 4294s # g_marshal_value_peek_boxed (param_values + 17), 4294s # g_marshal_value_peek_variant (param_values + 18), 4294s # data2); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_b", 4294s # (gchar *) "b", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_y", 4294s # (gchar *) "y", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_n", 4294s # (gchar *) "n", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_q", 4294s # (gchar *) "q", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_i", 4294s # (gchar *) "i", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_u", 4294s # (gchar *) "u", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_x", 4294s # (gchar *) "x", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_t", 4294s # (gchar *) "t", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_d", 4294s # (gchar *) "d", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_s", 4294s # (gchar *) "s", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_o", 4294s # (gchar *) "o", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_g", 4294s # (gchar *) "g", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_h", 4294s # (gchar *) "h", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_ay", 4294s # (gchar *) "ay", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_as", 4294s # (gchar *) "as", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_ao", 4294s # (gchar *) "ao", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_aay", 4294s # (gchar *) "aay", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_asv", 4294s # (gchar *) "a{sv}", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SignalWithManyArgs", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "signal-with-many-args" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::signal-with-many-args: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_b: Argument. 4294s # * @arg_an_y: Argument. 4294s # * @arg_an_n: Argument. 4294s # * @arg_an_q: Argument. 4294s # * @arg_an_i: Argument. 4294s # * @arg_an_u: Argument. 4294s # * @arg_an_x: Argument. 4294s # * @arg_an_t: Argument. 4294s # * @arg_an_d: Argument. 4294s # * @arg_an_s: Argument. 4294s # * @arg_an_o: Argument. 4294s # * @arg_an_g: Argument. 4294s # * @arg_an_h: Argument. 4294s # * @arg_an_ay: Argument. 4294s # * @arg_an_as: Argument. 4294s # * @arg_an_ao: Argument. 4294s # * @arg_an_aay: Argument. 4294s # * @arg_an_asv: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 4294s # g_signal_new ("signal-with-many-args", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 4294s # G_TYPE_NONE, 4294s # 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); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_signal_with_many_args: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_b: Argument to pass with the signal. 4294s # * @arg_an_y: Argument to pass with the signal. 4294s # * @arg_an_n: Argument to pass with the signal. 4294s # * @arg_an_q: Argument to pass with the signal. 4294s # * @arg_an_i: Argument to pass with the signal. 4294s # * @arg_an_u: Argument to pass with the signal. 4294s # * @arg_an_x: Argument to pass with the signal. 4294s # * @arg_an_t: Argument to pass with the signal. 4294s # * @arg_an_d: Argument to pass with the signal. 4294s # * @arg_an_s: Argument to pass with the signal. 4294s # * @arg_an_o: Argument to pass with the signal. 4294s # * @arg_an_g: Argument to pass with the signal. 4294s # * @arg_an_h: Argument to pass with the signal. 4294s # * @arg_an_ay: Argument to pass with the signal. 4294s # * @arg_an_as: Argument to pass with the signal. 4294s # * @arg_an_ao: Argument to pass with the signal. 4294s # * @arg_an_aay: Argument to pass with the signal. 4294s # * @arg_an_asv: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SignalWithManyArgs" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_signal_with_many_args ( 4294s # OrgProjectSignalingIface *object, 4294s # gboolean arg_an_b, 4294s # guchar arg_an_y, 4294s # gint16 arg_an_n, 4294s # guint16 arg_an_q, 4294s # gint arg_an_i, 4294s # guint arg_an_u, 4294s # gint64 arg_an_x, 4294s # guint64 arg_an_t, 4294s # gdouble arg_an_d, 4294s # const gchar *arg_an_s, 4294s # const gchar *arg_an_o, 4294s # const gchar *arg_an_g, 4294s # GVariant *arg_an_h, 4294s # const gchar *arg_an_ay, 4294s # const gchar *const *arg_an_as, 4294s # const gchar *const *arg_an_ao, 4294s # const gchar *const *arg_an_aay, 4294s # GVariant *arg_an_asv) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 4294s # OrgProjectSignalingIface *object, 4294s # gboolean arg_an_b, 4294s # guchar arg_an_y, 4294s # gint16 arg_an_n, 4294s # guint16 arg_an_q, 4294s # gint arg_an_i, 4294s # guint arg_an_u, 4294s # gint64 arg_an_x, 4294s # guint64 arg_an_t, 4294s # gdouble arg_an_d, 4294s # const gchar *arg_an_s, 4294s # const gchar *arg_an_o, 4294s # const gchar *arg_an_g, 4294s # GVariant *arg_an_h, 4294s # const gchar *arg_an_ay, 4294s # const gchar *const *arg_an_as, 4294s # const gchar *const *arg_an_ao, 4294s # const gchar *const *arg_an_aay, 4294s # GVariant *arg_an_asv) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4294s # arg_an_b, 4294s # arg_an_y, 4294s # arg_an_n, 4294s # arg_an_q, 4294s # arg_an_i, 4294s # arg_an_u, 4294s # arg_an_x, 4294s # arg_an_t, 4294s # arg_an_d, 4294s # arg_an_s, 4294s # arg_an_o, 4294s # arg_an_g, 4294s # arg_an_h, 4294s # arg_an_ay, 4294s # arg_an_as, 4294s # arg_an_ao, 4294s # arg_an_aay, 4294s # arg_an_asv)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 4294s # gdbus-codegen: /usr/bin/gdbus-codegen 4294s # tmpdir: /tmp/tmp3a6dap9b 4294s # /tmp/tmp3a6dap9b/tmp612gxs93.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3a6dap9b/tmp612gxs93.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static void 4294s # _g_dbus_codegen_marshal_VOID__INT64 ( 4294s # GClosure *closure, 4294s # GValue *return_value G_GNUC_UNUSED, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint G_GNUC_UNUSED, 4294s # void *marshal_data) 4294s # { 4294s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 4294s # (void *data1, 4294s # gint64 arg_an_x, 4294s # void *data2); 4294s # _GDbusCodegenMarshalVoid_Int64Func callback; 4294s # GCClosure *cc = (GCClosure*) closure; 4294s # void *data1, *data2; 4294s # 4294s # g_return_if_fail (n_param_values == 2); 4294s # 4294s # if (G_CCLOSURE_SWAP_DATA (closure)) 4294s # { 4294s # data1 = closure->data; 4294s # data2 = g_value_peek_pointer (param_values + 0); 4294s # } 4294s # else 4294s # { 4294s # data1 = g_value_peek_pointer (param_values + 0); 4294s # data2 = closure->data; 4294s # } 4294s # 4294s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 4294s # (marshal_data ? marshal_data : cc->callback); 4294s # 4294s # callback (data1, 4294s # g_marshal_value_peek_int64 (param_values + 1), 4294s # data2); 4294s # } 4294s # 4294s # static void 4294s # _g_dbus_codegen_marshal_VOID__UINT64 ( 4294s # GClosure *closure, 4294s # GValue *return_value G_GNUC_UNUSED, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint G_GNUC_UNUSED, 4294s # void *marshal_data) 4294s # { 4294s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 4294s # (void *data1, 4294s # guint64 arg_an_t, 4294s # void *data2); 4294s # _GDbusCodegenMarshalVoid_Uint64Func callback; 4294s # GCClosure *cc = (GCClosure*) closure; 4294s # void *data1, *data2; 4294s # 4294s # g_return_if_fail (n_param_values == 2); 4294s # 4294s # if (G_CCLOSURE_SWAP_DATA (closure)) 4294s # { 4294s # data1 = closure->data; 4294s # data2 = g_value_peek_pointer (param_values + 0); 4294s # } 4294s # else 4294s # { 4294s # data1 = g_value_peek_pointer (param_values + 0); 4294s # data2 = closure->data; 4294s # } 4294s # 4294s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 4294s # (marshal_data ? marshal_data : cc->callback); 4294s # 4294s # callback (data1, 4294s # g_marshal_value_peek_uint64 (param_values + 1), 4294s # data2); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "NoArgSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "no-arg-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_b", 4294s # (gchar *) "b", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalB", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-b" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_y", 4294s # (gchar *) "y", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalY", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-y" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_n", 4294s # (gchar *) "n", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalN", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-n" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_q", 4294s # (gchar *) "q", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalQ", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-q" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_i", 4294s # (gchar *) "i", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalI", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-i" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_u", 4294s # (gchar *) "u", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalU", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-u" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_x", 4294s # (gchar *) "x", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalX", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-x" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_t", 4294s # (gchar *) "t", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalT", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-t" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_d", 4294s # (gchar *) "d", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalD", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-d" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_s", 4294s # (gchar *) "s", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalS", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-s" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_o", 4294s # (gchar *) "o", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalO", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-o" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_g", 4294s # (gchar *) "g", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalG", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-g" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_h", 4294s # (gchar *) "h", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalH", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-h" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_ay", 4294s # (gchar *) "ay", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalAY", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-ay" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_as", 4294s # (gchar *) "as", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalAS", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-as" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_ao", 4294s # (gchar *) "ao", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalAO", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-ao" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_aay", 4294s # (gchar *) "aay", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalAAY", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-aay" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "an_asv", 4294s # (gchar *) "a{sv}", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalASV", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-asv" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__BOOLEAN (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__UCHAR (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__INT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__UINT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__INT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__UINT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__DOUBLE (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__STRING (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__STRING (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__STRING (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VARIANT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__STRING (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__BOXED (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__BOXED (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__BOXED (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VARIANT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 4294s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 4294s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 4294s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 4294s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 4294s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 4294s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 4294s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 4294s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 4294s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 4294s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 4294s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 4294s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 4294s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 4294s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 4294s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 4294s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 4294s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 4294s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::no-arg-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 4294s # g_signal_new ("no-arg-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_no_arg_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-b: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_b: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 4294s # g_signal_new ("single-arg-signal-b", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_BOOLEAN); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-y: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_y: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 4294s # g_signal_new ("single-arg-signal-y", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_UCHAR); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-n: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_n: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 4294s # g_signal_new ("single-arg-signal-n", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_INT); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-q: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_q: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 4294s # g_signal_new ("single-arg-signal-q", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_UINT); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-i: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_i: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 4294s # g_signal_new ("single-arg-signal-i", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_INT); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-u: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_u: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 4294s # g_signal_new ("single-arg-signal-u", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_UINT); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-x: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_x: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 4294s # g_signal_new ("single-arg-signal-x", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_INT64); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-t: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_t: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 4294s # g_signal_new ("single-arg-signal-t", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_UINT64); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-d: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_d: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 4294s # g_signal_new ("single-arg-signal-d", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_DOUBLE); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-s: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_s: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 4294s # g_signal_new ("single-arg-signal-s", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRING); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-o: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_o: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 4294s # g_signal_new ("single-arg-signal-o", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRING); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-g: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_g: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 4294s # g_signal_new ("single-arg-signal-g", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRING); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-h: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_h: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 4294s # g_signal_new ("single-arg-signal-h", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_VARIANT); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-ay: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_ay: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 4294s # g_signal_new ("single-arg-signal-ay", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRING); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-as: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_as: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 4294s # g_signal_new ("single-arg-signal-as", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRV); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-ao: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_ao: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 4294s # g_signal_new ("single-arg-signal-ao", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRV); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-aay: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_aay: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 4294s # g_signal_new ("single-arg-signal-aay", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRV); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-asv: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_asv: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 4294s # g_signal_new ("single-arg-signal-asv", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_VARIANT); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_no_arg_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "NoArgSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_no_arg_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_b: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_b: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalB" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_b ( 4294s # OrgProjectSignalingIface *object, 4294s # gboolean arg_an_b) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_y: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_y: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalY" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_y ( 4294s # OrgProjectSignalingIface *object, 4294s # guchar arg_an_y) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_n: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_n: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalN" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_n ( 4294s # OrgProjectSignalingIface *object, 4294s # gint16 arg_an_n) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_q: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_q: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalQ" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_q ( 4294s # OrgProjectSignalingIface *object, 4294s # guint16 arg_an_q) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_i: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_i: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalI" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_i ( 4294s # OrgProjectSignalingIface *object, 4294s # gint arg_an_i) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_u: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_u: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalU" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_u ( 4294s # OrgProjectSignalingIface *object, 4294s # guint arg_an_u) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_x: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_x: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalX" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_x ( 4294s # OrgProjectSignalingIface *object, 4294s # gint64 arg_an_x) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_t: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_t: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalT" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_t ( 4294s # OrgProjectSignalingIface *object, 4294s # guint64 arg_an_t) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_d: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_d: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalD" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_d ( 4294s # OrgProjectSignalingIface *object, 4294s # gdouble arg_an_d) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_s: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_s: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalS" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_s ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_an_s) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_o: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_o: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalO" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_o ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_an_o) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_g: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_g: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalG" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_g ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_an_g) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_h: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_h: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalH" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_h ( 4294s # OrgProjectSignalingIface *object, 4294s # GVariant *arg_an_h) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_ay: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_ay: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalAY" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_ay ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_an_ay) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_as: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_as: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalAS" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_as ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *const *arg_an_as) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_ao: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_ao: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalAO" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_ao ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *const *arg_an_ao) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_aay: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_aay: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalAAY" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_aay ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *const *arg_an_aay) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_asv: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_an_asv: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalASV" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_asv ( 4294s # OrgProjectSignalingIface *object, 4294s # GVariant *arg_an_asv) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_no_arg_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 4294s # OrgProjectSignalingIface *object, 4294s # gboolean arg_an_b) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 4294s # arg_an_b)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 4294s # OrgProjectSignalingIface *object, 4294s # guchar arg_an_y) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 4294s # arg_an_y)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 4294s # OrgProjectSignalingIface *object, 4294s # gint16 arg_an_n) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 4294s # arg_an_n)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 4294s # OrgProjectSignalingIface *object, 4294s # guint16 arg_an_q) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 4294s # arg_an_q)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 4294s # OrgProjectSignalingIface *object, 4294s # gint arg_an_i) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 4294s # arg_an_i)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 4294s # OrgProjectSignalingIface *object, 4294s # guint arg_an_u) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 4294s # arg_an_u)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 4294s # OrgProjectSignalingIface *object, 4294s # gint64 arg_an_x) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 4294s # arg_an_x)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 4294s # OrgProjectSignalingIface *object, 4294s # guint64 arg_an_t) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 4294s # arg_an_t)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 4294s # OrgProjectSignalingIface *object, 4294s # gdouble arg_an_d) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 4294s # arg_an_d)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_an_s) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 4294s # arg_an_s)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_an_o) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 4294s # arg_an_o)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_an_g) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 4294s # arg_an_g)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 4294s # OrgProjectSignalingIface *object, 4294s # GVariant *arg_an_h) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 4294s # arg_an_h)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_an_ay) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 4294s # arg_an_ay)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *const *arg_an_as) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 4294s # arg_an_as)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *const *arg_an_ao) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 4294s # arg_an_ao)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *const *arg_an_aay) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 4294s # arg_an_aay)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 4294s # OrgProjectSignalingIface *object, 4294s # GVariant *arg_an_asv) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 4294s # arg_an_asv)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 4294s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 4294s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 4294s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 4294s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 4294s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 4294s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 4294s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 4294s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 4294s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 4294s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 4294s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 4294s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 4294s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 4294s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 4294s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 4294s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 4294s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 4294s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 4294s # gdbus-codegen: /usr/bin/gdbus-codegen 4294s # tmpdir: /tmp/tmpr41qr04u 4294s # /tmp/tmpr41qr04u/tmptwwk69lq.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpr41qr04u/tmptwwk69lq.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.UsefulInterface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectUsefulInterface 4294s # * @title: OrgProjectUsefulInterface 4294s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.UsefulInterface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-useful-interface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_useful_interface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_useful_interface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_useful_interface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_useful_interface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectUsefulInterface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectUsefulInterfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 4294s # */ 4294s # 4294s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectUsefulInterface::simple-signal: 4294s # * @object: A #OrgProjectUsefulInterface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_useful_interface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_useful_interface_emit_simple_signal: 4294s # * @object: A #OrgProjectUsefulInterface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_useful_interface_emit_simple_signal ( 4294s # OrgProjectUsefulInterface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectUsefulInterfaceProxy: 4294s # * 4294s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectUsefulInterfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectUsefulInterfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectUsefulInterfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_useful_interface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 4294s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 4294s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_useful_interface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_useful_interface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # g_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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_useful_interface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectUsefulInterface * 4294s # org_project_useful_interface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_useful_interface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectUsefulInterface * 4294s # org_project_useful_interface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_useful_interface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_useful_interface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # g_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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_useful_interface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectUsefulInterface * 4294s # org_project_useful_interface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_useful_interface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectUsefulInterface * 4294s # org_project_useful_interface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectUsefulInterfaceSkeleton: 4294s # * 4294s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectUsefulInterfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_useful_interface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_useful_interface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_useful_interface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 4294s # { 4294s # _org_project_useful_interface_skeleton_handle_method_call, 4294s # _org_project_useful_interface_skeleton_handle_get_property, 4294s # _org_project_useful_interface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_useful_interface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_useful_interface_on_signal_simple_signal ( 4294s # OrgProjectUsefulInterface *object) 4294s # { 4294s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_useful_interface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 4294s # } 4294s # 4294s # /** 4294s # * org_project_useful_interface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectUsefulInterface * 4294s # org_project_useful_interface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.OtherIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectOtherIface 4294s # * @title: OrgProjectOtherIface 4294s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.OtherIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.OtherIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-other-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_other_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_other_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_other_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectOtherIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectOtherIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.OtherIface. 4294s # */ 4294s # 4294s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectOtherIface::simple-signal: 4294s # * @object: A #OrgProjectOtherIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_other_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectOtherIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_other_iface_emit_simple_signal ( 4294s # OrgProjectOtherIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectOtherIfaceProxy: 4294s # * 4294s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectOtherIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectOtherIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectOtherIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_other_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_other_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_other_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectOtherIface * 4294s # org_project_other_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_OTHER_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectOtherIface * 4294s # org_project_other_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_OTHER_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_other_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_other_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectOtherIface * 4294s # org_project_other_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_OTHER_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectOtherIface * 4294s # org_project_other_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_OTHER_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectOtherIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectOtherIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectOtherIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectOtherIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_other_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_other_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_other_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 4294s # { 4294s # _org_project_other_iface_skeleton_handle_method_call, 4294s # _org_project_other_iface_skeleton_handle_get_property, 4294s # _org_project_other_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_other_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_other_iface_on_signal_simple_signal ( 4294s # OrgProjectOtherIface *object) 4294s # { 4294s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_other_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectOtherIface * 4294s # org_project_other_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 4294s # gdbus-codegen: /usr/bin/gdbus-codegen 4294s # tmpdir: /tmp/tmplup8nj4f 4294s # /tmp/tmplup8nj4f/tmp7nfpxs__.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplup8nj4f/tmp7nfpxs__.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.OtherSignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectOtherSignalingIface 4294s # * @title: OrgProjectOtherSignalingIface 4294s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.OtherSignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-other-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_other_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_other_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectOtherSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectOtherSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectOtherSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectOtherSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_other_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectOtherSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_other_signaling_iface_emit_simple_signal ( 4294s # OrgProjectOtherSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectOtherSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectOtherSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_other_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectOtherSignalingIface * 4294s # org_project_other_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectOtherSignalingIface * 4294s # org_project_other_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_other_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_other_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectOtherSignalingIface * 4294s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectOtherSignalingIface * 4294s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectOtherSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectOtherSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_other_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_other_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_other_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_other_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_other_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectOtherSignalingIface *object) 4294s # { 4294s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 4294s # } 4294s # 4294s # /** 4294s # * org_project_other_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectOtherSignalingIface * 4294s # org_project_other_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 4294s # gdbus-codegen: /usr/bin/gdbus-codegen 4294s # tmpdir: /tmp/tmp6jvr_wa0 4294s # /tmp/tmp6jvr_wa0/tmppf00qje0.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmppf00qje0.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_b", 4294s # (gchar *) "b", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalB", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-b" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__BOOLEAN (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-b: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_b: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 4294s # g_signal_new ("single-arg-signal-b", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_BOOLEAN); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_b: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_b: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalB" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_b ( 4294s # OrgProjectSignalingIface *object, 4294s # gboolean arg_arg_b) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 4294s # OrgProjectSignalingIface *object, 4294s # gboolean arg_arg_b) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 4294s # arg_arg_b)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpdzt346c5.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpdzt346c5.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_y", 4294s # (gchar *) "y", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalY", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-y" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__UCHAR (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-y: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_y: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 4294s # g_signal_new ("single-arg-signal-y", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_UCHAR); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_y: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_y: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalY" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_y ( 4294s # OrgProjectSignalingIface *object, 4294s # guchar arg_arg_y) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 4294s # OrgProjectSignalingIface *object, 4294s # guchar arg_arg_y) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 4294s # arg_arg_y)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpwlcwju58.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpwlcwju58.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_n", 4294s # (gchar *) "n", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalN", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-n" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__INT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-n: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_n: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 4294s # g_signal_new ("single-arg-signal-n", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_INT); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_n: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_n: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalN" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_n ( 4294s # OrgProjectSignalingIface *object, 4294s # gint16 arg_arg_n) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 4294s # OrgProjectSignalingIface *object, 4294s # gint16 arg_arg_n) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 4294s # arg_arg_n)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmp7fgq1es5.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmp7fgq1es5.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_q", 4294s # (gchar *) "q", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalQ", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-q" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__UINT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-q: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_q: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 4294s # g_signal_new ("single-arg-signal-q", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_UINT); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_q: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_q: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalQ" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_q ( 4294s # OrgProjectSignalingIface *object, 4294s # guint16 arg_arg_q) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 4294s # OrgProjectSignalingIface *object, 4294s # guint16 arg_arg_q) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 4294s # arg_arg_q)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpn1i7s770.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpn1i7s770.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_i", 4294s # (gchar *) "i", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalI", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-i" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__INT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-i: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_i: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 4294s # g_signal_new ("single-arg-signal-i", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_INT); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_i: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_i: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalI" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_i ( 4294s # OrgProjectSignalingIface *object, 4294s # gint arg_arg_i) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 4294s # OrgProjectSignalingIface *object, 4294s # gint arg_arg_i) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 4294s # arg_arg_i)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmp4sciqr2u.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmp4sciqr2u.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_u", 4294s # (gchar *) "u", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalU", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-u" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__UINT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-u: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_u: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 4294s # g_signal_new ("single-arg-signal-u", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_UINT); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_u: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_u: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalU" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_u ( 4294s # OrgProjectSignalingIface *object, 4294s # guint arg_arg_u) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 4294s # OrgProjectSignalingIface *object, 4294s # guint arg_arg_u) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 4294s # arg_arg_u)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpfds5fy4a.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpfds5fy4a.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static void 4294s # _g_dbus_codegen_marshal_VOID__INT64 ( 4294s # GClosure *closure, 4294s # GValue *return_value G_GNUC_UNUSED, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint G_GNUC_UNUSED, 4294s # void *marshal_data) 4294s # { 4294s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 4294s # (void *data1, 4294s # gint64 arg_arg_x, 4294s # void *data2); 4294s # _GDbusCodegenMarshalVoid_Int64Func callback; 4294s # GCClosure *cc = (GCClosure*) closure; 4294s # void *data1, *data2; 4294s # 4294s # g_return_if_fail (n_param_values == 2); 4294s # 4294s # if (G_CCLOSURE_SWAP_DATA (closure)) 4294s # { 4294s # data1 = closure->data; 4294s # data2 = g_value_peek_pointer (param_values + 0); 4294s # } 4294s # else 4294s # { 4294s # data1 = g_value_peek_pointer (param_values + 0); 4294s # data2 = closure->data; 4294s # } 4294s # 4294s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 4294s # (marshal_data ? marshal_data : cc->callback); 4294s # 4294s # callback (data1, 4294s # g_marshal_value_peek_int64 (param_values + 1), 4294s # data2); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_x", 4294s # (gchar *) "x", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalX", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-x" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-x: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_x: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 4294s # g_signal_new ("single-arg-signal-x", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_INT64); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_x: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_x: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalX" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_x ( 4294s # OrgProjectSignalingIface *object, 4294s # gint64 arg_arg_x) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 4294s # OrgProjectSignalingIface *object, 4294s # gint64 arg_arg_x) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 4294s # arg_arg_x)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmps4s8o_sh.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmps4s8o_sh.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static void 4294s # _g_dbus_codegen_marshal_VOID__UINT64 ( 4294s # GClosure *closure, 4294s # GValue *return_value G_GNUC_UNUSED, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint G_GNUC_UNUSED, 4294s # void *marshal_data) 4294s # { 4294s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 4294s # (void *data1, 4294s # guint64 arg_arg_t, 4294s # void *data2); 4294s # _GDbusCodegenMarshalVoid_Uint64Func callback; 4294s # GCClosure *cc = (GCClosure*) closure; 4294s # void *data1, *data2; 4294s # 4294s # g_return_if_fail (n_param_values == 2); 4294s # 4294s # if (G_CCLOSURE_SWAP_DATA (closure)) 4294s # { 4294s # data1 = closure->data; 4294s # data2 = g_value_peek_pointer (param_values + 0); 4294s # } 4294s # else 4294s # { 4294s # data1 = g_value_peek_pointer (param_values + 0); 4294s # data2 = closure->data; 4294s # } 4294s # 4294s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 4294s # (marshal_data ? marshal_data : cc->callback); 4294s # 4294s # callback (data1, 4294s # g_marshal_value_peek_uint64 (param_values + 1), 4294s # data2); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_t", 4294s # (gchar *) "t", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalT", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-t" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-t: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_t: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 4294s # g_signal_new ("single-arg-signal-t", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_UINT64); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_t: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_t: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalT" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_t ( 4294s # OrgProjectSignalingIface *object, 4294s # guint64 arg_arg_t) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 4294s # OrgProjectSignalingIface *object, 4294s # guint64 arg_arg_t) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 4294s # arg_arg_t)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpcv2k4wag.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpcv2k4wag.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_d", 4294s # (gchar *) "d", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalD", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-d" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__DOUBLE (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-d: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_d: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 4294s # g_signal_new ("single-arg-signal-d", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_DOUBLE); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_d: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_d: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalD" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_d ( 4294s # OrgProjectSignalingIface *object, 4294s # gdouble arg_arg_d) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 4294s # OrgProjectSignalingIface *object, 4294s # gdouble arg_arg_d) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 4294s # arg_arg_d)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpbms3n4lt.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpbms3n4lt.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_s", 4294s # (gchar *) "s", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalS", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-s" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__STRING (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-s: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_s: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 4294s # g_signal_new ("single-arg-signal-s", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRING); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_s: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_s: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalS" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_s ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_arg_s) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_arg_s) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 4294s # arg_arg_s)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpfiqmshzl.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpfiqmshzl.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_o", 4294s # (gchar *) "o", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalO", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-o" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__STRING (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-o: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_o: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 4294s # g_signal_new ("single-arg-signal-o", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRING); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_o: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_o: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalO" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_o ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_arg_o) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_arg_o) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 4294s # arg_arg_o)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpinpx7tpq.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpinpx7tpq.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_g", 4294s # (gchar *) "g", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalG", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-g" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__STRING (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-g: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_g: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 4294s # g_signal_new ("single-arg-signal-g", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRING); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_g: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_g: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalG" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_g ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_arg_g) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_arg_g) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 4294s # arg_arg_g)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpoz58zops.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpoz58zops.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_h", 4294s # (gchar *) "h", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalH", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-h" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VARIANT (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-h: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_h: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 4294s # g_signal_new ("single-arg-signal-h", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_VARIANT); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_h: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_h: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalH" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_h ( 4294s # OrgProjectSignalingIface *object, 4294s # GVariant *arg_arg_h) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 4294s # OrgProjectSignalingIface *object, 4294s # GVariant *arg_arg_h) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 4294s # arg_arg_h)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpy32oxlsd.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpy32oxlsd.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_ay", 4294s # (gchar *) "ay", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalAy", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-ay" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__STRING (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-ay: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_ay: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 4294s # g_signal_new ("single-arg-signal-ay", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRING); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_ay: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_ay: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalAy" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_ay ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_arg_ay) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *arg_arg_ay) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 4294s # arg_arg_ay)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmp8pqjukmr.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmp8pqjukmr.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4294s # #endif 4294s # 4294s # #ifdef G_ENABLE_DEBUG 4294s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4294s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4294s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4294s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4294s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4294s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4294s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4294s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4294s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4294s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4294s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4294s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4294s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4294s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4294s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4294s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4294s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4294s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4294s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4294s # #else /* !G_ENABLE_DEBUG */ 4294s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4294s # * Do not access GValues directly in your code. Instead, use the 4294s # * g_value_get_*() functions 4294s # */ 4294s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4294s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4294s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4294s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4294s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4294s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4294s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4294s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4294s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4294s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4294s # #endif /* !G_ENABLE_DEBUG */ 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusArgInfo parent_struct; 4294s # gboolean use_gvariant; 4294s # } _ExtendedGDBusArgInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusMethodInfo parent_struct; 4294s # const gchar *signal_name; 4294s # gboolean pass_fdlist; 4294s # } _ExtendedGDBusMethodInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusSignalInfo parent_struct; 4294s # const gchar *signal_name; 4294s # } _ExtendedGDBusSignalInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusPropertyInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # guint use_gvariant : 1; 4294s # guint emits_changed_signal : 1; 4294s # } _ExtendedGDBusPropertyInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # GDBusInterfaceInfo parent_struct; 4294s # const gchar *hyphen_name; 4294s # } _ExtendedGDBusInterfaceInfo; 4294s # 4294s # typedef struct 4294s # { 4294s # const _ExtendedGDBusPropertyInfo *info; 4294s # guint prop_id; 4294s # GValue orig_value; /* the value before the change */ 4294s # } ChangedProperty; 4294s # 4294s # static void 4294s # _changed_property_free (ChangedProperty *data) 4294s # { 4294s # g_value_unset (&data->orig_value); 4294s # g_free (data); 4294s # } 4294s # 4294s # static gboolean 4294s # _g_strv_equal0 (gchar **a, gchar **b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # guint n; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # if (g_strv_length (a) != g_strv_length (b)) 4294s # goto out; 4294s # for (n = 0; a[n] != NULL; n++) 4294s # if (g_strcmp0 (a[n], b[n]) != 0) 4294s # goto out; 4294s # ret = TRUE; 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _g_variant_equal0 (GVariant *a, GVariant *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # if (a == NULL && b == NULL) 4294s # { 4294s # ret = TRUE; 4294s # goto out; 4294s # } 4294s # if (a == NULL || b == NULL) 4294s # goto out; 4294s # ret = g_variant_equal (a, b); 4294s # out: 4294s # return ret; 4294s # } 4294s # 4294s # G_GNUC_UNUSED static gboolean 4294s # _g_value_equal (const GValue *a, const GValue *b) 4294s # { 4294s # gboolean ret = FALSE; 4294s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4294s # switch (G_VALUE_TYPE (a)) 4294s # { 4294s # case G_TYPE_BOOLEAN: 4294s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4294s # break; 4294s # case G_TYPE_UCHAR: 4294s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4294s # break; 4294s # case G_TYPE_INT: 4294s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4294s # break; 4294s # case G_TYPE_UINT: 4294s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4294s # break; 4294s # case G_TYPE_INT64: 4294s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4294s # break; 4294s # case G_TYPE_UINT64: 4294s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4294s # break; 4294s # case G_TYPE_DOUBLE: 4294s # { 4294s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4294s # gdouble da = g_value_get_double (a); 4294s # gdouble db = g_value_get_double (b); 4294s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4294s # } 4294s # break; 4294s # case G_TYPE_STRING: 4294s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4294s # break; 4294s # case G_TYPE_VARIANT: 4294s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4294s # break; 4294s # default: 4294s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4294s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4294s # else 4294s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4294s # break; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ 4294s # * Code for interface org.project.SignalingIface 4294s # * ------------------------------------------------------------------------ 4294s # */ 4294s # 4294s # /** 4294s # * SECTION:OrgProjectSignalingIface 4294s # * @title: OrgProjectSignalingIface 4294s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4294s # * 4294s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4294s # */ 4294s # 4294s # enum 4294s # { 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4294s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 4294s # }; 4294s # 4294s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4294s # 4294s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SimpleSignal", 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "simple-signal" 4294s # }; 4294s # 4294s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "arg_as", 4294s # (gchar *) "as", 4294s # NULL 4294s # }, 4294s # FALSE 4294s # }; 4294s # 4294s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "SingleArgSignalAs", 4294s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 4294s # NULL 4294s # }, 4294s # "single-arg-signal-as" 4294s # }; 4294s # 4294s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4294s # { 4294s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4294s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 4294s # NULL 4294s # }; 4294s # 4294s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4294s # { 4294s # { 4294s # -1, 4294s # (gchar *) "org.project.SignalingIface", 4294s # NULL, 4294s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4294s # NULL, 4294s # NULL 4294s # }, 4294s # "org-project-signaling-iface", 4294s # }; 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_interface_info: 4294s # * 4294s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4294s # * 4294s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4294s # */ 4294s # GDBusInterfaceInfo * 4294s # org_project_signaling_iface_interface_info (void) 4294s # { 4294s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_override_properties: 4294s # * @klass: The class structure for a #GObject derived class. 4294s # * @property_id_begin: The property id to assign to the first overridden property. 4294s # * 4294s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4294s # * The properties are overridden in the order they are defined. 4294s # * 4294s # * Returns: The last property id. 4294s # */ 4294s # guint 4294s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4294s # { 4294s # return property_id_begin - 1; 4294s # } 4294s # 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_simple_signal ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__VOID (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # inline static void 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 4294s # GClosure *closure, 4294s # GValue *return_value, 4294s # unsigned int n_param_values, 4294s # const GValue *param_values, 4294s # void *invocation_hint, 4294s # void *marshal_data) 4294s # { 4294s # g_cclosure_marshal_VOID__BOXED (closure, 4294s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4294s # } 4294s # 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface: 4294s # * 4294s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceIface: 4294s # * @parent_iface: The parent interface. 4294s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4294s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 4294s # * 4294s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4294s # */ 4294s # 4294s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4294s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4294s # 4294s # static void 4294s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # /* GObject signals for received D-Bus signals: */ 4294s # /** 4294s # * OrgProjectSignalingIface::simple-signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4294s # g_signal_new ("simple-signal", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_simple_signal, 4294s # G_TYPE_NONE, 4294s # 0); 4294s # 4294s # /** 4294s # * OrgProjectSignalingIface::single-arg-signal-as: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_as: Argument. 4294s # * 4294s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 4294s # * 4294s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4294s # */ 4294s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 4294s # g_signal_new ("single-arg-signal-as", 4294s # G_TYPE_FROM_INTERFACE (iface), 4294s # G_SIGNAL_RUN_LAST, 4294s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 4294s # NULL, 4294s # NULL, 4294s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 4294s # G_TYPE_NONE, 4294s # 1, G_TYPE_STRV); 4294s # 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_simple_signal: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * 4294s # * Emits the "SimpleSignal" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_emit_single_arg_signal_as: 4294s # * @object: A #OrgProjectSignalingIface. 4294s # * @arg_arg_as: Argument to pass with the signal. 4294s # * 4294s # * Emits the "SingleArgSignalAs" D-Bus signal. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_emit_single_arg_signal_as ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *const *arg_arg_as) 4294s # { 4294s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 4294s # } 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxy: 4294s # * 4294s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceProxyClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceProxy. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceProxyPrivate 4294s # { 4294s # GData *qdata; 4294s # }; 4294s # 4294s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_proxy_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4294s # g_datalist_clear (&proxy->priv->qdata); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4294s # guint prop_id G_GNUC_UNUSED, 4294s # const GValue *value G_GNUC_UNUSED, 4294s # GParamSpec *pspec G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4294s # const gchar *sender_name G_GNUC_UNUSED, 4294s # const gchar *signal_name, 4294s # GVariant *parameters) 4294s # { 4294s # _ExtendedGDBusSignalInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # gsize n; 4294s # guint signal_id; 4294s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4294s # if (info == NULL) 4294s # return; 4294s # num_params = g_variant_n_children (parameters); 4294s # paramv = g_new0 (GValue, num_params + 1); 4294s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[0], proxy); 4294s # g_variant_iter_init (&iter, parameters); 4294s # n = 1; 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_signal_emitv (paramv, signal_id, 0, NULL); 4294s # for (n = 0; n < num_params + 1; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4294s # GVariant *changed_properties, 4294s # const gchar *const *invalidated_properties) 4294s # { 4294s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4294s # guint n; 4294s # const gchar *key; 4294s # GVariantIter *iter; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # g_variant_get (changed_properties, "a{sv}", &iter); 4294s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4294s # g_datalist_remove_data (&proxy->priv->qdata, key); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # g_variant_iter_free (iter); 4294s # for (n = 0; invalidated_properties[n] != NULL; n++) 4294s # { 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4294s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4294s # if (info != NULL) 4294s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4294s # } 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4294s # #else 4294s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4294s # #endif 4294s # 4294s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusProxyClass *proxy_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4294s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4294s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4294s # 4294s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4294s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4294s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_sync: 4294s # * @connection: A #GDBusConnection. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_sync ( 4294s # GDBusConnection *connection, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4294s # * @user_data: User data to pass to @callback. 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4294s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4294s # */ 4294s # void 4294s # org_project_signaling_iface_proxy_new_for_bus ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GAsyncReadyCallback callback, 4294s # gpointer user_data) 4294s # { 4294s # 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); 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4294s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4294s # GAsyncResult *res, 4294s # GError **error) 4294s # { 4294s # GObject *ret; 4294s # GObject *source_object; 4294s # source_object = g_async_result_get_source_object (res); 4294s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4294s # g_object_unref (source_object); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4294s # * @bus_type: A #GBusType. 4294s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4294s # * @name: A bus name (well-known or unique). 4294s # * @object_path: An object path. 4294s # * @cancellable: (nullable): A #GCancellable or %NULL. 4294s # * @error: Return location for error or %NULL 4294s # * 4294s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4294s # * 4294s # * The calling thread is blocked until a reply is received. 4294s # * 4294s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4294s # GBusType bus_type, 4294s # GDBusProxyFlags flags, 4294s # const gchar *name, 4294s # const gchar *object_path, 4294s # GCancellable *cancellable, 4294s # GError **error) 4294s # { 4294s # GInitable *ret; 4294s # 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); 4294s # if (ret != NULL) 4294s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4294s # else 4294s # return NULL; 4294s # } 4294s # 4294s # 4294s # /* ------------------------------------------------------------------------ */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeleton: 4294s # * 4294s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4294s # */ 4294s # 4294s # /** 4294s # * OrgProjectSignalingIfaceSkeletonClass: 4294s # * @parent_class: The parent class. 4294s # * 4294s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4294s # */ 4294s # 4294s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4294s # { 4294s # GValue *properties; 4294s # GList *changed_properties; 4294s # GSource *changed_properties_idle_source; 4294s # GMainContext *context; 4294s # GMutex lock; 4294s # }; 4294s # 4294s # static void 4294s # _org_project_signaling_iface_skeleton_handle_method_call ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name, 4294s # const gchar *method_name, 4294s # GVariant *parameters, 4294s # GDBusMethodInvocation *invocation, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # _ExtendedGDBusMethodInfo *info; 4294s # GVariantIter iter; 4294s # GVariant *child; 4294s # GValue *paramv; 4294s # gsize num_params; 4294s # guint num_extra; 4294s # gsize n; 4294s # guint signal_id; 4294s # GValue return_value = G_VALUE_INIT; 4294s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4294s # g_assert (info != NULL); 4294s # num_params = g_variant_n_children (parameters); 4294s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4294s # n = 0; 4294s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_set_object (¶mv[n++], skeleton); 4294s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4294s # g_value_set_object (¶mv[n++], invocation); 4294s # if (info->pass_fdlist) 4294s # { 4294s # #ifdef G_OS_UNIX 4294s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4294s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4294s # #else 4294s # g_assert_not_reached (); 4294s # #endif 4294s # } 4294s # g_variant_iter_init (&iter, parameters); 4294s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4294s # { 4294s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4294s # if (arg_info->use_gvariant) 4294s # { 4294s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4294s # g_value_set_variant (¶mv[n], child); 4294s # n++; 4294s # } 4294s # else 4294s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4294s # g_variant_unref (child); 4294s # } 4294s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4294s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4294s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4294s # if (!g_value_get_boolean (&return_value)) 4294s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4294s # g_value_unset (&return_value); 4294s # for (n = 0; n < num_params + num_extra; n++) 4294s # g_value_unset (¶mv[n]); 4294s # g_free (paramv); 4294s # } 4294s # 4294s # static GVariant * 4294s # _org_project_signaling_iface_skeleton_handle_get_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # GVariant *ret; 4294s # ret = NULL; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # g_value_init (&value, pspec->value_type); 4294s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4294s # g_value_unset (&value); 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static gboolean 4294s # _org_project_signaling_iface_skeleton_handle_set_property ( 4294s # GDBusConnection *connection G_GNUC_UNUSED, 4294s # const gchar *sender G_GNUC_UNUSED, 4294s # const gchar *object_path G_GNUC_UNUSED, 4294s # const gchar *interface_name G_GNUC_UNUSED, 4294s # const gchar *property_name, 4294s # GVariant *variant, 4294s # GError **error, 4294s # gpointer user_data) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4294s # GValue value = G_VALUE_INIT; 4294s # GParamSpec *pspec; 4294s # _ExtendedGDBusPropertyInfo *info; 4294s # gboolean ret; 4294s # ret = FALSE; 4294s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4294s # g_assert (info != NULL); 4294s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4294s # if (pspec == NULL) 4294s # { 4294s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4294s # } 4294s # else 4294s # { 4294s # if (info->use_gvariant) 4294s # g_value_set_variant (&value, variant); 4294s # else 4294s # g_dbus_gvariant_to_gvalue (variant, &value); 4294s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4294s # g_value_unset (&value); 4294s # ret = TRUE; 4294s # } 4294s # return ret; 4294s # } 4294s # 4294s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4294s # { 4294s # _org_project_signaling_iface_skeleton_handle_method_call, 4294s # _org_project_signaling_iface_skeleton_handle_get_property, 4294s # _org_project_signaling_iface_skeleton_handle_set_property, 4294s # {NULL} 4294s # }; 4294s # 4294s # static GDBusInterfaceInfo * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return org_project_signaling_iface_interface_info (); 4294s # } 4294s # 4294s # static GDBusInterfaceVTable * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4294s # { 4294s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4294s # } 4294s # 4294s # static GVariant * 4294s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4294s # 4294s # GVariantBuilder builder; 4294s # guint n; 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4294s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #else 4294s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4294s # #endif 4294s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4294s # goto out; 4294s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4294s # { 4294s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4294s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4294s # { 4294s # GVariant *value; 4294s # 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); 4294s # if (value != NULL) 4294s # { 4294s # g_variant_take_ref (value); 4294s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4294s # g_variant_unref (value); 4294s # } 4294s # } 4294s # } 4294s # out: 4294s # return g_variant_builder_end (&builder); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4294s # { 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_simple_signal ( 4294s # OrgProjectSignalingIface *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void 4294s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 4294s # OrgProjectSignalingIface *object, 4294s # const gchar *const *arg_arg_as) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # 4294s # GList *connections, *l; 4294s # GVariant *signal_variant; 4294s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4294s # 4294s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 4294s # arg_arg_as)); 4294s # for (l = connections; l != NULL; l = l->next) 4294s # { 4294s # GDBusConnection *connection = l->data; 4294s # g_dbus_connection_emit_signal (connection, 4294s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 4294s # signal_variant, NULL); 4294s # } 4294s # g_variant_unref (signal_variant); 4294s # g_list_free_full (connections, g_object_unref); 4294s # } 4294s # 4294s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #else 4294s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4294s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4294s # 4294s # #endif 4294s # static void 4294s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4294s # { 4294s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4294s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4294s # if (skeleton->priv->changed_properties_idle_source != NULL) 4294s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4294s # g_main_context_unref (skeleton->priv->context); 4294s # g_mutex_clear (&skeleton->priv->lock); 4294s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4294s # { 4294s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4294s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4294s # #else 4294s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4294s # #endif 4294s # 4294s # g_mutex_init (&skeleton->priv->lock); 4294s # skeleton->priv->context = g_main_context_ref_thread_default (); 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4294s # { 4294s # GObjectClass *gobject_class; 4294s # GDBusInterfaceSkeletonClass *skeleton_class; 4294s # 4294s # gobject_class = G_OBJECT_CLASS (klass); 4294s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4294s # 4294s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4294s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4294s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4294s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4294s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4294s # 4294s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4294s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4294s # #endif 4294s # } 4294s # 4294s # static void 4294s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4294s # { 4294s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4294s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 4294s # } 4294s # 4294s # /** 4294s # * org_project_signaling_iface_skeleton_new: 4294s # * 4294s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4294s # * 4294s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4294s # */ 4294s # OrgProjectSignalingIface * 4294s # org_project_signaling_iface_skeleton_new (void) 4294s # { 4294s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4294s # } 4294s # Error: 4294s # 4294s # /tmp/tmp6jvr_wa0/tmpna2vqcoj.xml: 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # 4294s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpna2vqcoj.xml', '--output', '-', '--body'] 4294s # Return code: 0 4294s # Output: 4294s # /* 4294s # * This file is generated by gdbus-codegen, do not modify it. 4294s # * 4294s # * The license of this code is the same as for the D-Bus interface description 4294s # * it was derived from. Note that it links to GLib, so must comply with the 4294s # * LGPL linking clauses. 4294s # */ 4294s # 4294s # #ifdef HAVE_CONFIG_H 4294s # # include "config.h" 4294s # #endif 4294s # 4294s # #include 4294s # #ifdef G_OS_UNIX 4294s # # include 4296s # #endif 4296s # 4296s # #ifdef G_ENABLE_DEBUG 4296s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4296s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4296s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4296s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4296s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4296s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4296s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4296s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4296s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4296s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4296s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4296s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4296s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4296s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4296s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4296s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4296s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4296s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4296s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4296s # #else /* !G_ENABLE_DEBUG */ 4296s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4296s # * Do not access GValues directly in your code. Instead, use the 4296s # * g_value_get_*() functions 4296s # */ 4296s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4296s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4296s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4296s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4296s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4296s # #endif /* !G_ENABLE_DEBUG */ 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusArgInfo parent_struct; 4296s # gboolean use_gvariant; 4296s # } _ExtendedGDBusArgInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusMethodInfo parent_struct; 4296s # const gchar *signal_name; 4296s # gboolean pass_fdlist; 4296s # } _ExtendedGDBusMethodInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusSignalInfo parent_struct; 4296s # const gchar *signal_name; 4296s # } _ExtendedGDBusSignalInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusPropertyInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # guint use_gvariant : 1; 4296s # guint emits_changed_signal : 1; 4296s # } _ExtendedGDBusPropertyInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusInterfaceInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # } _ExtendedGDBusInterfaceInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # guint prop_id; 4296s # GValue orig_value; /* the value before the change */ 4296s # } ChangedProperty; 4296s # 4296s # static void 4296s # _changed_property_free (ChangedProperty *data) 4296s # { 4296s # g_value_unset (&data->orig_value); 4296s # g_free (data); 4296s # } 4296s # 4296s # static gboolean 4296s # _g_strv_equal0 (gchar **a, gchar **b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # guint n; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # if (g_strv_length (a) != g_strv_length (b)) 4296s # goto out; 4296s # for (n = 0; a[n] != NULL; n++) 4296s # if (g_strcmp0 (a[n], b[n]) != 0) 4296s # goto out; 4296s # ret = TRUE; 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _g_variant_equal0 (GVariant *a, GVariant *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # ret = g_variant_equal (a, b); 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # G_GNUC_UNUSED static gboolean 4296s # _g_value_equal (const GValue *a, const GValue *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4296s # switch (G_VALUE_TYPE (a)) 4296s # { 4296s # case G_TYPE_BOOLEAN: 4296s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4296s # break; 4296s # case G_TYPE_UCHAR: 4296s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4296s # break; 4296s # case G_TYPE_INT: 4296s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4296s # break; 4296s # case G_TYPE_UINT: 4296s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4296s # break; 4296s # case G_TYPE_INT64: 4296s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4296s # break; 4296s # case G_TYPE_UINT64: 4296s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4296s # break; 4296s # case G_TYPE_DOUBLE: 4296s # { 4296s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4296s # gdouble da = g_value_get_double (a); 4296s # gdouble db = g_value_get_double (b); 4296s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4296s # } 4296s # break; 4296s # case G_TYPE_STRING: 4296s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4296s # break; 4296s # case G_TYPE_VARIANT: 4296s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4296s # break; 4296s # default: 4296s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4296s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4296s # else 4296s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4296s # break; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ 4296s # * Code for interface org.project.SignalingIface 4296s # * ------------------------------------------------------------------------ 4296s # */ 4296s # 4296s # /** 4296s # * SECTION:OrgProjectSignalingIface 4296s # * @title: OrgProjectSignalingIface 4296s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4296s # * 4296s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4296s # */ 4296s # 4296s # enum 4296s # { 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4296s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 4296s # }; 4296s # 4296s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4296s # 4296s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4296s # 4296s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "SimpleSignal", 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "simple-signal" 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "arg_ao", 4296s # (gchar *) "ao", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 4296s # { 4296s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "SingleArgSignalAo", 4296s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 4296s # NULL 4296s # }, 4296s # "single-arg-signal-ao" 4296s # }; 4296s # 4296s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4296s # { 4296s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "org.project.SignalingIface", 4296s # NULL, 4296s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "org-project-signaling-iface", 4296s # }; 4296s # 4296s # 4296s # /** 4296s # * org_project_signaling_iface_interface_info: 4296s # * 4296s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4296s # * 4296s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4296s # */ 4296s # GDBusInterfaceInfo * 4296s # org_project_signaling_iface_interface_info (void) 4296s # { 4296s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_override_properties: 4296s # * @klass: The class structure for a #GObject derived class. 4296s # * @property_id_begin: The property id to assign to the first overridden property. 4296s # * 4296s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4296s # * The properties are overridden in the order they are defined. 4296s # * 4296s # * Returns: The last property id. 4296s # */ 4296s # guint 4296s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4296s # { 4296s # return property_id_begin - 1; 4296s # } 4296s # 4296s # 4296s # inline static void 4296s # org_project_signaling_iface_signal_marshal_simple_signal ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # g_cclosure_marshal_VOID__VOID (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # inline static void 4296s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # g_cclosure_marshal_VOID__BOXED (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # 4296s # /** 4296s # * OrgProjectSignalingIface: 4296s # * 4296s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceIface: 4296s # * @parent_iface: The parent interface. 4296s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4296s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 4296s # * 4296s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4296s # */ 4296s # 4296s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4296s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4296s # 4296s # static void 4296s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4296s # { 4296s # /* GObject signals for received D-Bus signals: */ 4296s # /** 4296s # * OrgProjectSignalingIface::simple-signal: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * 4296s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4296s # * 4296s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4296s # */ 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4296s # g_signal_new ("simple-signal", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4296s # NULL, 4296s # NULL, 4296s # org_project_signaling_iface_signal_marshal_simple_signal, 4296s # G_TYPE_NONE, 4296s # 0); 4296s # 4296s # /** 4296s # * OrgProjectSignalingIface::single-arg-signal-ao: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * @arg_arg_ao: Argument. 4296s # * 4296s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 4296s # * 4296s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4296s # */ 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 4296s # g_signal_new ("single-arg-signal-ao", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 4296s # NULL, 4296s # NULL, 4296s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 4296s # G_TYPE_NONE, 4296s # 1, G_TYPE_STRV); 4296s # 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_emit_simple_signal: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * 4296s # * Emits the "SimpleSignal" D-Bus signal. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_emit_simple_signal ( 4296s # OrgProjectSignalingIface *object) 4296s # { 4296s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_emit_single_arg_signal_ao: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * @arg_arg_ao: Argument to pass with the signal. 4296s # * 4296s # * Emits the "SingleArgSignalAo" D-Bus signal. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_emit_single_arg_signal_ao ( 4296s # OrgProjectSignalingIface *object, 4296s # const gchar *const *arg_arg_ao) 4296s # { 4296s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceProxy: 4296s # * 4296s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceProxyClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectSignalingIfaceProxy. 4296s # */ 4296s # 4296s # struct _OrgProjectSignalingIfaceProxyPrivate 4296s # { 4296s # GData *qdata; 4296s # }; 4296s # 4296s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4296s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_signaling_iface_proxy_finalize (GObject *object) 4296s # { 4296s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4296s # g_datalist_clear (&proxy->priv->qdata); 4296s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # const GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4296s # const gchar *sender_name G_GNUC_UNUSED, 4296s # const gchar *signal_name, 4296s # GVariant *parameters) 4296s # { 4296s # _ExtendedGDBusSignalInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # gsize n; 4296s # guint signal_id; 4296s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4296s # if (info == NULL) 4296s # return; 4296s # num_params = g_variant_n_children (parameters); 4296s # paramv = g_new0 (GValue, num_params + 1); 4296s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_set_object (¶mv[0], proxy); 4296s # g_variant_iter_init (&iter, parameters); 4296s # n = 1; 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_signal_emitv (paramv, signal_id, 0, NULL); 4296s # for (n = 0; n < num_params + 1; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4296s # GVariant *changed_properties, 4296s # const gchar *const *invalidated_properties) 4296s # { 4296s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4296s # guint n; 4296s # const gchar *key; 4296s # GVariantIter *iter; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # g_variant_get (changed_properties, "a{sv}", &iter); 4296s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4296s # g_datalist_remove_data (&proxy->priv->qdata, key); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # g_variant_iter_free (iter); 4296s # for (n = 0; invalidated_properties[n] != NULL; n++) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4296s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4296s # #else 4296s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4296s # #endif 4296s # 4296s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusProxyClass *proxy_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4296s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4296s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4296s # 4296s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4296s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4296s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_sync: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceSkeleton: 4296s # * 4296s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceSkeletonClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4296s # */ 4296s # 4296s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4296s # { 4296s # GValue *properties; 4296s # GList *changed_properties; 4296s # GSource *changed_properties_idle_source; 4296s # GMainContext *context; 4296s # GMutex lock; 4296s # }; 4296s # 4296s # static void 4296s # _org_project_signaling_iface_skeleton_handle_method_call ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name, 4296s # const gchar *method_name, 4296s # GVariant *parameters, 4296s # GDBusMethodInvocation *invocation, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # _ExtendedGDBusMethodInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # guint num_extra; 4296s # gsize n; 4296s # guint signal_id; 4296s # GValue return_value = G_VALUE_INIT; 4296s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4296s # g_assert (info != NULL); 4296s # num_params = g_variant_n_children (parameters); 4296s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4296s # n = 0; 4296s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_set_object (¶mv[n++], skeleton); 4296s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4296s # g_value_set_object (¶mv[n++], invocation); 4296s # if (info->pass_fdlist) 4296s # { 4296s # #ifdef G_OS_UNIX 4296s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4296s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4296s # #else 4296s # g_assert_not_reached (); 4296s # #endif 4296s # } 4296s # g_variant_iter_init (&iter, parameters); 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4296s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4296s # if (!g_value_get_boolean (&return_value)) 4296s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4296s # g_value_unset (&return_value); 4296s # for (n = 0; n < num_params + num_extra; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static GVariant * 4296s # _org_project_signaling_iface_skeleton_handle_get_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *ret; 4296s # ret = NULL; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # g_value_init (&value, pspec->value_type); 4296s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4296s # g_value_unset (&value); 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _org_project_signaling_iface_skeleton_handle_set_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GVariant *variant, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # gboolean ret; 4296s # ret = FALSE; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # if (info->use_gvariant) 4296s # g_value_set_variant (&value, variant); 4296s # else 4296s # g_dbus_gvariant_to_gvalue (variant, &value); 4296s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # g_value_unset (&value); 4296s # ret = TRUE; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4296s # { 4296s # _org_project_signaling_iface_skeleton_handle_method_call, 4296s # _org_project_signaling_iface_skeleton_handle_get_property, 4296s # _org_project_signaling_iface_skeleton_handle_set_property, 4296s # {NULL} 4296s # }; 4296s # 4296s # static GDBusInterfaceInfo * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return org_project_signaling_iface_interface_info (); 4296s # } 4296s # 4296s # static GDBusInterfaceVTable * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4296s # } 4296s # 4296s # static GVariant * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4296s # 4296s # GVariantBuilder builder; 4296s # guint n; 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4296s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #else 4296s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #endif 4296s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4296s # goto out; 4296s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4296s # { 4296s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4296s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4296s # { 4296s # GVariant *value; 4296s # 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); 4296s # if (value != NULL) 4296s # { 4296s # g_variant_take_ref (value); 4296s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4296s # g_variant_unref (value); 4296s # } 4296s # } 4296s # } 4296s # out: 4296s # return g_variant_builder_end (&builder); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # _org_project_signaling_iface_on_signal_simple_signal ( 4296s # OrgProjectSignalingIface *object) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # 4296s # GList *connections, *l; 4296s # GVariant *signal_variant; 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4296s # for (l = connections; l != NULL; l = l->next) 4296s # { 4296s # GDBusConnection *connection = l->data; 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4296s # signal_variant, NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # 4296s # static void 4296s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 4296s # OrgProjectSignalingIface *object, 4296s # const gchar *const *arg_arg_ao) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # 4296s # GList *connections, *l; 4296s # GVariant *signal_variant; 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 4296s # arg_arg_ao)); 4296s # for (l = connections; l != NULL; l = l->next) 4296s # { 4296s # GDBusConnection *connection = l->data; 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 4296s # signal_variant, NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # 4296s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4296s # if (skeleton->priv->changed_properties_idle_source != NULL) 4296s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4296s # g_main_context_unref (skeleton->priv->context); 4296s # g_mutex_clear (&skeleton->priv->lock); 4296s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4296s # #else 4296s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4296s # #endif 4296s # 4296s # g_mutex_init (&skeleton->priv->lock); 4296s # skeleton->priv->context = g_main_context_ref_thread_default (); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusInterfaceSkeletonClass *skeleton_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4296s # 4296s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4296s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4296s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4296s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4296s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4296s # { 4296s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4296s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_skeleton_new: 4296s # * 4296s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_skeleton_new (void) 4296s # { 4296s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4296s # } 4296s # Error: 4296s # 4296s # /tmp/tmp6jvr_wa0/tmp66h884h3.xml: 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmp66h884h3.xml', '--output', '-', '--body'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifdef HAVE_CONFIG_H 4296s # # include "config.h" 4296s # #endif 4296s # 4296s # #include 4296s # #ifdef G_OS_UNIX 4296s # # include 4296s # #endif 4296s # 4296s # #ifdef G_ENABLE_DEBUG 4296s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4296s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4296s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4296s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4296s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4296s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4296s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4296s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4296s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4296s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4296s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4296s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4296s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4296s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4296s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4296s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4296s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4296s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4296s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4296s # #else /* !G_ENABLE_DEBUG */ 4296s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4296s # * Do not access GValues directly in your code. Instead, use the 4296s # * g_value_get_*() functions 4296s # */ 4296s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4296s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4296s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4296s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4296s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4296s # #endif /* !G_ENABLE_DEBUG */ 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusArgInfo parent_struct; 4296s # gboolean use_gvariant; 4296s # } _ExtendedGDBusArgInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusMethodInfo parent_struct; 4296s # const gchar *signal_name; 4296s # gboolean pass_fdlist; 4296s # } _ExtendedGDBusMethodInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusSignalInfo parent_struct; 4296s # const gchar *signal_name; 4296s # } _ExtendedGDBusSignalInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusPropertyInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # guint use_gvariant : 1; 4296s # guint emits_changed_signal : 1; 4296s # } _ExtendedGDBusPropertyInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusInterfaceInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # } _ExtendedGDBusInterfaceInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # guint prop_id; 4296s # GValue orig_value; /* the value before the change */ 4296s # } ChangedProperty; 4296s # 4296s # static void 4296s # _changed_property_free (ChangedProperty *data) 4296s # { 4296s # g_value_unset (&data->orig_value); 4296s # g_free (data); 4296s # } 4296s # 4296s # static gboolean 4296s # _g_strv_equal0 (gchar **a, gchar **b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # guint n; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # if (g_strv_length (a) != g_strv_length (b)) 4296s # goto out; 4296s # for (n = 0; a[n] != NULL; n++) 4296s # if (g_strcmp0 (a[n], b[n]) != 0) 4296s # goto out; 4296s # ret = TRUE; 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _g_variant_equal0 (GVariant *a, GVariant *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # ret = g_variant_equal (a, b); 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # G_GNUC_UNUSED static gboolean 4296s # _g_value_equal (const GValue *a, const GValue *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4296s # switch (G_VALUE_TYPE (a)) 4296s # { 4296s # case G_TYPE_BOOLEAN: 4296s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4296s # break; 4296s # case G_TYPE_UCHAR: 4296s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4296s # break; 4296s # case G_TYPE_INT: 4296s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4296s # break; 4296s # case G_TYPE_UINT: 4296s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4296s # break; 4296s # case G_TYPE_INT64: 4296s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4296s # break; 4296s # case G_TYPE_UINT64: 4296s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4296s # break; 4296s # case G_TYPE_DOUBLE: 4296s # { 4296s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4296s # gdouble da = g_value_get_double (a); 4296s # gdouble db = g_value_get_double (b); 4296s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4296s # } 4296s # break; 4296s # case G_TYPE_STRING: 4296s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4296s # break; 4296s # case G_TYPE_VARIANT: 4296s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4296s # break; 4296s # default: 4296s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4296s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4296s # else 4296s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4296s # break; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ 4296s # * Code for interface org.project.SignalingIface 4296s # * ------------------------------------------------------------------------ 4296s # */ 4296s # 4296s # /** 4296s # * SECTION:OrgProjectSignalingIface 4296s # * @title: OrgProjectSignalingIface 4296s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4296s # * 4296s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4296s # */ 4296s # 4296s # enum 4296s # { 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4296s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 4296s # }; 4296s # 4296s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4296s # 4296s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4296s # 4296s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "SimpleSignal", 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "simple-signal" 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "arg_aay", 4296s # (gchar *) "aay", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 4296s # { 4296s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "SingleArgSignalAay", 4296s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 4296s # NULL 4296s # }, 4296s # "single-arg-signal-aay" 4296s # }; 4296s # 4296s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4296s # { 4296s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "org.project.SignalingIface", 4296s # NULL, 4296s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "org-project-signaling-iface", 4296s # }; 4296s # 4296s # 4296s # /** 4296s # * org_project_signaling_iface_interface_info: 4296s # * 4296s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4296s # * 4296s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4296s # */ 4296s # GDBusInterfaceInfo * 4296s # org_project_signaling_iface_interface_info (void) 4296s # { 4296s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_override_properties: 4296s # * @klass: The class structure for a #GObject derived class. 4296s # * @property_id_begin: The property id to assign to the first overridden property. 4296s # * 4296s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4296s # * The properties are overridden in the order they are defined. 4296s # * 4296s # * Returns: The last property id. 4296s # */ 4296s # guint 4296s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4296s # { 4296s # return property_id_begin - 1; 4296s # } 4296s # 4296s # 4296s # inline static void 4296s # org_project_signaling_iface_signal_marshal_simple_signal ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # g_cclosure_marshal_VOID__VOID (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # inline static void 4296s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # g_cclosure_marshal_VOID__BOXED (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # 4296s # /** 4296s # * OrgProjectSignalingIface: 4296s # * 4296s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceIface: 4296s # * @parent_iface: The parent interface. 4296s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4296s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 4296s # * 4296s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4296s # */ 4296s # 4296s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4296s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4296s # 4296s # static void 4296s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4296s # { 4296s # /* GObject signals for received D-Bus signals: */ 4296s # /** 4296s # * OrgProjectSignalingIface::simple-signal: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * 4296s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4296s # * 4296s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4296s # */ 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4296s # g_signal_new ("simple-signal", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4296s # NULL, 4296s # NULL, 4296s # org_project_signaling_iface_signal_marshal_simple_signal, 4296s # G_TYPE_NONE, 4296s # 0); 4296s # 4296s # /** 4296s # * OrgProjectSignalingIface::single-arg-signal-aay: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * @arg_arg_aay: Argument. 4296s # * 4296s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 4296s # * 4296s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4296s # */ 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 4296s # g_signal_new ("single-arg-signal-aay", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 4296s # NULL, 4296s # NULL, 4296s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 4296s # G_TYPE_NONE, 4296s # 1, G_TYPE_STRV); 4296s # 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_emit_simple_signal: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * 4296s # * Emits the "SimpleSignal" D-Bus signal. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_emit_simple_signal ( 4296s # OrgProjectSignalingIface *object) 4296s # { 4296s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_emit_single_arg_signal_aay: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * @arg_arg_aay: Argument to pass with the signal. 4296s # * 4296s # * Emits the "SingleArgSignalAay" D-Bus signal. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_emit_single_arg_signal_aay ( 4296s # OrgProjectSignalingIface *object, 4296s # const gchar *const *arg_arg_aay) 4296s # { 4296s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceProxy: 4296s # * 4296s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceProxyClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectSignalingIfaceProxy. 4296s # */ 4296s # 4296s # struct _OrgProjectSignalingIfaceProxyPrivate 4296s # { 4296s # GData *qdata; 4296s # }; 4296s # 4296s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4296s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_signaling_iface_proxy_finalize (GObject *object) 4296s # { 4296s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4296s # g_datalist_clear (&proxy->priv->qdata); 4296s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # const GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4296s # const gchar *sender_name G_GNUC_UNUSED, 4296s # const gchar *signal_name, 4296s # GVariant *parameters) 4296s # { 4296s # _ExtendedGDBusSignalInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # gsize n; 4296s # guint signal_id; 4296s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4296s # if (info == NULL) 4296s # return; 4296s # num_params = g_variant_n_children (parameters); 4296s # paramv = g_new0 (GValue, num_params + 1); 4296s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_set_object (¶mv[0], proxy); 4296s # g_variant_iter_init (&iter, parameters); 4296s # n = 1; 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_signal_emitv (paramv, signal_id, 0, NULL); 4296s # for (n = 0; n < num_params + 1; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4296s # GVariant *changed_properties, 4296s # const gchar *const *invalidated_properties) 4296s # { 4296s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4296s # guint n; 4296s # const gchar *key; 4296s # GVariantIter *iter; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # g_variant_get (changed_properties, "a{sv}", &iter); 4296s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4296s # g_datalist_remove_data (&proxy->priv->qdata, key); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # g_variant_iter_free (iter); 4296s # for (n = 0; invalidated_properties[n] != NULL; n++) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4296s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4296s # #else 4296s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4296s # #endif 4296s # 4296s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusProxyClass *proxy_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4296s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4296s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4296s # 4296s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4296s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4296s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_sync: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /** 4296s # * org# Executing: glib/signals-refcount2.test 4296s _project_signaling_iface_proxy_new_for_bus: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceSkeleton: 4296s # * 4296s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceSkeletonClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4296s # */ 4296s # 4296s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4296s # { 4296s # GValue *properties; 4296s # GList *changed_properties; 4296s # GSource *changed_properties_idle_source; 4296s # GMainContext *context; 4296s # GMutex lock; 4296s # }; 4296s # 4296s # static void 4296s # _org_project_signaling_iface_skeleton_handle_method_call ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name, 4296s # const gchar *method_name, 4296s # GVariant *parameters, 4296s # GDBusMethodInvocation *invocation, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # _ExtendedGDBusMethodInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # guint num_extra; 4296s # gsize n; 4296s # guint signal_id; 4296s # GValue return_value = G_VALUE_INIT; 4296s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4296s # g_assert (info != NULL); 4296s # num_params = g_variant_n_children (parameters); 4296s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4296s # n = 0; 4296s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_set_object (¶mv[n++], skeleton); 4296s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4296s # g_value_set_object (¶mv[n++], invocation); 4296s # if (info->pass_fdlist) 4296s # { 4296s # #ifdef G_OS_UNIX 4296s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4296s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4296s # #else 4296s # g_assert_not_reached (); 4296s # #endif 4296s # } 4296s # g_variant_iter_init (&iter, parameters); 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4296s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4296s # if (!g_value_get_boolean (&return_value)) 4296s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4296s # g_value_unset (&return_value); 4296s # for (n = 0; n < num_params + num_extra; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static GVariant * 4296s # _org_project_signaling_iface_skeleton_handle_get_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *ret; 4296s # ret = NULL; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # g_value_init (&value, pspec->value_type); 4296s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4296s # g_value_unset (&value); 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _org_project_signaling_iface_skeleton_handle_set_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GVariant *variant, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # gboolean ret; 4296s # ret = FALSE; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # if (info->use_gvariant) 4296s # g_value_set_variant (&value, variant); 4296s # else 4296s # g_dbus_gvariant_to_gvalue (variant, &value); 4296s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # g_value_unset (&value); 4296s # ret = TRUE; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4296s # { 4296s # _org_project_signaling_iface_skeleton_handle_method_call, 4296s # _org_project_signaling_iface_skeleton_handle_get_property, 4296s # _org_project_signaling_iface_skeleton_handle_set_property, 4296s # {NULL} 4296s # }; 4296s # 4296s # static GDBusInterfaceInfo * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return org_project_signaling_iface_interface_info (); 4296s # } 4296s # 4296s # static GDBusInterfaceVTable * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4296s # } 4296s # 4296s # static GVariant * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4296s # 4296s # GVariantBuilder builder; 4296s # guint n; 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4296s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #else 4296s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #endif 4296s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4296s # goto out; 4296s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4296s # { 4296s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4296s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4296s # { 4296s # GVariant *value; 4296s # 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); 4296s # if (value != NULL) 4296s # { 4296s # g_variant_take_ref (value); 4296s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4296s # g_variant_unref (value); 4296s # } 4296s # } 4296s # } 4296s # out: 4296s # return g_variant_builder_end (&builder); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # _org_project_signaling_iface_on_signal_simple_signal ( 4296s # OrgProjectSignalingIface *object) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # 4296s # GList *connections, *l; 4296s # GVariant *signal_variant; 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4296s # for (l = connections; l != NULL; l = l->next) 4296s # { 4296s # GDBusConnection *connection = l->data; 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4296s # signal_variant, NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # 4296s # static void 4296s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 4296s # OrgProjectSignalingIface *object, 4296s # const gchar *const *arg_arg_aay) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # 4296s # GList *connections, *l; 4296s # GVariant *signal_variant; 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 4296s # arg_arg_aay)); 4296s # for (l = connections; l != NULL; l = l->next) 4296s # { 4296s # GDBusConnection *connection = l->data; 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 4296s # signal_variant, NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # 4296s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4296s # if (skeleton->priv->changed_properties_idle_source != NULL) 4296s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4296s # g_main_context_unref (skeleton->priv->context); 4296s # g_mutex_clear (&skeleton->priv->lock); 4296s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4296s # #else 4296s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4296s # #endif 4296s # 4296s # g_mutex_init (&skeleton->priv->lock); 4296s # skeleton->priv->context = g_main_context_ref_thread_default (); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusInterfaceSkeletonClass *skeleton_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4296s # 4296s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4296s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4296s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4296s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4296s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4296s # { 4296s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4296s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_skeleton_new: 4296s # * 4296s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_skeleton_new (void) 4296s # { 4296s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4296s # } 4296s # Error: 4296s # 4296s # /tmp/tmp6jvr_wa0/tmpzya5mbs1.xml: 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6jvr_wa0/tmpzya5mbs1.xml', '--output', '-', '--body'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifdef HAVE_CONFIG_H 4296s # # include "config.h" 4296s # #endif 4296s # 4296s # #include 4296s # #ifdef G_OS_UNIX 4296s # # include 4296s # #endif 4296s # 4296s # #ifdef G_ENABLE_DEBUG 4296s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4296s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4296s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4296s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4296s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4296s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4296s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4296s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4296s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4296s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4296s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4296s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4296s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4296s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4296s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4296s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4296s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4296s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4296s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4296s # #else /* !G_ENABLE_DEBUG */ 4296s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4296s # * Do not access GValues directly in your code. Instead, use the 4296s # * g_value_get_*() functions 4296s # */ 4296s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4296s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4296s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4296s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4296s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4296s # #endif /* !G_ENABLE_DEBUG */ 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusArgInfo parent_struct; 4296s # gboolean use_gvariant; 4296s # } _ExtendedGDBusArgInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusMethodInfo parent_struct; 4296s # const gchar *signal_name; 4296s # gboolean pass_fdlist; 4296s # } _ExtendedGDBusMethodInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusSignalInfo parent_struct; 4296s # const gchar *signal_name; 4296s # } _ExtendedGDBusSignalInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusPropertyInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # guint use_gvariant : 1; 4296s # guint emits_changed_signal : 1; 4296s # } _ExtendedGDBusPropertyInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusInterfaceInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # } _ExtendedGDBusInterfaceInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # guint prop_id; 4296s # GValue orig_value; /* the value before the change */ 4296s # } ChangedProperty; 4296s # 4296s # static void 4296s # _changed_property_free (ChangedProperty *data) 4296s # { 4296s # g_value_unset (&data->orig_value); 4296s # g_free (data); 4296s # } 4296s # 4296s # static gboolean 4296s # _g_strv_equal0 (gchar **a, gchar **b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # guint n; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # if (g_strv_length (a) != g_strv_length (b)) 4296s # goto out; 4296s # for (n = 0; a[n] != NULL; n++) 4296s # if (g_strcmp0 (a[n], b[n]) != 0) 4296s # goto out; 4296s # ret = TRUE; 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _g_variant_equal0 (GVariant *a, GVariant *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # ret = g_variant_equal (a, b); 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # G_GNUC_UNUSED static gboolean 4296s # _g_value_equal (const GValue *a, const GValue *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4296s # switch (G_VALUE_TYPE (a)) 4296s # { 4296s # case G_TYPE_BOOLEAN: 4296s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4296s # break; 4296s # case G_TYPE_UCHAR: 4296s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4296s # break; 4296s # case G_TYPE_INT: 4296s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4296s # break; 4296s # case G_TYPE_UINT: 4296s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4296s # break; 4296s # case G_TYPE_INT64: 4296s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4296s # break; 4296s # case G_TYPE_UINT64: 4296s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4296s # break; 4296s # case G_TYPE_DOUBLE: 4296s # { 4296s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4296s # gdouble da = g_value_get_double (a); 4296s # gdouble db = g_value_get_double (b); 4296s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4296s # } 4296s # break; 4296s # case G_TYPE_STRING: 4296s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4296s # break; 4296s # case G_TYPE_VARIANT: 4296s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4296s # break; 4296s # default: 4296s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4296s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4296s # else 4296s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4296s # break; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ 4296s # * Code for interface org.project.SignalingIface 4296s # * ------------------------------------------------------------------------ 4296s # */ 4296s # 4296s # /** 4296s # * SECTION:OrgProjectSignalingIface 4296s # * @title: OrgProjectSignalingIface 4296s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4296s # * 4296s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4296s # */ 4296s # 4296s # enum 4296s # { 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4296s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 4296s # }; 4296s # 4296s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4296s # 4296s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4296s # 4296s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "SimpleSignal", 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "simple-signal" 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "arg_asv", 4296s # (gchar *) "a{sv}", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 4296s # { 4296s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "SingleArgSignalAsv", 4296s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 4296s # NULL 4296s # }, 4296s # "single-arg-signal-asv" 4296s # }; 4296s # 4296s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4296s # { 4296s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "org.project.SignalingIface", 4296s # NULL, 4296s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "org-project-signaling-iface", 4296s # }; 4296s # 4296s # 4296s # /** 4296s # * org_project_signaling_iface_interface_info: 4296s # * 4296s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4296s # * 4296s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4296s # */ 4296s # GDBusInterfaceInfo * 4296s # org_project_signaling_iface_interface_info (void) 4296s # { 4296s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_override_properties: 4296s # * @klass: The class structure for a #GObject derived class. 4296s # * @property_id_begin: The property id to assign to the first overridden property. 4296s # * 4296s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4296s # * The properties are overridden in the order they are defined. 4296s # * 4296s # * Returns: The last property id. 4296s # */ 4296s # guint 4296s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4296s # { 4296s # return property_id_begin - 1; 4296s # } 4296s # 4296s # 4296s # inline static void 4296s # org_project_signaling_iface_signal_marshal_simple_signal ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # g_cclosure_marshal_VOID__VOID (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # inline static void 4296s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # g_cclosure_marshal_VOID__VARIANT (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # 4296s # /** 4296s # * OrgProjectSignalingIface: 4296s # * 4296s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceIface: 4296s # * @parent_iface: The parent interface. 4296s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4296s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 4296s # * 4296s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4296s # */ 4296s # 4296s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4296s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4296s # 4296s # static void 4296s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4296s # { 4296s # /* GObject signals for received D-Bus signals: */ 4296s # /** 4296s # * OrgProjectSignalingIface::simple-signal: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * 4296s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4296s # * 4296s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4296s # */ 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4296s # g_signal_new ("simple-signal", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4296s # NULL, 4296s # NULL, 4296s # org_project_signaling_iface_signal_marshal_simple_signal, 4296s # G_TYPE_NONE, 4296s # 0); 4296s # 4296s # /** 4296s # * OrgProjectSignalingIface::single-arg-signal-asv: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * @arg_arg_asv: Argument. 4296s # * 4296s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 4296s # * 4296s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4296s # */ 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 4296s # g_signal_new ("single-arg-signal-asv", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 4296s # NULL, 4296s # NULL, 4296s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 4296s # G_TYPE_NONE, 4296s # 1, G_TYPE_VARIANT); 4296s # 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_emit_simple_signal: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * 4296s # * Emits the "SimpleSignal" D-Bus signal. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_emit_simple_signal ( 4296s # OrgProjectSignalingIface *object) 4296s # { 4296s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_emit_single_arg_signal_asv: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * @arg_arg_asv: Argument to pass with the signal. 4296s # * 4296s # * Emits the "SingleArgSignalAsv" D-Bus signal. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_emit_single_arg_signal_asv ( 4296s # OrgProjectSignalingIface *object, 4296s # GVariant *arg_arg_asv) 4296s # { 4296s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceProxy: 4296s # * 4296s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceProxyClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectSignalingIfaceProxy. 4296s # */ 4296s # 4296s # struct _OrgProjectSignalingIfaceProxyPrivate 4296s # { 4296s # GData *qdata; 4296s # }; 4296s # 4296s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4296s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_signaling_iface_proxy_finalize (GObject *object) 4296s # { 4296s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4296s # g_datalist_clear (&proxy->priv->qdata); 4296s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # const GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4296s # const gchar *sender_name G_GNUC_UNUSED, 4296s # const gchar *signal_name, 4296s # GVariant *parameters) 4296s # { 4296s # _ExtendedGDBusSignalInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # gsize n; 4296s # guint signal_id; 4296s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4296s # if (info == NULL) 4296s # return; 4296s # num_params = g_variant_n_children (parameters); 4296s # paramv = g_new0 (GValue, num_params + 1); 4296s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_set_object (¶mv[0], proxy); 4296s # g_variant_iter_init (&iter, parameters); 4296s # n = 1; 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_signal_emitv (paramv, signal_id, 0, NULL); 4296s # for (n = 0; n < num_params + 1; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4296s # GVariant *changed_properties, 4296s # const gchar *const *invalidated_properties) 4296s # { 4296s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4296s # guint n; 4296s # const gchar *key; 4296s # GVariantIter *iter; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # g_variant_get (changed_properties, "a{sv}", &iter); 4296s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4296s # g_datalist_remove_data (&proxy->priv->qdata, key); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # g_variant_iter_free (iter); 4296s # for (n = 0; invalidated_properties[n] != NULL; n++) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4296s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4296s # #else 4296s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4296s # #endif 4296s # 4296s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusProxyClass *proxy_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4296s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4296s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4296s # 4296s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4296s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4296s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_sync: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceSkeleton: 4296s # * 4296s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceSkeletonClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4296s # */ 4296s # 4296s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4296s # { 4296s # GValue *properties; 4296s # GList *changed_properties; 4296s # GSource *changed_properties_idle_source; 4296s # GMainContext *context; 4296s # GMutex lock; 4296s # }; 4296s # 4296s # static void 4296s # _org_project_signaling_iface_skeleton_handle_method_call ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name, 4296s # const gchar *method_name, 4296s # GVariant *parameters, 4296s # GDBusMethodInvocation *invocation, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # _ExtendedGDBusMethodInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # guint num_extra; 4296s # gsize n; 4296s # guint signal_id; 4296s # GValue return_value = G_VALUE_INIT; 4296s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4296s # g_assert (info != NULL); 4296s # num_params = g_variant_n_children (parameters); 4296s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4296s # n = 0; 4296s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_set_object (¶mv[n++], skeleton); 4296s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4296s # g_value_set_object (¶mv[n++], invocation); 4296s # if (info->pass_fdlist) 4296s # { 4296s # #ifdef G_OS_UNIX 4296s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4296s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4296s # #else 4296s # g_assert_not_reached (); 4296s # #endif 4296s # } 4296s # g_variant_iter_init (&iter, parameters); 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4296s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4296s # if (!g_value_get_boolean (&return_value)) 4296s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4296s # g_value_unset (&return_value); 4296s # for (n = 0; n < num_params + num_extra; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static GVariant * 4296s # _org_project_signaling_iface_skeleton_handle_get_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *ret; 4296s # ret = NULL; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # g_value_init (&value, pspec->value_type); 4296s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4296s # g_value_unset (&value); 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _org_project_signaling_iface_skeleton_handle_set_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GVariant *variant, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # gboolean ret; 4296s # ret = FALSE; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # if (info->use_gvariant) 4296s # g_value_set_variant (&value, variant); 4296s # else 4296s # g_dbus_gvariant_to_gvalue (variant, &value); 4296s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # g_value_unset (&value); 4296s # ret = TRUE; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4296s # { 4296s # _org_project_signaling_iface_skeleton_handle_method_call, 4296s # _org_project_signaling_iface_skeleton_handle_get_property, 4296s # _org_project_signaling_iface_skeleton_handle_set_property, 4296s # {NULL} 4296s # }; 4296s # 4296s # static GDBusInterfaceInfo * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return org_project_signaling_iface_interface_info (); 4296s # } 4296s # 4296s # static GDBusInterfaceVTable * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4296s # } 4296s # 4296s # static GVariant * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4296s # 4296s # GVariantBuilder builder; 4296s # guint n; 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4296s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #else 4296s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #endif 4296s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4296s # goto out; 4296s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4296s # { 4296s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4296s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4296s # { 4296s # GVariant *value; 4296s # 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); 4296s # if (value != NULL) 4296s # { 4296s # g_variant_take_ref (value); 4296s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4296s # g_variant_unref (value); 4296s # } 4296s # } 4296s # } 4296s # out: 4296s # return g_variant_builder_end (&builder); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # _org_project_signaling_iface_on_signal_simple_signal ( 4296s # OrgProjectSignalingIface *object) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # 4296s # GList *connections, *l; 4296s # GVariant *signal_variant; 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4296s # for (l = connections; l != NULL; l = l->next) 4296s # { 4296s # GDBusConnection *connection = l->data; 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4296s # signal_variant, NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # 4296s # static void 4296s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 4296s # OrgProjectSignalingIface *object, 4296s # GVariant *arg_arg_asv) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # 4296s # GList *connections, *l; 4296s # GVariant *signal_variant; 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 4296s # arg_arg_asv)); 4296s # for (l = connections; l != NULL; l = l->next) 4296s # { 4296s # GDBusConnection *connection = l->data; 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 4296s # signal_variant, NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # 4296s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4296s # if (skeleton->priv->changed_properties_idle_source != NULL) 4296s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4296s # g_main_context_unref (skeleton->priv->context); 4296s # g_mutex_clear (&skeleton->priv->lock); 4296s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4296s # #else 4296s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4296s # #endif 4296s # 4296s # g_mutex_init (&skeleton->priv->lock); 4296s # skeleton->priv->context = g_main_context_ref_thread_default (); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusInterfaceSkeletonClass *skeleton_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4296s # 4296s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4296s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4296s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4296s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4296s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4296s # { 4296s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4296s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_skeleton_new: 4296s # * 4296s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_skeleton_new (void) 4296s # { 4296s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4296s # } 4296s # Error: 4296s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmp0lgc7d3p 4296s # /tmp/tmp0lgc7d3p/tmpsjif7ldj.xml: 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0lgc7d3p/tmpsjif7ldj.xml', '--output', '-', '--body'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifdef HAVE_CONFIG_H 4296s # # include "config.h" 4296s # #endif 4296s # 4296s # #include 4296s # #ifdef G_OS_UNIX 4296s # # include 4296s # #endif 4296s # 4296s # #ifdef G_ENABLE_DEBUG 4296s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4296s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4296s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4296s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4296s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4296s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4296s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4296s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4296s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4296s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4296s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4296s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4296s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4296s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4296s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4296s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4296s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4296s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4296s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4296s # #else /* !G_ENABLE_DEBUG */ 4296s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4296s # * Do not access GValues directly in your code. Instead, use the 4296s # * g_value_get_*() functions 4296s # */ 4296s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4296s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4296s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4296s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4296s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4296s # #endif /* !G_ENABLE_DEBUG */ 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusArgInfo parent_struct; 4296s # gboolean use_gvariant; 4296s # } _ExtendedGDBusArgInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusMethodInfo parent_struct; 4296s # const gchar *signal_name; 4296s # gboolean pass_fdlist; 4296s # } _ExtendedGDBusMethodInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusSignalInfo parent_struct; 4296s # const gchar *signal_name; 4296s # } _ExtendedGDBusSignalInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusPropertyInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # guint use_gvariant : 1; 4296s # guint emits_changed_signal : 1; 4296s # } _ExtendedGDBusPropertyInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusInterfaceInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # } _ExtendedGDBusInterfaceInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # guint prop_id; 4296s # GValue orig_value; /* the value before the change */ 4296s # } ChangedProperty; 4296s # 4296s # static void 4296s # _changed_property_free (ChangedProperty *data) 4296s # { 4296s # g_value_unset (&data->orig_value); 4296s # g_free (data); 4296s # } 4296s # 4296s # static gboolean 4296s # _g_strv_equal0 (gchar **a, gchar **b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # guint n; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # if (g_strv_length (a) != g_strv_length (b)) 4296s # goto out; 4296s # for (n = 0; a[n] != NULL; n++) 4296s # if (g_strcmp0 (a[n], b[n]) != 0) 4296s # goto out; 4296s # ret = TRUE; 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _g_variant_equal0 (GVariant *a, GVariant *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # ret = g_variant_equal (a, b); 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # G_GNUC_UNUSED static gboolean 4296s # _g_value_equal (const GValue *a, const GValue *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4296s # switch (G_VALUE_TYPE (a)) 4296s # { 4296s # case G_TYPE_BOOLEAN: 4296s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4296s # break; 4296s # case G_TYPE_UCHAR: 4296s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4296s # break; 4296s # case G_TYPE_INT: 4296s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4296s # break; 4296s # case G_TYPE_UINT: 4296s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4296s # break; 4296s # case G_TYPE_INT64: 4296s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4296s # break; 4296s # case G_TYPE_UINT64: 4296s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4296s # break; 4296s # case G_TYPE_DOUBLE: 4296s # { 4296s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4296s # gdouble da = g_value_get_double (a); 4296s # gdouble db = g_value_get_double (b); 4296s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4296s # } 4296s # break; 4296s # case G_TYPE_STRING: 4296s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4296s # break; 4296s # case G_TYPE_VARIANT: 4296s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4296s # break; 4296s # default: 4296s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4296s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4296s # else 4296s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4296s # break; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static void 4296s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 4296s # GClosure *closure, 4296s # GValue *return_value G_GNUC_UNUSED, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint G_GNUC_UNUSED, 4296s # void *marshal_data) 4296s # { 4296s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 4296s # (void *data1, 4296s # gboolean arg_an_b, 4296s # guchar arg_an_y, 4296s # gint16 arg_an_n, 4296s # guint16 arg_an_q, 4296s # gint arg_an_i, 4296s # guint arg_an_u, 4296s # gint64 arg_an_x, 4296s # guint64 arg_an_t, 4296s # gdouble arg_an_d, 4296s # const gchar *arg_an_s, 4296s # const gchar *arg_an_o, 4296s # const gchar *arg_an_g, 4296s # GVariant *arg_an_h, 4296s # const gchar *arg_an_ay, 4296s # const gchar *const *arg_an_as, 4296s # const gchar *const *arg_an_ao, 4296s # const gchar *const *arg_an_aay, 4296s # GVariant *arg_an_asv, 4296s # void *data2); 4296s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 4296s # GCClosure *cc = (GCClosure*) closure; 4296s # void *data1, *data2; 4296s # 4296s # g_return_if_fail (n_param_values == 19); 4296s # 4296s # if (G_CCLOSURE_SWAP_DATA (closure)) 4296s # { 4296s # data1 = closure->data; 4296s # data2 = g_value_peek_pointer (param_values + 0); 4296s # } 4296s # else 4296s # { 4296s # data1 = g_value_peek_pointer (param_values + 0); 4296s # data2 = closure->data; 4296s # } 4296s # 4296s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 4296s # (marshal_data ? marshal_data : cc->callback); 4296s # 4296s # callback (data1, 4296s # g_marshal_value_peek_boolean (param_values + 1), 4296s # g_marshal_value_peek_uchar (param_values + 2), 4296s # g_marshal_value_peek_int (param_values + 3), 4296s # g_marshal_value_peek_uint (param_values + 4), 4296s # g_marshal_value_peek_int (param_values + 5), 4296s # g_marshal_value_peek_uint (param_values + 6), 4296s # g_marshal_value_peek_int64 (param_values + 7), 4296s # g_marshal_value_peek_uint64 (param_values + 8), 4296s # g_marshal_value_peek_double (param_values + 9), 4296s # g_marshal_value_peek_string (param_values + 10), 4296s # g_marshal_value_peek_string (param_values + 11), 4296s # g_marshal_value_peek_string (param_values + 12), 4296s # g_marshal_value_peek_variant (param_values + 13), 4296s # g_marshal_value_peek_string (param_values + 14), 4296s # g_marshal_value_peek_boxed (param_values + 15), 4296s # g_marshal_value_peek_boxed (param_values + 16), 4296s # g_marshal_value_peek_boxed (param_values + 17), 4296s # g_marshal_value_peek_variant (param_values + 18), 4296s # data2); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ 4296s # * Code for interface org.project.SignalingIface 4296s # * ------------------------------------------------------------------------ 4296s # */ 4296s # 4296s # /** 4296s # * SECTION:OrgProjectSignalingIface 4296s # * @title: OrgProjectSignalingIface 4296s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 4296s # * 4296s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 4296s # */ 4296s # 4296s # enum 4296s # { 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 4296s # }; 4296s # 4296s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 4296s # 4296s # /* ---- Introspection data for org.project.SignalingIface ---- */ 4296s # 4296s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "SimpleSignal", 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "simple-signal" 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_b", 4296s # (gchar *) "b", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_y", 4296s # (gchar *) "y", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_n", 4296s # (gchar *) "n", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_q", 4296s # (gchar *) "q", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_i", 4296s # (gchar *) "i", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_u", 4296s # (gchar *) "u", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_x", 4296s # (gchar *) "x", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_t", 4296s # (gchar *) "t", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_d", 4296s # (gchar *) "d", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_s", 4296s # (gchar *) "s", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_o", 4296s # (gchar *) "o", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_g", 4296s # (gchar *) "g", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_h", 4296s # (gchar *) "h", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_ay", 4296s # (gchar *) "ay", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_as", 4296s # (gchar *) "as", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_ao", 4296s # (gchar *) "ao", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_aay", 4296s # (gchar *) "aay", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "an_asv", 4296s # (gchar *) "a{sv}", 4296s # NULL 4296s # }, 4296s # FALSE 4296s # }; 4296s # 4296s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 4296s # { 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "SignalWithManyArgs", 4296s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 4296s # NULL 4296s # }, 4296s # "signal-with-many-args" 4296s # }; 4296s # 4296s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 4296s # { 4296s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 4296s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "org.project.SignalingIface", 4296s # NULL, 4296s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "org-project-signaling-iface", 4296s # }; 4296s # 4296s # 4296s # /** 4296s # * org_project_signaling_iface_interface_info: 4296s # * 4296s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 4296s # * 4296s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4296s # */ 4296s # GDBusInterfaceInfo * 4296s # org_project_signaling_iface_interface_info (void) 4296s # { 4296s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_override_properties: 4296s # * @klass: The class structure for a #GObject derived class. 4296s # * @property_id_begin: The property id to assign to the first overridden property. 4296s # * 4296s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 4296s # * The properties are overridden in the order they are defined. 4296s # * 4296s # * Returns: The last property id. 4296s # */ 4296s # guint 4296s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4296s # { 4296s # return property_id_begin - 1; 4296s # } 4296s # 4296s # 4296s # inline static void 4296s # org_project_signaling_iface_signal_marshal_simple_signal ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # g_cclosure_marshal_VOID__VOID (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # inline static void 4296s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # 4296s # /** 4296s # * OrgProjectSignalingIface: 4296s # * 4296s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceIface: 4296s # * @parent_iface: The parent interface. 4296s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 4296s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 4296s # * 4296s # * Virtual table for the D-Bus interface org.project.SignalingIface. 4296s # */ 4296s # 4296s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 4296s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 4296s # 4296s # static void 4296s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 4296s # { 4296s # /* GObject signals for received D-Bus signals: */ 4296s # /** 4296s # * OrgProjectSignalingIface::simple-signal: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * 4296s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 4296s # * 4296s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4296s # */ 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 4296s # g_signal_new ("simple-signal", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 4296s # NULL, 4296s # NULL, 4296s # org_project_signaling_iface_signal_marshal_simple_signal, 4296s # G_TYPE_NONE, 4296s # 0); 4296s # 4296s # /** 4296s # * OrgProjectSignalingIface::signal-with-many-args: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * @arg_an_b: Argument. 4296s # * @arg_an_y: Argument. 4296s # * @arg_an_n: Argument. 4296s # * @arg_an_q: Argument. 4296s # * @arg_an_i: Argument. 4296s # * @arg_an_u: Argument. 4296s # * @arg_an_x: Argument. 4296s # * @arg_an_t: Argument. 4296s # * @arg_an_d: Argument. 4296s # * @arg_an_s: Argument. 4296s # * @arg_an_o: Argument. 4296s # * @arg_an_g: Argument. 4296s # * @arg_an_h: Argument. 4296s # * @arg_an_ay: Argument. 4296s # * @arg_an_as: Argument. 4296s # * @arg_an_ao: Argument. 4296s # * @arg_an_aay: Argument. 4296s # * @arg_an_asv: Argument. 4296s # * 4296s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 4296s # * 4296s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4296s # */ 4296s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 4296s # g_signal_new ("signal-with-many-args", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 4296s # NULL, 4296s # NULL, 4296s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 4296s # G_TYPE_NONE, 4296s # 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); 4296s # 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_emit_simple_signal: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * 4296s # * Emits the "SimpleSignal" D-Bus signal. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_emit_simple_signal ( 4296s # OrgProjectSignalingIface *object) 4296s # { 4296s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_emit_signal_with_many_args: 4296s # * @object: A #OrgProjectSignalingIface. 4296s # * @arg_an_b: Argument to pass with the signal. 4296s # * @arg_an_y: Argument to pass with the signal. 4296s # * @arg_an_n: Argument to pass with the signal. 4296s # * @arg_an_q: Argument to pass with the signal. 4296s # * @arg_an_i: Argument to pass with the signal. 4296s # * @arg_an_u: Argument to pass with the signal. 4296s # * @arg_an_x: Argument to pass with the signal. 4296s # * @arg_an_t: Argument to pass with the signal. 4296s # * @arg_an_d: Argument to pass with the signal. 4296s # * @arg_an_s: Argument to pass with the signal. 4296s # * @arg_an_o: Argument to pass with the signal. 4296s # * @arg_an_g: Argument to pass with the signal. 4296s # * @arg_an_h: Argument to pass with the signal. 4296s # * @arg_an_ay: Argument to pass with the signal. 4296s # * @arg_an_as: Argument to pass with the signal. 4296s # * @arg_an_ao: Argument to pass with the signal. 4296s # * @arg_an_aay: Argument to pass with the signal. 4296s # * @arg_an_asv: Argument to pass with the signal. 4296s # * 4296s # * Emits the "SignalWithManyArgs" D-Bus signal. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_emit_signal_with_many_args ( 4296s # OrgProjectSignalingIface *object, 4296s # gboolean arg_an_b, 4296s # guchar arg_an_y, 4296s # gint16 arg_an_n, 4296s # guint16 arg_an_q, 4296s # gint arg_an_i, 4296s # guint arg_an_u, 4296s # gint64 arg_an_x, 4296s # guint64 arg_an_t, 4296s # gdouble arg_an_d, 4296s # const gchar *arg_an_s, 4296s # const gchar *arg_an_o, 4296s # const gchar *arg_an_g, 4296s # GVariant *arg_an_h, 4296s # const gchar *arg_an_ay, 4296s # const gchar *const *arg_an_as, 4296s # const gchar *const *arg_an_ao, 4296s # const gchar *const *arg_an_aay, 4296s # GVariant *arg_an_asv) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceProxy: 4296s # * 4296s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceProxyClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectSignalingIfaceProxy. 4296s # */ 4296s # 4296s # struct _OrgProjectSignalingIfaceProxyPrivate 4296s # { 4296s # GData *qdata; 4296s # }; 4296s # 4296s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4296s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_signaling_iface_proxy_finalize (GObject *object) 4296s # { 4296s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 4296s # g_datalist_clear (&proxy->priv->qdata); 4296s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # const GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 4296s # const gchar *sender_name G_GNUC_UNUSED, 4296s # const gchar *signal_name, 4296s # GVariant *parameters) 4296s # { 4296s # _ExtendedGDBusSignalInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # gsize n; 4296s # guint signal_id; 4296s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 4296s # if (info == NULL) 4296s # return; 4296s # num_params = g_variant_n_children (parameters); 4296s # paramv = g_new0 (GValue, num_params + 1); 4296s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_set_object (¶mv[0], proxy); 4296s # g_variant_iter_init (&iter, parameters); 4296s # n = 1; 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_signal_emitv (paramv, signal_id, 0, NULL); 4296s # for (n = 0; n < num_params + 1; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 4296s # GVariant *changed_properties, 4296s # const gchar *const *invalidated_properties) 4296s # { 4296s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 4296s # guint n; 4296s # const gchar *key; 4296s # GVariantIter *iter; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # g_variant_get (changed_properties, "a{sv}", &iter); 4296s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 4296s # g_datalist_remove_data (&proxy->priv->qdata, key); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # g_variant_iter_free (iter); 4296s # for (n = 0; invalidated_properties[n] != NULL; n++) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 4296s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 4296s # #else 4296s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 4296s # #endif 4296s # 4296s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusProxyClass *proxy_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 4296s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 4296s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 4296s # 4296s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4296s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 4296s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_sync: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_signaling_iface_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_proxy_new_for_bus_sync: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_SIGNALING_IFACE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceSkeleton: 4296s # * 4296s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectSignalingIfaceSkeletonClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 4296s # */ 4296s # 4296s # struct _OrgProjectSignalingIfaceSkeletonPrivate 4296s # { 4296s # GValue *properties; 4296s # GList *changed_properties; 4296s # GSource *changed_properties_idle_source; 4296s # GMainContext *context; 4296s # GMutex lock; 4296s # }; 4296s # 4296s # static void 4296s # _org_project_signaling_iface_skeleton_handle_method_call ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name, 4296s # const gchar *method_name, 4296s # GVariant *parameters, 4296s # GDBusMethodInvocation *invocation, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # _ExtendedGDBusMethodInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # guint num_extra; 4296s # gsize n; 4296s # guint signal_id; 4296s # GValue return_value = G_VALUE_INIT; 4296s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4296s # g_assert (info != NULL); 4296s # num_params = g_variant_n_children (parameters); 4296s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4296s # n = 0; 4296s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_set_object (¶mv[n++], skeleton); 4296s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4296s # g_value_set_object (¶mv[n++], invocation); 4296s # if (info->pass_fdlist) 4296s # { 4296s # #ifdef G_OS_UNIX 4296s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4296s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4296s # #else 4296s # g_assert_not_reached (); 4296s # #endif 4296s # } 4296s # g_variant_iter_init (&iter, parameters); 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 4296s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4296s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4296s # if (!g_value_get_boolean (&return_value)) 4296s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4296s # g_value_unset (&return_value); 4296s # for (n = 0; n < num_params + num_extra; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static GVariant * 4296s # _org_project_signaling_iface_skeleton_handle_get_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *ret; 4296s # ret = NULL; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # g_value_init (&value, pspec->value_type); 4296s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4296s # g_value_unset (&value); 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _org_project_signaling_iface_skeleton_handle_set_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GVariant *variant, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # gboolean ret; 4296s # ret = FALSE; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # if (info->use_gvariant) 4296s # g_value_set_variant (&value, variant); 4296s # else 4296s # g_dbus_gvariant_to_gvalue (variant, &value); 4296s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # g_value_unset (&value); 4296s # ret = TRUE; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 4296s # { 4296s # _org_project_signaling_iface_skeleton_handle_method_call, 4296s # _org_project_signaling_iface_skeleton_handle_get_property, 4296s # _org_project_signaling_iface_skeleton_handle_set_property, 4296s # {NULL} 4296s # }; 4296s # 4296s # static GDBusInterfaceInfo * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return org_project_signaling_iface_interface_info (); 4296s # } 4296s # 4296s # static GDBusInterfaceVTable * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 4296s # } 4296s # 4296s # static GVariant * 4296s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 4296s # 4296s # GVariantBuilder builder; 4296s # guint n; 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4296s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #else 4296s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #endif 4296s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 4296s # goto out; 4296s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 4296s # { 4296s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 4296s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4296s # { 4296s # GVariant *value; 4296s # 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); 4296s # if (value != NULL) 4296s # { 4296s # g_variant_take_ref (value); 4296s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4296s # g_variant_unref (value); 4296s # } 4296s # } 4296s # } 4296s # out: 4296s # return g_variant_builder_end (&builder); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # _org_project_signaling_iface_on_signal_simple_signal ( 4296s # OrgProjectSignalingIface *object) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # 4296s # GList *connections, *l; 4296s # GVariant *signal_variant; 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4296s # for (l = connections; l != NULL; l = l->next) 4296s # { 4296s # GDBusConnection *connection = l->data; 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 4296s # signal_variant, NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # 4296s # static void 4296s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 4296s # OrgProjectSignalingIface *object, 4296s # gboolean arg_an_b, 4296s # guchar arg_an_y, 4296s # gint16 arg_an_n, 4296s # guint16 arg_an_q, 4296s # gint arg_an_i, 4296s # guint arg_an_u, 4296s # gint64 arg_an_x, 4296s # guint64 arg_an_t, 4296s # gdouble arg_an_d, 4296s # const gchar *arg_an_s, 4296s # const gchar *arg_an_o, 4296s # const gchar *arg_an_g, 4296s # GVariant *arg_an_h, 4296s # const gchar *arg_an_ay, 4296s # const gchar *const *arg_an_as, 4296s # const gchar *const *arg_an_ao, 4296s # const gchar *const *arg_an_aay, 4296s # GVariant *arg_an_asv) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # 4296s # GList *connections, *l; 4296s # GVariant *signal_variant; 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 4296s # arg_an_b, 4296s # arg_an_y, 4296s # arg_an_n, 4296s # arg_an_q, 4296s # arg_an_i, 4296s # arg_an_u, 4296s # arg_an_x, 4296s # arg_an_t, 4296s # arg_an_d, 4296s # arg_an_s, 4296s # arg_an_o, 4296s # arg_an_g, 4296s # arg_an_h, 4296s # arg_an_ay, 4296s # arg_an_as, 4296s # arg_an_ao, 4296s # arg_an_aay, 4296s # arg_an_asv)); 4296s # for (l = connections; l != NULL; l = l->next) 4296s # { 4296s # GDBusConnection *connection = l->data; 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 4296s # signal_variant, NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # 4296s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_signaling_iface_skeleton_finalize (GObject *object) 4296s # { 4296s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 4296s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4296s # if (skeleton->priv->changed_properties_idle_source != NULL) 4296s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4296s # g_main_context_unref (skeleton->priv->context); 4296s # g_mutex_clear (&skeleton->priv->lock); 4296s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 4296s # #else 4296s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 4296s # #endif 4296s # 4296s # g_mutex_init (&skeleton->priv->lock); 4296s # skeleton->priv->context = g_main_context_ref_thread_default (); 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusInterfaceSkeletonClass *skeleton_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 4296s # 4296s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4296s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 4296s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 4296s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 4296s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 4296s # { 4296s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 4296s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 4296s # } 4296s # 4296s # /** 4296s # * org_project_signaling_iface_skeleton_new: 4296s # * 4296s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 4296s # */ 4296s # OrgProjectSignalingIface * 4296s # org_project_signaling_iface_skeleton_new (void) 4296s # { 4296s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 4296s # } 4296s # Error: 4296s ok 25 __main__.TestCodegen.test_generate_valid_docbook 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmps583r8so 4296s # /tmp/tmps583r8so/tmptq8agv5o.xml: 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps583r8so/tmptq8agv5o.xml', '--generate-docbook', 'test'] 4296s # Return code: 0 4296s # Output: 4296s # 4296s # Error: 4296s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmpb9okfyjd 4296s # /tmp/tmpb9okfyjd/tmpgnb6qed6.xml: 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb9okfyjd/tmpgnb6qed6.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 4296s # Return code: 1 4296s # Output: 4296s # 4296s # Error: 4296s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 4296s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmp4q1xe8zt 4296s # /tmp/tmp4q1xe8zt/tmpg7cfb_c0.xml: 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp4q1xe8zt/tmpg7cfb_c0.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifndef __STDOUT__ 4296s # #define __STDOUT__ 4296s # 4296s # #include 4296s # 4296s # G_BEGIN_DECLS 4296s # 4296s # 4296s # G_END_DECLS 4296s # 4296s # #endif /* __STDOUT__ */ 4296s # Error: 4296s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmpxlf67a7w 4296s # /tmp/tmpxlf67a7w/tmpm6fy_wx4.xml: 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxlf67a7w/tmpm6fy_wx4.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 4296s # Return code: 1 4296s # Output: 4296s # 4296s # Error: 4296s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 4296s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmpmaipmqf3 4296s # /tmp/tmpmaipmqf3/tmpsnej8mvb.xml: 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmaipmqf3/tmpsnej8mvb.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifndef __STDOUT__ 4296s # #define __STDOUT__ 4296s # 4296s # #include 4296s # 4296s # G_BEGIN_DECLS 4296s # 4296s # 4296s # G_END_DECLS 4296s # 4296s # #endif /* __STDOUT__ */ 4296s # Error: 4296s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmp9_7ronz9 4296s # /tmp/tmp9_7ronz9/tmpxu6pn84p.xml: 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9_7ronz9/tmpxu6pn84p.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifndef __STDOUT__ 4296s # #define __STDOUT__ 4296s # 4296s # #include 4296s # 4296s # G_BEGIN_DECLS 4296s # 4296s # 4296s # G_END_DECLS 4296s # 4296s # #endif /* __STDOUT__ */ 4296s # Error: 4296s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmpb21m8kf0 4296s # /tmp/tmpb21m8kf0/tmpvn8bwaio.xml: 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpb21m8kf0/tmpvn8bwaio.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 4296s # Return code: 1 4296s # Output: 4296s # 4296s # Error: 4296s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 4296s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmp0w96bkr9 4296s # /tmp/tmp0w96bkr9/tmp5yf7hf4o.xml: 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0w96bkr9/tmp5yf7hf4o.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifndef __STDOUT__ 4296s # #define __STDOUT__ 4296s # 4296s # #include 4296s # 4296s # G_BEGIN_DECLS 4296s # 4296s # 4296s # G_END_DECLS 4296s # 4296s # #endif /* __STDOUT__ */ 4296s # Error: 4296s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmpw8vqz0jh 4296s # /tmp/tmpw8vqz0jh/tmpwky8kycl.xml: 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw8vqz0jh/tmpwky8kycl.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 4296s # Return code: 1 4296s # Output: 4296s # 4296s # Error: 4296s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 4296s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmp43r8zau1 4296s # /tmp/tmp43r8zau1/tmpkpxmcuwh.xml: 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp43r8zau1/tmpkpxmcuwh.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifndef __STDOUT__ 4296s # #define __STDOUT__ 4296s # 4296s # #include 4296s # 4296s # G_BEGIN_DECLS 4296s # 4296s # 4296s # G_END_DECLS 4296s # 4296s # #endif /* __STDOUT__ */ 4296s # Error: 4296s ok 35 __main__.TestCodegen.test_help 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmp9qo4d63_ 4296s # Running: ['/usr/bin/gdbus-codegen', '--help'] 4296s # Return code: 0 4296s # Output: 4296s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 4296s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 4296s # [--c-generate-autocleanup {none,objects,all}] 4296s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 4296s # [--generate-rst OUTFILES] [--pragma-once] 4296s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 4296s # [--glib-min-required VERSION] 4296s # [--glib-max-allowed VERSION] 4296s # [--symbol-decorator SYMBOL_DECORATOR] 4296s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 4296s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 4296s # [--generate-c-code OUTFILES | --header | --body | 4296s # --interface-info-header | --interface-info-body] 4296s # [--output FILE | --output-directory OUTDIR] 4296s # FILE [FILE ...] 4296s # 4296s # D-Bus code and documentation generator 4296s # 4296s # positional arguments: 4296s # FILE D-Bus introspection XML file 4296s # 4296s # options: 4296s # -h, --help show this help message and exit 4296s # --interface-prefix PREFIX 4296s # String to strip from D-Bus interface names for code 4296s # and docs 4296s # --c-namespace NAMESPACE 4296s # The namespace to use for generated C code 4296s # --c-generate-object-manager 4296s # Generate a GDBusObjectManagerClient subclass when 4296s # generating C code 4296s # --c-generate-autocleanup {none,objects,all} 4296s # Generate autocleanup support 4296s # --generate-docbook OUTFILES 4296s # Generate Docbook in OUTFILES-org.Project.IFace.xml 4296s # --generate-md OUTFILES 4296s # Generate Markdown in OUTFILES-org.Project.IFace.md 4296s # --generate-rst OUTFILES 4296s # Generate reStructuredText in OUTFILES- 4296s # org.Project.IFace.rst 4296s # --pragma-once Use "pragma once" as the inclusion guard 4296s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 4296s # Add annotation (may be used several times) 4296s # --glib-min-required VERSION 4296s # Minimum version of GLib to be supported by the 4296s # outputted code (default: 2.30) 4296s # --glib-max-allowed VERSION 4296s # Maximum version of GLib to be used by the outputted 4296s # code (default: current GLib version) 4296s # --symbol-decorator SYMBOL_DECORATOR 4296s # Macro used to decorate a symbol in the outputted 4296s # header, possibly to export symbols 4296s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 4296s # Additional header required for decorator specified by 4296s # --symbol-decorator 4296s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 4296s # Additional define required for decorator specified by 4296s # --symbol-decorator 4296s # --generate-c-code OUTFILES 4296s # Generate C code in OUTFILES.[ch] 4296s # --header Generate C headers 4296s # --body Generate C code 4296s # --interface-info-header 4296s # Generate GDBusInterfaceInfo C header 4296s # --interface-info-body 4296s # Generate GDBusInterfaceInfo C code 4296s # --output FILE Write output into the specified file 4296s # --output-directory OUTDIR 4296s # Location to output generated files 4296s # Error: 4296s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmpts87wlg7 4296s # /tmp/tmpts87wlg7/tmplxcn75b8.xml: 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpts87wlg7/tmplxcn75b8.xml', '--generate-rst', 'test'] 4296s # Return code: 0 4296s # Output: 4296s # 4296s # Error: 4296s # 4296s # /tmp/tmpts87wlg7/tmpv8w67sqd.xml: 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpts87wlg7/tmpv8w67sqd.xml', '--generate-md', 'test'] 4296s # Return code: 0 4296s # Output: 4296s # 4296s # Error: 4296s # 4296s # /tmp/tmpts87wlg7/tmpwqv9xrp_.xml: 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpts87wlg7/tmpwqv9xrp_.xml', '--generate-docbook', 'test'] 4296s # Return code: 0 4296s # Output: 4296s # 4296s # Error: 4296s ok 37 __main__.TestCodegen.test_no_args 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmpov5kf3tz 4296s # Running: ['/usr/bin/gdbus-codegen'] 4296s # Return code: 2 4296s # Output: 4296s # 4296s # Error: 4296s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 4296s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 4296s # [--c-generate-autocleanup {none,objects,all}] 4296s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 4296s # [--generate-rst OUTFILES] [--pragma-once] 4296s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 4296s # [--glib-min-required VERSION] 4296s # [--glib-max-allowed VERSION] 4296s # [--symbol-decorator SYMBOL_DECORATOR] 4296s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 4296s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 4296s # [--generate-c-code OUTFILES | --header | --body | 4296s # --interface-info-header | --interface-info-body] 4296s # [--output FILE | --output-directory OUTDIR] 4296s # FILE [FILE ...] 4296s # gdbus-codegen: error: the following arguments are required: FILE 4296s ok 38 __main__.TestCodegen.test_reproducible 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmpmsofnzhs 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmsofnzhs/tmp7jj8a4yr1.xml', '/tmp/tmpmsofnzhs/tmpggxit02_2.xml', '--output', '-', '--header'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifndef __STDOUT__ 4296s # #define __STDOUT__ 4296s # 4296s # #include 4296s # 4296s # G_BEGIN_DECLS 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # /* Declarations for com.acme.Coyote */ 4296s # 4296s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 4296s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 4296s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 4296s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 4296s # 4296s # struct _ComAcmeCoyote; 4296s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 4296s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 4296s # 4296s # struct _ComAcmeCoyoteIface 4296s # { 4296s # GTypeInterface parent_iface; 4296s # 4296s # 4296s # 4296s # gboolean (*handle_attack) ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # gboolean (*handle_run) ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # gboolean (*handle_sleep) ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # const gchar * (*get_mood) (ComAcmeCoyote *object); 4296s # 4296s # void (*surprised) ( 4296s # ComAcmeCoyote *object); 4296s # 4296s # }; 4296s # 4296s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 4296s # 4296s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 4296s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 4296s # 4296s # 4296s # /* D-Bus method call completion functions: */ 4296s # void com_acme_coyote_complete_run ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # void com_acme_coyote_complete_sleep ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # void com_acme_coyote_complete_attack ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # 4296s # 4296s # /* D-Bus signal emissions functions: */ 4296s # void com_acme_coyote_emit_surprised ( 4296s # ComAcmeCoyote *object); 4296s # 4296s # 4296s # 4296s # /* D-Bus method calls: */ 4296s # void com_acme_coyote_call_run ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean com_acme_coyote_call_run_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean com_acme_coyote_call_run_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void com_acme_coyote_call_sleep ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean com_acme_coyote_call_sleep_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean com_acme_coyote_call_sleep_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void com_acme_coyote_call_attack ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean com_acme_coyote_call_attack_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean com_acme_coyote_call_attack_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # 4296s # /* D-Bus property accessors: */ 4296s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 4296s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 4296s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 4296s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 4296s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 4296s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 4296s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 4296s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 4296s # 4296s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 4296s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 4296s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 4296s # 4296s # struct _ComAcmeCoyoteProxy 4296s # { 4296s # /*< private >*/ 4296s # GDBusProxy parent_instance; 4296s # ComAcmeCoyoteProxyPrivate *priv; 4296s # }; 4296s # 4296s # struct _ComAcmeCoyoteProxyClass 4296s # { 4296s # GDBusProxyClass parent_class; 4296s # }; 4296s # 4296s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 4296s # #endif 4296s # 4296s # void com_acme_coyote_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void com_acme_coyote_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 4296s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 4296s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 4296s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 4296s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 4296s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 4296s # 4296s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 4296s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 4296s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 4296s # 4296s # struct _ComAcmeCoyoteSkeleton 4296s # { 4296s # /*< private >*/ 4296s # GDBusInterfaceSkeleton parent_instance; 4296s # ComAcmeCoyoteSkeletonPrivate *priv; 4296s # }; 4296s # 4296s # struct _ComAcmeCoyoteSkeletonClass 4296s # { 4296s # GDBusInterfaceSkeletonClass parent_class; 4296s # }; 4296s # 4296s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 4296s # #endif 4296s # 4296s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # /* Declarations for org.project.Bar.Frobnicator */ 4296s # 4296s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 4296s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 4296s # 4296s # struct _OrgProjectBarFrobnicator; 4296s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 4296s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 4296s # 4296s # struct _OrgProjectBarFrobnicatorIface 4296s # { 4296s # GTypeInterface parent_iface; 4296s # 4296s # gboolean (*handle_random_method) ( 4296s # OrgProjectBarFrobnicator *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # }; 4296s # 4296s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 4296s # 4296s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 4296s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 4296s # 4296s # 4296s # /* D-Bus method call completion functions: */ 4296s # void org_project_bar_frobnicator_complete_random_method ( 4296s # OrgProjectBarFrobnicator *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # 4296s # 4296s # /* D-Bus method calls: */ 4296s # void org_project_bar_frobnicator_call_random_method ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 4296s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 4296s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 4296s # 4296s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 4296s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 4296s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 4296s # 4296s # struct _OrgProjectBarFrobnicatorProxy 4296s # { 4296s # /*< private >*/ 4296s # GDBusProxy parent_instance; 4296s # OrgProjectBarFrobnicatorProxyPrivate *priv; 4296s # }; 4296s # 4296s # struct _OrgProjectBarFrobnicatorProxyClass 4296s # { 4296s # GDBusProxyClass parent_class; 4296s # }; 4296s # 4296s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 4296s # #endif 4296s # 4296s # void org_project_bar_frobnicator_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void org_project_bar_frobnicator_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 4296s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 4296s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 4296s # 4296s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 4296s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 4296s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 4296s # 4296s # struct _OrgProjectBarFrobnicatorSkeleton 4296s # { 4296s # /*< private >*/ 4296s # GDBusInterfaceSkeleton parent_instance; 4296s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 4296s # }; 4296s # 4296s # struct _OrgProjectBarFrobnicatorSkeletonClass 4296s # { 4296s # GDBusInterfaceSkeletonClass parent_class; 4296s # }; 4296s # 4296s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 4296s # #endif 4296s # 4296s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 4296s # 4296s # 4296s # G_END_DECLS 4296s # 4296s # #endif /* __STDOUT__ */ 4296s # Error: 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmsofnzhs/tmpggxit02_2.xml', '/tmp/tmpmsofnzhs/tmp7jj8a4yr1.xml', '--output', '-', '--header'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifndef __STDOUT__ 4296s # #define __STDOUT__ 4296s # 4296s # #include 4296s # 4296s # G_BEGIN_DECLS 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # /* Declarations for com.acme.Coyote */ 4296s # 4296s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 4296s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 4296s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 4296s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 4296s # 4296s # struct _ComAcmeCoyote; 4296s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 4296s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 4296s # 4296s # struct _ComAcmeCoyoteIface 4296s # { 4296s # GTypeInterface parent_iface; 4296s # 4296s # 4296s # 4296s # gboolean (*handle_attack) ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # gboolean (*handle_run) ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # gboolean (*handle_sleep) ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # const gchar * (*get_mood) (ComAcmeCoyote *object); 4296s # 4296s # void (*surprised) ( 4296s # ComAcmeCoyote *object); 4296s # 4296s # }; 4296s # 4296s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 4296s # 4296s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 4296s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 4296s # 4296s # 4296s # /* D-Bus method call completion functions: */ 4296s # void com_acme_coyote_complete_run ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # void com_acme_coyote_complete_sleep ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # void com_acme_coyote_complete_attack ( 4296s # ComAcmeCoyote *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # 4296s # 4296s # /* D-Bus signal emissions functions: */ 4296s # void com_acme_coyote_emit_surprised ( 4296s # ComAcmeCoyote *object); 4296s # 4296s # 4296s # 4296s # /* D-Bus method calls: */ 4296s # void com_acme_coyote_call_run ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean com_acme_coyote_call_run_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean com_acme_coyote_call_run_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void com_acme_coyote_call_sleep ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean com_acme_coyote_call_sleep_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean com_acme_coyote_call_sleep_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void com_acme_coyote_call_attack ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean com_acme_coyote_call_attack_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean com_acme_coyote_call_attack_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # 4296s # /* D-Bus property accessors: */ 4296s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 4296s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 4296s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 4296s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 4296s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 4296s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 4296s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 4296s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 4296s # 4296s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 4296s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 4296s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 4296s # 4296s # struct _ComAcmeCoyoteProxy 4296s # { 4296s # /*< private >*/ 4296s # GDBusProxy parent_instance; 4296s # ComAcmeCoyoteProxyPrivate *priv; 4296s # }; 4296s # 4296s # struct _ComAcmeCoyoteProxyClass 4296s # { 4296s # GDBusProxyClass parent_class; 4296s # }; 4296s # 4296s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 4296s # #endif 4296s # 4296s # void com_acme_coyote_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void com_acme_coyote_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 4296s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 4296s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 4296s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 4296s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 4296s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 4296s # 4296s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 4296s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 4296s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 4296s # 4296s # struct _ComAcmeCoyoteSkeleton 4296s # { 4296s # /*< private >*/ 4296s # GDBusInterfaceSkeleton parent_instance; 4296s # ComAcmeCoyoteSkeletonPrivate *priv; 4296s # }; 4296s # 4296s # struct _ComAcmeCoyoteSkeletonClass 4296s # { 4296s # GDBusInterfaceSkeletonClass parent_class; 4296s # }; 4296s # 4296s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 4296s # #endif 4296s # 4296s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # /* Declarations for org.project.Bar.Frobnicator */ 4296s # 4296s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 4296s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 4296s # 4296s # struct _OrgProjectBarFrobnicator; 4296s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 4296s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 4296s # 4296s # struct _OrgProjectBarFrobnicatorIface 4296s # { 4296s # GTypeInterface parent_iface; 4296s # 4296s # gboolean (*handle_random_method) ( 4296s # OrgProjectBarFrobnicator *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # }; 4296s # 4296s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 4296s # 4296s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 4296s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 4296s # 4296s # 4296s # /* D-Bus method call completion functions: */ 4296s # void org_project_bar_frobnicator_complete_random_method ( 4296s # OrgProjectBarFrobnicator *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # 4296s # 4296s # /* D-Bus method calls: */ 4296s # void org_project_bar_frobnicator_call_random_method ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 4296s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 4296s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 4296s # 4296s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 4296s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 4296s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 4296s # 4296s # struct _OrgProjectBarFrobnicatorProxy 4296s # { 4296s # /*< private >*/ 4296s # GDBusProxy parent_instance; 4296s # OrgProjectBarFrobnicatorProxyPrivate *priv; 4296s # }; 4296s # 4296s # struct _OrgProjectBarFrobnicatorProxyClass 4296s # { 4296s # GDBusProxyClass parent_class; 4296s # }; 4296s # 4296s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 4296s # #endif 4296s # 4296s # void org_project_bar_frobnicator_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void org_project_bar_frobnicator_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 4296s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 4296s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 4296s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 4296s # 4296s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 4296s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 4296s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 4296s # 4296s # struct _OrgProjectBarFrobnicatorSkeleton 4296s # { 4296s # /*< private >*/ 4296s # GDBusInterfaceSkeleton parent_instance; 4296s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 4296s # }; 4296s # 4296s # struct _OrgProjectBarFrobnicatorSkeletonClass 4296s # { 4296s # GDBusInterfaceSkeletonClass parent_class; 4296s # }; 4296s # 4296s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 4296s # #endif 4296s # 4296s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 4296s # 4296s # 4296s # G_END_DECLS 4296s # 4296s # #endif /* __STDOUT__ */ 4296s # Error: 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmsofnzhs/tmp7jj8a4yr1.xml', '/tmp/tmpmsofnzhs/tmpggxit02_2.xml', '--output', '-', '--body'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifdef HAVE_CONFIG_H 4296s # # include "config.h" 4296s # #endif 4296s # 4296s # #include 4296s # #ifdef G_OS_UNIX 4296s # # include 4296s # #endif 4296s # 4296s # #ifdef G_ENABLE_DEBUG 4296s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4296s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4296s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4296s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4296s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4296s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4296s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4296s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4296s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4296s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4296s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4296s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4296s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4296s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4296s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4296s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4296s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4296s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4296s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4296s # #else /* !G_ENABLE_DEBUG */ 4296s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4296s # * Do not access GValues directly in your code. Instead, use the 4296s # * g_value_get_*() functions 4296s # */ 4296s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4296s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4296s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4296s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4296s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4296s # #endif /* !G_ENABLE_DEBUG */ 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusArgInfo parent_struct; 4296s # gboolean use_gvariant; 4296s # } _ExtendedGDBusArgInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusMethodInfo parent_struct; 4296s # const gchar *signal_name; 4296s # gboolean pass_fdlist; 4296s # } _ExtendedGDBusMethodInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusSignalInfo parent_struct; 4296s # const gchar *signal_name; 4296s # } _ExtendedGDBusSignalInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusPropertyInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # guint use_gvariant : 1; 4296s # guint emits_changed_signal : 1; 4296s # } _ExtendedGDBusPropertyInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusInterfaceInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # } _ExtendedGDBusInterfaceInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # guint prop_id; 4296s # GValue orig_value; /* the value before the change */ 4296s # } ChangedProperty; 4296s # 4296s # static void 4296s # _changed_property_free (ChangedProperty *data) 4296s # { 4296s # g_value_unset (&data->orig_value); 4296s # g_free (data); 4296s # } 4296s # 4296s # static gboolean 4296s # _g_strv_equal0 (gchar **a, gchar **b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # guint n; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # if (g_strv_length (a) != g_strv_length (b)) 4296s # goto out; 4296s # for (n = 0; a[n] != NULL; n++) 4296s # if (g_strcmp0 (a[n], b[n]) != 0) 4296s # goto out; 4296s # ret = TRUE; 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _g_variant_equal0 (GVariant *a, GVariant *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # ret = g_variant_equal (a, b); 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # G_GNUC_UNUSED static gboolean 4296s # _g_value_equal (const GValue *a, const GValue *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4296s # switch (G_VALUE_TYPE (a)) 4296s # { 4296s # case G_TYPE_BOOLEAN: 4296s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4296s # break; 4296s # case G_TYPE_UCHAR: 4296s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4296s # break; 4296s # case G_TYPE_INT: 4296s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4296s # break; 4296s # case G_TYPE_UINT: 4296s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4296s # break; 4296s # case G_TYPE_INT64: 4296s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4296s # break; 4296s # case G_TYPE_UINT64: 4296s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4296s # break; 4296s # case G_TYPE_DOUBLE: 4296s # { 4296s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4296s # gdouble da = g_value_get_double (a); 4296s # gdouble db = g_value_get_double (b); 4296s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4296s # } 4296s # break; 4296s # case G_TYPE_STRING: 4296s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4296s # break; 4296s # case G_TYPE_VARIANT: 4296s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4296s # break; 4296s # default: 4296s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4296s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4296s # else 4296s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4296s # break; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static void 4296s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint G_GNUC_UNUSED, 4296s # void *marshal_data) 4296s # { 4296s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4296s # (void *data1, 4296s # GDBusMethodInvocation *arg_method_invocation, 4296s # void *data2); 4296s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4296s # GCClosure *cc = (GCClosure*) closure; 4296s # void *data1, *data2; 4296s # gboolean v_return; 4296s # 4296s # g_return_if_fail (return_value != NULL); 4296s # g_return_if_fail (n_param_values == 2); 4296s # 4296s # if (G_CCLOSURE_SWAP_DATA (closure)) 4296s # { 4296s # data1 = closure->data; 4296s # data2 = g_value_peek_pointer (param_values + 0); 4296s # } 4296s # else 4296s # { 4296s # data1 = g_value_peek_pointer (param_values + 0); 4296s # data2 = closure->data; 4296s # } 4296s # 4296s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4296s # (marshal_data ? marshal_data : cc->callback); 4296s # 4296s # v_return = 4296s # callback (data1, 4296s # g_marshal_value_peek_object (param_values + 1), 4296s # data2); 4296s # 4296s # g_value_set_boolean (return_value, v_return); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ 4296s # * Code for interface com.acme.Coyote 4296s # * ------------------------------------------------------------------------ 4296s # */ 4296s # 4296s # /** 4296s # * SECTION:ComAcmeCoyote 4296s # * @title: ComAcmeCoyote 4296s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 4296s # * 4296s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 4296s # */ 4296s # 4296s # enum 4296s # { 4296s # _COM_ACME_COYOTE_SURPRISED, 4296s # }; 4296s # 4296s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 4296s # 4296s # /* ---- Introspection data for com.acme.Coyote ---- */ 4296s # 4296s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "Run", 4296s # NULL, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "handle-run", 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "Sleep", 4296s # NULL, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "handle-sleep", 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "Attack", 4296s # NULL, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "handle-attack", 4296s # FALSE 4296s # }; 4296s # 4296s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 4296s # { 4296s # &_com_acme_coyote_method_info_run.parent_struct, 4296s # &_com_acme_coyote_method_info_sleep.parent_struct, 4296s # &_com_acme_coyote_method_info_attack.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "Surprised", 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "surprised" 4296s # }; 4296s # 4296s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 4296s # { 4296s # &_com_acme_coyote_signal_info_surprised.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "Mood", 4296s # (gchar *) "s", 4296s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 4296s # NULL 4296s # }, 4296s # "mood", 4296s # FALSE, 4296s # TRUE 4296s # }; 4296s # 4296s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 4296s # { 4296s # &_com_acme_coyote_property_info_mood.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "com.acme.Coyote", 4296s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 4296s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 4296s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 4296s # NULL 4296s # }, 4296s # "com-acme-coyote", 4296s # }; 4296s # 4296s # 4296s # /** 4296s # * com_acme_coyote_interface_info: 4296s # * 4296s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 4296s # * 4296s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4296s # */ 4296s # GDBusInterfaceInfo * 4296s # com_acme_coyote_interface_info (void) 4296s # { 4296s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_override_properties: 4296s # * @klass: The class structure for a #GObject derived class. 4296s # * @property_id_begin: The property id to assign to the first overridden property. 4296s # * 4296s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 4296s # * The properties are overridden in the order they are defined. 4296s # * 4296s # * Returns: The last property id. 4296s # */ 4296s # guint 4296s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 4296s # { 4296s # g_object_class_override_property (klass, property_id_begin++, "mood"); 4296s # return property_id_begin - 1; 4296s # } 4296s # 4296s # 4296s # inline static void 4296s # com_acme_coyote_signal_marshal_surprised ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # g_cclosure_marshal_VOID__VOID (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # inline static void 4296s # com_acme_coyote_method_marshal_run ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # inline static void 4296s # com_acme_coyote_method_marshal_sleep ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # inline static void 4296s # com_acme_coyote_method_marshal_attack ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # 4296s # /** 4296s # * ComAcmeCoyote: 4296s # * 4296s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 4296s # */ 4296s # 4296s # /** 4296s # * ComAcmeCoyoteIface: 4296s # * @parent_iface: The parent interface. 4296s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 4296s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 4296s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 4296s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 4296s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 4296s # * 4296s # * Virtual table for the D-Bus interface com.acme.Coyote. 4296s # */ 4296s # 4296s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 4296s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 4296s # 4296s # static void 4296s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 4296s # { 4296s # /* GObject signals for incoming D-Bus method calls: */ 4296s # /** 4296s # * ComAcmeCoyote::handle-run: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: A #GDBusMethodInvocation. 4296s # * 4296s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 4296s # * 4296s # * 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. 4296s # * 4296s # * 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. 4296s # */ 4296s # g_signal_new ("handle-run", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 4296s # g_signal_accumulator_true_handled, 4296s # NULL, 4296s # com_acme_coyote_method_marshal_run, 4296s # G_TYPE_BOOLEAN, 4296s # 1, 4296s # G_TYPE_DBUS_METHOD_INVOCATION); 4296s # 4296s # /** 4296s # * ComAcmeCoyote::handle-sleep: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: A #GDBusMethodInvocation. 4296s # * 4296s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 4296s # * 4296s # * 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. 4296s # * 4296s # * 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. 4296s # */ 4296s # g_signal_new ("handle-sleep", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 4296s # g_signal_accumulator_true_handled, 4296s # NULL, 4296s # com_acme_coyote_method_marshal_sleep, 4296s # G_TYPE_BOOLEAN, 4296s # 1, 4296s # G_TYPE_DBUS_METHOD_INVOCATION); 4296s # 4296s # /** 4296s # * ComAcmeCoyote::handle-attack: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: A #GDBusMethodInvocation. 4296s # * 4296s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 4296s # * 4296s # * 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. 4296s # * 4296s # * 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. 4296s # */ 4296s # g_signal_new ("handle-attack", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 4296s # g_signal_accumulator_true_handled, 4296s # NULL, 4296s # com_acme_coyote_method_marshal_attack, 4296s # G_TYPE_BOOLEAN, 4296s # 1, 4296s # G_TYPE_DBUS_METHOD_INVOCATION); 4296s # 4296s # /* GObject signals for received D-Bus signals: */ 4296s # /** 4296s # * ComAcmeCoyote::surprised: 4296s # * @object: A #ComAcmeCoyote. 4296s # * 4296s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 4296s # * 4296s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4296s # */ 4296s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 4296s # g_signal_new ("surprised", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 4296s # NULL, 4296s # NULL, 4296s # com_acme_coyote_signal_marshal_surprised, 4296s # G_TYPE_NONE, 4296s # 0); 4296s # 4296s # /* GObject properties for D-Bus properties: */ 4296s # /** 4296s # * ComAcmeCoyote:mood: 4296s # * 4296s # * Represents the D-Bus property "Mood". 4296s # * 4296s # * 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. 4296s # */ 4296s # g_object_interface_install_property (iface, 4296s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_get_mood: (skip) 4296s # * @object: A #ComAcmeCoyote. 4296s # * 4296s # * Gets the value of the "Mood" D-Bus property. 4296s # * 4296s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 4296s # * 4296s # * 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. 4296s # * 4296s # * 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. 4296s # */ 4296s # const gchar * 4296s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 4296s # { 4296s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 4296s # 4296s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_dup_mood: (skip) 4296s # * @object: A #ComAcmeCoyote. 4296s # * 4296s # * Gets a copy of the "Mood" D-Bus property. 4296s # * 4296s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 4296s # * 4296s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 4296s # */ 4296s # gchar * 4296s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 4296s # { 4296s # gchar *value; 4296s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 4296s # return value; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_set_mood: (skip) 4296s # * @object: A #ComAcmeCoyote. 4296s # * @value: The value to set. 4296s # * 4296s # * Sets the "Mood" D-Bus property to @value. 4296s # * 4296s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 4296s # */ 4296s # void 4296s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 4296s # { 4296s # g_object_set (G_OBJECT (object), "mood", value, NULL); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_emit_surprised: 4296s # * @object: A #ComAcmeCoyote. 4296s # * 4296s # * Emits the "Surprised" D-Bus signal. 4296s # */ 4296s # void 4296s # com_acme_coyote_emit_surprised ( 4296s # ComAcmeCoyote *object) 4296s # { 4296s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_run: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously invokes the Run() D-Bus method on @proxy. 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 4296s # * 4296s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 4296s # */ 4296s # void 4296s # com_acme_coyote_call_run ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4296s # "Run", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # callback, 4296s # user_data); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_run_finish: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Finishes an operation started with com_acme_coyote_call_run(). 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_run_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_run_sync: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4296s # * 4296s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_run_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4296s # "Run", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_sleep: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 4296s # * 4296s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 4296s # */ 4296s # void 4296s # com_acme_coyote_call_sleep ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4296s # "Sleep", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # callback, 4296s # user_data); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_sleep_finish: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Finishes an operation started with com_acme_coyote_call_sleep(). 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_sleep_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_sleep_sync: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4296s # * 4296s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_sleep_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4296s # "Sleep", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_attack: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 4296s # * 4296s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 4296s # */ 4296s # void 4296s # com_acme_coyote_call_attack ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4296s # "Attack", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # callback, 4296s # user_data); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_attack_finish: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Finishes an operation started with com_acme_coyote_call_attack(). 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_attack_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_attack_sync: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4296s # * 4296s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_attack_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4296s # "Attack", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_complete_run: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4296s # * 4296s # * Helper function used in service implementations to finish handling invocations of the Run() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4296s # * 4296s # * This method will free @invocation, you cannot use it afterwards. 4296s # */ 4296s # void 4296s # com_acme_coyote_complete_run ( 4296s # ComAcmeCoyote *object G_GNUC_UNUSED, 4296s # GDBusMethodInvocation *invocation) 4296s # { 4296s # g_dbus_method_invocation_return_value (invocation, 4296s # g_variant_new ("()")); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_complete_sleep: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4296s # * 4296s # * Helper function used in service implementations to finish handling invocations of the Sleep() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4296s # * 4296s # * This method will free @invocation, you cannot use it afterwards. 4296s # */ 4296s # void 4296s # com_acme_coyote_complete_sleep ( 4296s # ComAcmeCoyote *object G_GNUC_UNUSED, 4296s # GDBusMethodInvocation *invocation) 4296s # { 4296s # g_dbus_method_invocation_return_value (invocation, 4296s # g_variant_new ("()")); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_complete_attack: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4296s # * 4296s # * Helper function used in service implementations to finish handling invocations of the Attack() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4296s # * 4296s # * This method will free @invocation, you cannot use it afterwards. 4296s # */ 4296s # void 4296s # com_acme_coyote_complete_attack ( 4296s # ComAcmeCoyote *object G_GNUC_UNUSED, 4296s # GDBusMethodInvocation *invocation) 4296s # { 4296s # g_dbus_method_invocation_return_value (invocation, 4296s # g_variant_new ("()")); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * ComAcmeCoyoteProxy: 4296s # * 4296s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * ComAcmeCoyoteProxyClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #ComAcmeCoyoteProxy. 4296s # */ 4296s # 4296s # struct _ComAcmeCoyoteProxyPrivate 4296s # { 4296s # GData *qdata; 4296s # }; 4296s # 4296s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 4296s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 4296s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 4296s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # com_acme_coyote_proxy_finalize (GObject *object) 4296s # { 4296s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 4296s # g_datalist_clear (&proxy->priv->qdata); 4296s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_get_property (GObject *object, 4296s # guint prop_id, 4296s # GValue *value, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *variant; 4296s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4296s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 4296s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 4296s # if (info->use_gvariant) 4296s # { 4296s # g_value_set_variant (value, variant); 4296s # } 4296s # else 4296s # { 4296s # if (variant != NULL) 4296s # g_dbus_gvariant_to_gvalue (variant, value); 4296s # } 4296s # if (variant != NULL) 4296s # g_variant_unref (variant); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 4296s # GAsyncResult *res, 4296s # gpointer user_data) 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info = user_data; 4296s # GError *error; 4296s # GVariant *_ret; 4296s # error = NULL; 4296s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 4296s # if (!_ret) 4296s # { 4296s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 4296s # info->parent_struct.name, 4296s # error->message, g_quark_to_string (error->domain), error->code); 4296s # g_error_free (error); 4296s # } 4296s # else 4296s # { 4296s # g_variant_unref (_ret); 4296s # } 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_set_property (GObject *object, 4296s # guint prop_id, 4296s # const GValue *value, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *variant; 4296s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4296s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 4296s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 4296s # g_dbus_proxy_call (G_DBUS_PROXY (object), 4296s # "org.freedesktop.DBus.Properties.Set", 4296s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 4296s # g_variant_unref (variant); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 4296s # const gchar *sender_name G_GNUC_UNUSED, 4296s # const gchar *signal_name, 4296s # GVariant *parameters) 4296s # { 4296s # _ExtendedGDBusSignalInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # gsize n; 4296s # guint signal_id; 4296s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 4296s # if (info == NULL) 4296s # return; 4296s # num_params = g_variant_n_children (parameters); 4296s # paramv = g_new0 (GValue, num_params + 1); 4296s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 4296s # g_value_set_object (¶mv[0], proxy); 4296s # g_variant_iter_init (&iter, parameters); 4296s # n = 1; 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 4296s # g_signal_emitv (paramv, signal_id, 0, NULL); 4296s # for (n = 0; n < num_params + 1; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 4296s # GVariant *changed_properties, 4296s # const gchar *const *invalidated_properties) 4296s # { 4296s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 4296s # guint n; 4296s # const gchar *key; 4296s # GVariantIter *iter; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # g_variant_get (changed_properties, "a{sv}", &iter); 4296s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 4296s # g_datalist_remove_data (&proxy->priv->qdata, key); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # g_variant_iter_free (iter); 4296s # for (n = 0; invalidated_properties[n] != NULL; n++) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 4296s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # } 4296s # 4296s # static const gchar * 4296s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 4296s # { 4296s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 4296s # GVariant *variant; 4296s # const gchar *value = NULL; 4296s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 4296s # if (variant != NULL) 4296s # { 4296s # value = g_variant_get_string (variant, NULL); 4296s # g_variant_unref (variant); 4296s # } 4296s # return value; 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 4296s # #else 4296s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 4296s # #endif 4296s # 4296s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusProxyClass *proxy_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 4296s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 4296s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 4296s # 4296s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4296s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 4296s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 4296s # 4296s # com_acme_coyote_override_properties (gobject_class, 1); 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 4296s # { 4296s # iface->get_mood = com_acme_coyote_proxy_get_mood; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 4296s # * 4296s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # com_acme_coyote_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with com_acme_coyote_proxy_new(). 4296s # * 4296s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # ComAcmeCoyote * 4296s # com_acme_coyote_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return COM_ACME_COYOTE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new_sync: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # ComAcmeCoyote * 4296s # com_acme_coyote_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return COM_ACME_COYOTE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new_for_bus: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 4296s # * 4296s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # com_acme_coyote_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new_for_bus_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 4296s # * 4296s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # ComAcmeCoyote * 4296s # com_acme_coyote_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return COM_ACME_COYOTE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new_for_bus_sync: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # ComAcmeCoyote * 4296s # com_acme_coyote_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return COM_ACME_COYOTE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * ComAcmeCoyoteSkeleton: 4296s # * 4296s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * ComAcmeCoyoteSkeletonClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #ComAcmeCoyoteSkeleton. 4296s # */ 4296s # 4296s # struct _ComAcmeCoyoteSkeletonPrivate 4296s # { 4296s # GValue *properties; 4296s # GList *changed_properties; 4296s # GSource *changed_properties_idle_source; 4296s # GMainContext *context; 4296s # GMutex lock; 4296s # }; 4296s # 4296s # static void 4296s # _com_acme_coyote_skeleton_handle_method_call ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name, 4296s # const gchar *method_name, 4296s # GVariant *parameters, 4296s # GDBusMethodInvocation *invocation, 4296s # gpointer user_data) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 4296s # _ExtendedGDBusMethodInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # guint num_extra; 4296s # gsize n; 4296s # guint signal_id; 4296s # GValue return_value = G_VALUE_INIT; 4296s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4296s # g_assert (info != NULL); 4296s # num_params = g_variant_n_children (parameters); 4296s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4296s # n = 0; 4296s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 4296s # g_value_set_object (¶mv[n++], skeleton); 4296s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4296s # g_value_set_object (¶mv[n++], invocation); 4296s # if (info->pass_fdlist) 4296s # { 4296s # #ifdef G_OS_UNIX 4296s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4296s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4296s # #else 4296s # g_assert_not_reached (); 4296s # #endif 4296s # } 4296s # g_variant_iter_init (&iter, parameters); 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 4296s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4296s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4296s # if (!g_value_get_boolean (&return_value)) 4296s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4296s # g_value_unset (&return_value); 4296s # for (n = 0; n < num_params + num_extra; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static GVariant * 4296s # _com_acme_coyote_skeleton_handle_get_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *ret; 4296s # ret = NULL; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # g_value_init (&value, pspec->value_type); 4296s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4296s # g_value_unset (&value); 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _com_acme_coyote_skeleton_handle_set_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GVariant *variant, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # gboolean ret; 4296s # ret = FALSE; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # if (info->use_gvariant) 4296s # g_value_set_variant (&value, variant); 4296s # else 4296s # g_dbus_gvariant_to_gvalue (variant, &value); 4296s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # g_value_unset (&value); 4296s # ret = TRUE; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 4296s # { 4296s # _com_acme_coyote_skeleton_handle_method_call, 4296s # _com_acme_coyote_skeleton_handle_get_property, 4296s # _com_acme_coyote_skeleton_handle_set_property, 4296s # {NULL} 4296s # }; 4296s # 4296s # static GDBusInterfaceInfo * 4296s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return com_acme_coyote_interface_info (); 4296s # } 4296s # 4296s # static GDBusInterfaceVTable * 4296s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 4296s # } 4296s # 4296s # static GVariant * 4296s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 4296s # 4296s # GVariantBuilder builder; 4296s # guint n; 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4296s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #else 4296s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #endif 4296s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 4296s # goto out; 4296s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 4296s # { 4296s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 4296s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4296s # { 4296s # GVariant *value; 4296s # 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); 4296s # if (value != NULL) 4296s # { 4296s # g_variant_take_ref (value); 4296s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4296s # g_variant_unref (value); 4296s # } 4296s # } 4296s # } 4296s # out: 4296s # return g_variant_builder_end (&builder); 4296s # } 4296s # 4296s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 4296s # gboolean emit_changed = FALSE; 4296s # 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # if (skeleton->priv->changed_properties_idle_source != NULL) 4296s # { 4296s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4296s # skeleton->priv->changed_properties_idle_source = NULL; 4296s # emit_changed = TRUE; 4296s # } 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # 4296s # if (emit_changed) 4296s # _com_acme_coyote_emit_changed (skeleton); 4296s # } 4296s # 4296s # static void 4296s # _com_acme_coyote_on_signal_surprised ( 4296s # ComAcmeCoyote *object) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # 4296s # GList *connections, *l; 4296s # GVariant *signal_variant; 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4296s # for (l = connections; l != NULL; l = l->next) 4296s # { 4296s # GDBusConnection *connection = l->data; 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 4296s # signal_variant, NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # 4296s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 4296s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # com_acme_coyote_skeleton_finalize (GObject *object) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # guint n; 4296s # for (n = 0; n < 1; n++) 4296s # g_value_unset (&skeleton->priv->properties[n]); 4296s # g_free (skeleton->priv->properties); 4296s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4296s # if (skeleton->priv->changed_properties_idle_source != NULL) 4296s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4296s # g_main_context_unref (skeleton->priv->context); 4296s # g_mutex_clear (&skeleton->priv->lock); 4296s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_get_property (GObject *object, 4296s # guint prop_id, 4296s # GValue *value, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # } 4296s # 4296s # static gboolean 4296s # _com_acme_coyote_emit_changed (gpointer user_data) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 4296s # GList *l; 4296s # GVariantBuilder builder; 4296s # GVariantBuilder invalidated_builder; 4296s # guint num_changes; 4296s # 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4296s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 4296s # #else 4296s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 4296s # #endif 4296s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 4296s # { 4296s # ChangedProperty *cp = l->data; 4296s # GVariant *variant; 4296s # const GValue *cur_value; 4296s # 4296s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 4296s # if (!_g_value_equal (cur_value, &cp->orig_value)) 4296s # { 4296s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 4296s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 4296s # g_variant_unref (variant); 4296s # num_changes++; 4296s # } 4296s # } 4296s # if (num_changes > 0) 4296s # { 4296s # GList *connections, *ll; 4296s # GVariant *signal_variant; 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 4296s # &builder, &invalidated_builder)); 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # for (ll = connections; ll != NULL; ll = ll->next) 4296s # { 4296s # GDBusConnection *connection = ll->data; 4296s # 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 4296s # "org.freedesktop.DBus.Properties", 4296s # "PropertiesChanged", 4296s # signal_variant, 4296s # NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # else 4296s # { 4296s # g_variant_builder_clear (&builder); 4296s # g_variant_builder_clear (&invalidated_builder); 4296s # } 4296s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4296s # skeleton->priv->changed_properties = NULL; 4296s # skeleton->priv->changed_properties_idle_source = NULL; 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # return FALSE; 4296s # } 4296s # 4296s # static void 4296s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 4296s # { 4296s # ChangedProperty *cp; 4296s # GList *l; 4296s # cp = NULL; 4296s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 4296s # { 4296s # ChangedProperty *i_cp = l->data; 4296s # if (i_cp->info == info) 4296s # { 4296s # cp = i_cp; 4296s # break; 4296s # } 4296s # } 4296s # if (cp == NULL) 4296s # { 4296s # cp = g_new0 (ChangedProperty, 1); 4296s # cp->prop_id = prop_id; 4296s # cp->info = info; 4296s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 4296s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 4296s # g_value_copy (orig_value, &cp->orig_value); 4296s # } 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_notify (GObject *object, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # if (skeleton->priv->changed_properties != NULL && 4296s # skeleton->priv->changed_properties_idle_source == NULL) 4296s # { 4296s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 4296s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 4296s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 4296s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 4296s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 4296s # g_source_unref (skeleton->priv->changed_properties_idle_source); 4296s # } 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_set_property (GObject *object, 4296s # guint prop_id, 4296s # const GValue *value, 4296s # GParamSpec *pspec) 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4296s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # g_object_freeze_notify (object); 4296s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 4296s # { 4296s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 4296s # info->emits_changed_signal) 4296s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 4296s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 4296s # g_object_notify_by_pspec (object, pspec); 4296s # } 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # g_object_thaw_notify (object); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 4296s # #else 4296s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 4296s # #endif 4296s # 4296s # g_mutex_init (&skeleton->priv->lock); 4296s # skeleton->priv->context = g_main_context_ref_thread_default (); 4296s # skeleton->priv->properties = g_new0 (GValue, 1); 4296s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 4296s # } 4296s # 4296s # static const gchar * 4296s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # const gchar *value; 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # return value; 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusInterfaceSkeletonClass *skeleton_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 4296s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 4296s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 4296s # gobject_class->notify = com_acme_coyote_skeleton_notify; 4296s # 4296s # 4296s # com_acme_coyote_override_properties (gobject_class, 1); 4296s # 4296s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4296s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 4296s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 4296s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 4296s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 4296s # { 4296s # iface->surprised = _com_acme_coyote_on_signal_surprised; 4296s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_skeleton_new: 4296s # * 4296s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 4296s # * 4296s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 4296s # */ 4296s # ComAcmeCoyote * 4296s # com_acme_coyote_skeleton_new (void) 4296s # { 4296s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ 4296s # * Code for interface org.project.Bar.Frobnicator 4296s # * ------------------------------------------------------------------------ 4296s # */ 4296s # 4296s # /** 4296s # * SECTION:OrgProjectBarFrobnicator 4296s # * @title: OrgProjectBarFrobnicator 4296s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 4296s # * 4296s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 4296s # */ 4296s # 4296s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 4296s # 4296s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "RandomMethod", 4296s # NULL, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "handle-random-method", 4296s # FALSE 4296s # }; 4296s # 4296s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 4296s # { 4296s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "org.project.Bar.Frobnicator", 4296s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 4296s # NULL, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "org-project-bar-frobnicator", 4296s # }; 4296s # 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_interface_info: 4296s # * 4296s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 4296s # * 4296s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4296s # */ 4296s # GDBusInterfaceInfo * 4296s # org_project_bar_frobnicator_interface_info (void) 4296s # { 4296s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_override_properties: 4296s # * @klass: The class structure for a #GObject derived class. 4296s # * @property_id_begin: The property id to assign to the first overridden property. 4296s # * 4296s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 4296s # * The properties are overridden in the order they are defined. 4296s # * 4296s # * Returns: The last property id. 4296s # */ 4296s # guint 4296s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4296s # { 4296s # return property_id_begin - 1; 4296s # } 4296s # 4296s # 4296s # inline static void 4296s # org_project_bar_frobnicator_method_marshal_random_method ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicator: 4296s # * 4296s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicatorIface: 4296s # * @parent_iface: The parent interface. 4296s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 4296s # * 4296s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 4296s # */ 4296s # 4296s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 4296s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 4296s # { 4296s # /* GObject signals for incoming D-Bus method calls: */ 4296s # /** 4296s # * OrgProjectBarFrobnicator::handle-random-method: 4296s # * @object: A #OrgProjectBarFrobnicator. 4296s # * @invocation: A #GDBusMethodInvocation. 4296s # * 4296s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 4296s # * 4296s # * 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. 4296s # * 4296s # * 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. 4296s # */ 4296s # g_signal_new ("handle-random-method", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 4296s # g_signal_accumulator_true_handled, 4296s # NULL, 4296s # org_project_bar_frobnicator_method_marshal_random_method, 4296s # G_TYPE_BOOLEAN, 4296s # 1, 4296s # G_TYPE_DBUS_METHOD_INVOCATION); 4296s # 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_call_random_method: 4296s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 4296s # */ 4296s # void 4296s # org_project_bar_frobnicator_call_random_method ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4296s # "RandomMethod", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # callback, 4296s # user_data); 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_call_random_method_finish: 4296s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # org_project_bar_frobnicator_call_random_method_finish ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_call_random_method_sync: 4296s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # org_project_bar_frobnicator_call_random_method_sync ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4296s # "RandomMethod", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_complete_random_method: 4296s # * @object: A #OrgProjectBarFrobnicator. 4296s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4296s # * 4296s # * Helper function used in service implementations to finish handling invocations of the RandomMethod() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4296s # * 4296s # * This method will free @invocation, you cannot use it afterwards. 4296s # */ 4296s # void 4296s # org_project_bar_frobnicator_complete_random_method ( 4296s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 4296s # GDBusMethodInvocation *invocation) 4296s # { 4296s # g_dbus_method_invocation_return_value (invocation, 4296s # g_variant_new ("()")); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicatorProxy: 4296s # * 4296s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicatorProxyClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectBarFrobnicatorProxy. 4296s # */ 4296s # 4296s # struct _OrgProjectBarFrobnicatorProxyPrivate 4296s # { 4296s # GData *qdata; 4296s # }; 4296s # 4296s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 4296s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 4296s # { 4296s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 4296s # g_datalist_clear (&proxy->priv->qdata); 4296s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # const GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 4296s # const gchar *sender_name G_GNUC_UNUSED, 4296s # const gchar *signal_name, 4296s # GVariant *parameters) 4296s # { 4296s # _ExtendedGDBusSignalInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # gsize n; 4296s # guint signal_id; 4296s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 4296s # if (info == NULL) 4296s # return; 4296s # num_params = g_variant_n_children (parameters); 4296s # paramv = g_new0 (GValue, num_params + 1); 4296s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 4296s # g_value_set_object (¶mv[0], proxy); 4296s # g_variant_iter_init (&iter, parameters); 4296s # n = 1; 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 4296s # g_signal_emitv (paramv, signal_id, 0, NULL); 4296s # for (n = 0; n < num_params + 1; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 4296s # GVariant *changed_properties, 4296s # const gchar *const *invalidated_properties) 4296s # { 4296s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 4296s # guint n; 4296s # const gchar *key; 4296s # GVariantIter *iter; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # g_variant_get (changed_properties, "a{sv}", &iter); 4296s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 4296s # g_datalist_remove_data (&proxy->priv->qdata, key); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # g_variant_iter_free (iter); 4296s # for (n = 0; invalidated_properties[n] != NULL; n++) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 4296s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 4296s # #else 4296s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 4296s # #endif 4296s # 4296s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusProxyClass *proxy_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 4296s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 4296s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 4296s # 4296s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4296s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 4296s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_bar_frobnicator_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectBarFrobnicator * 4296s # org_project_bar_frobnicator_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new_sync: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectBarFrobnicator * 4296s # org_project_bar_frobnicator_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new_for_bus: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_bar_frobnicator_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectBarFrobnicator * 4296s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectBarFrobnicator * 4296s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicatorSkeleton: 4296s # * 4296s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicatorSkeletonClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 4296s # */ 4296s # 4296s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 4296s # { 4296s # GValue *properties; 4296s # GList *changed_properties; 4296s # GSource *changed_properties_idle_source; 4296s # GMainContext *context; 4296s # GMutex lock; 4296s # }; 4296s # 4296s # static void 4296s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name, 4296s # const gchar *method_name, 4296s # GVariant *parameters, 4296s # GDBusMethodInvocation *invocation, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 4296s # _ExtendedGDBusMethodInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # guint num_extra; 4296s # gsize n; 4296s # guint signal_id; 4296s # GValue return_value = G_VALUE_INIT; 4296s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4296s # g_assert (info != NULL); 4296s # num_params = g_variant_n_children (parameters); 4296s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4296s # n = 0; 4296s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 4296s # g_value_set_object (¶mv[n++], skeleton); 4296s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4296s # g_value_set_object (¶mv[n++], invocation); 4296s # if (info->pass_fdlist) 4296s # { 4296s # #ifdef G_OS_UNIX 4296s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4296s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4296s # #else 4296s # g_assert_not_reached (); 4296s # #endif 4296s # } 4296s # g_variant_iter_init (&iter, parameters); 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 4296s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4296s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4296s # if (!g_value_get_boolean (&return_value)) 4296s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4296s # g_value_unset (&return_value); 4296s # for (n = 0; n < num_params + num_extra; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static GVariant * 4296s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *ret; 4296s # ret = NULL; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # g_value_init (&value, pspec->value_type); 4296s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4296s # g_value_unset (&value); 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GVariant *variant, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # gboolean ret; 4296s # ret = FALSE; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # if (info->use_gvariant) 4296s # g_value_set_variant (&value, variant); 4296s # else 4296s # g_dbus_gvariant_to_gvalue (variant, &value); 4296s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # g_value_unset (&value); 4296s # ret = TRUE; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 4296s # { 4296s # _org_project_bar_frobnicator_skeleton_handle_method_call, 4296s # _org_project_bar_frobnicator_skeleton_handle_get_property, 4296s # _org_project_bar_frobnicator_skeleton_handle_set_property, 4296s # {NULL} 4296s # }; 4296s # 4296s # static GDBusInterfaceInfo * 4296s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return org_project_bar_frobnicator_interface_info (); 4296s # } 4296s # 4296s # static GDBusInterfaceVTable * 4296s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 4296s # } 4296s # 4296s # static GVariant * 4296s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4296s # { 4296s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 4296s # 4296s # GVariantBuilder builder; 4296s # guint n; 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4296s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #else 4296s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #endif 4296s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 4296s # goto out; 4296s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 4296s # { 4296s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 4296s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4296s # { 4296s # GVariant *value; 4296s # 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); 4296s # if (value != NULL) 4296s # { 4296s # g_variant_take_ref (value); 4296s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4296s # g_variant_unref (value); 4296s # } 4296s # } 4296s # } 4296s # out: 4296s # return g_variant_builder_end (&builder); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 4296s # { 4296s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 4296s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4296s # if (skeleton->priv->changed_properties_idle_source != NULL) 4296s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4296s # g_main_context_unref (skeleton->priv->context); 4296s # g_mutex_clear (&skeleton->priv->lock); 4296s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 4296s # #else 4296s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 4296s # #endif 4296s # 4296s # g_mutex_init (&skeleton->priv->lock); 4296s # skeleton->priv->context = g_main_context_ref_thread_default (); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusInterfaceSkeletonClass *skeleton_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 4296s # 4296s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4296s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 4296s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 4296s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 4296s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_skeleton_new: 4296s # * 4296s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 4296s # */ 4296s # OrgProjectBarFrobnicator * 4296s # org_project_bar_frobnicator_skeleton_new (void) 4296s # { 4296s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 4296s # } 4296s # Error: 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmsofnzhs/tmpggxit02_2.xml', '/tmp/tmpmsofnzhs/tmp7jj8a4yr1.xml', '--output', '-', '--body'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifdef HAVE_CONFIG_H 4296s # # include "config.h" 4296s # #endif 4296s # 4296s # #include 4296s # #ifdef G_OS_UNIX 4296s # # include 4296s # #endif 4296s # 4296s # #ifdef G_ENABLE_DEBUG 4296s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 4296s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 4296s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 4296s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 4296s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 4296s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 4296s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 4296s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 4296s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 4296s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 4296s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 4296s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 4296s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 4296s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 4296s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 4296s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 4296s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 4296s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 4296s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 4296s # #else /* !G_ENABLE_DEBUG */ 4296s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 4296s # * Do not access GValues directly in your code. Instead, use the 4296s # * g_value_get_*() functions 4296s # */ 4296s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 4296s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 4296s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 4296s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 4296s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 4296s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 4296s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 4296s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 4296s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 4296s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 4296s # #endif /* !G_ENABLE_DEBUG */ 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusArgInfo parent_struct; 4296s # gboolean use_gvariant; 4296s # } _ExtendedGDBusArgInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusMethodInfo parent_struct; 4296s # const gchar *signal_name; 4296s # gboolean pass_fdlist; 4296s # } _ExtendedGDBusMethodInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusSignalInfo parent_struct; 4296s # const gchar *signal_name; 4296s # } _ExtendedGDBusSignalInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusPropertyInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # guint use_gvariant : 1; 4296s # guint emits_changed_signal : 1; 4296s # } _ExtendedGDBusPropertyInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # GDBusInterfaceInfo parent_struct; 4296s # const gchar *hyphen_name; 4296s # } _ExtendedGDBusInterfaceInfo; 4296s # 4296s # typedef struct 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # guint prop_id; 4296s # GValue orig_value; /* the value before the change */ 4296s # } ChangedProperty; 4296s # 4296s # static void 4296s # _changed_property_free (ChangedProperty *data) 4296s # { 4296s # g_value_unset (&data->orig_value); 4296s # g_free (data); 4296s # } 4296s # 4296s # static gboolean 4296s # _g_strv_equal0 (gchar **a, gchar **b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # guint n; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # if (g_strv_length (a) != g_strv_length (b)) 4296s # goto out; 4296s # for (n = 0; a[n] != NULL; n++) 4296s # if (g_strcmp0 (a[n], b[n]) != 0) 4296s # goto out; 4296s # ret = TRUE; 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _g_variant_equal0 (GVariant *a, GVariant *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # if (a == NULL && b == NULL) 4296s # { 4296s # ret = TRUE; 4296s # goto out; 4296s # } 4296s # if (a == NULL || b == NULL) 4296s # goto out; 4296s # ret = g_variant_equal (a, b); 4296s # out: 4296s # return ret; 4296s # } 4296s # 4296s # G_GNUC_UNUSED static gboolean 4296s # _g_value_equal (const GValue *a, const GValue *b) 4296s # { 4296s # gboolean ret = FALSE; 4296s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 4296s # switch (G_VALUE_TYPE (a)) 4296s # { 4296s # case G_TYPE_BOOLEAN: 4296s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 4296s # break; 4296s # case G_TYPE_UCHAR: 4296s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 4296s # break; 4296s # case G_TYPE_INT: 4296s # ret = (g_value_get_int (a) == g_value_get_int (b)); 4296s # break; 4296s # case G_TYPE_UINT: 4296s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 4296s # break; 4296s # case G_TYPE_INT64: 4296s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 4296s # break; 4296s # case G_TYPE_UINT64: 4296s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 4296s # break; 4296s # case G_TYPE_DOUBLE: 4296s # { 4296s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 4296s # gdouble da = g_value_get_double (a); 4296s # gdouble db = g_value_get_double (b); 4296s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 4296s # } 4296s # break; 4296s # case G_TYPE_STRING: 4296s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 4296s # break; 4296s # case G_TYPE_VARIANT: 4296s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 4296s # break; 4296s # default: 4296s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 4296s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 4296s # else 4296s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 4296s # break; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static void 4296s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint G_GNUC_UNUSED, 4296s # void *marshal_data) 4296s # { 4296s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 4296s # (void *data1, 4296s # GDBusMethodInvocation *arg_method_invocation, 4296s # void *data2); 4296s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 4296s # GCClosure *cc = (GCClosure*) closure; 4296s # void *data1, *data2; 4296s # gboolean v_return; 4296s # 4296s # g_return_if_fail (return_value != NULL); 4296s # g_return_if_fail (n_param_values == 2); 4296s # 4296s # if (G_CCLOSURE_SWAP_DATA (closure)) 4296s # { 4296s # data1 = closure->data; 4296s # data2 = g_value_peek_pointer (param_values + 0); 4296s # } 4296s # else 4296s # { 4296s # data1 = g_value_peek_pointer (param_values + 0); 4296s # data2 = closure->data; 4296s # } 4296s # 4296s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 4296s # (marshal_data ? marshal_data : cc->callback); 4296s # 4296s # v_return = 4296s # callback (data1, 4296s # g_marshal_value_peek_object (param_values + 1), 4296s # data2); 4296s # 4296s # g_value_set_boolean (return_value, v_return); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ 4296s # * Code for interface com.acme.Coyote 4296s # * ------------------------------------------------------------------------ 4296s # */ 4296s # 4296s # /** 4296s # * SECTION:ComAcmeCoyote 4296s # * @title: ComAcmeCoyote 4296s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 4296s # * 4296s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 4296s # */ 4296s # 4296s # enum 4296s # { 4296s # _COM_ACME_COYOTE_SURPRISED, 4296s # }; 4296s # 4296s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 4296s # 4296s # /* ---- Introspection data for com.acme.Coyote ---- */ 4296s # 4296s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "Run", 4296s # NULL, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "handle-run", 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "Sleep", 4296s # NULL, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "handle-sleep", 4296s # FALSE 4296s # }; 4296s # 4296s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "Attack", 4296s # NULL, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "handle-attack", 4296s # FALSE 4296s # }; 4296s # 4296s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 4296s # { 4296s # &_com_acme_coyote_method_info_run.parent_struct, 4296s # &_com_acme_coyote_method_info_sleep.parent_struct, 4296s # &_com_acme_coyote_method_info_attack.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "Surprised", 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "surprised" 4296s # }; 4296s # 4296s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 4296s # { 4296s # &_com_acme_coyote_signal_info_surprised.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "Mood", 4296s # (gchar *) "s", 4296s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 4296s # NULL 4296s # }, 4296s # "mood", 4296s # FALSE, 4296s # TRUE 4296s # }; 4296s # 4296s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 4296s # { 4296s # &_com_acme_coyote_property_info_mood.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "com.acme.Coyote", 4296s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 4296s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 4296s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 4296s # NULL 4296s # }, 4296s # "com-acme-coyote", 4296s # }; 4296s # 4296s # 4296s # /** 4296s # * com_acme_coyote_interface_info: 4296s # * 4296s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 4296s # * 4296s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4296s # */ 4296s # GDBusInterfaceInfo * 4296s # com_acme_coyote_interface_info (void) 4296s # { 4296s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_override_properties: 4296s # * @klass: The class structure for a #GObject derived class. 4296s # * @property_id_begin: The property id to assign to the first overridden property. 4296s # * 4296s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 4296s # * The properties are overridden in the order they are defined. 4296s # * 4296s # * Returns: The last property id. 4296s # */ 4296s # guint 4296s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 4296s # { 4296s # g_object_class_override_property (klass, property_id_begin++, "mood"); 4296s # return property_id_begin - 1; 4296s # } 4296s # 4296s # 4296s # inline static void 4296s # com_acme_coyote_signal_marshal_surprised ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # g_cclosure_marshal_VOID__VOID (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # inline static void 4296s # com_acme_coyote_method_marshal_run ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # inline static void 4296s # com_acme_coyote_method_marshal_sleep ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # inline static void 4296s # com_acme_coyote_method_marshal_attack ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # 4296s # /** 4296s # * ComAcmeCoyote: 4296s # * 4296s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 4296s # */ 4296s # 4296s # /** 4296s # * ComAcmeCoyoteIface: 4296s # * @parent_iface: The parent interface. 4296s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 4296s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 4296s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 4296s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 4296s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 4296s # * 4296s # * Virtual table for the D-Bus interface com.acme.Coyote. 4296s # */ 4296s # 4296s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 4296s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 4296s # 4296s # static void 4296s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 4296s # { 4296s # /* GObject signals for incoming D-Bus method calls: */ 4296s # /** 4296s # * ComAcmeCoyote::handle-run: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: A #GDBusMethodInvocation. 4296s # * 4296s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 4296s # * 4296s # * 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. 4296s # * 4296s # * 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. 4296s # */ 4296s # g_signal_new ("handle-run", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 4296s # g_signal_accumulator_true_handled, 4296s # NULL, 4296s # com_acme_coyote_method_marshal_run, 4296s # G_TYPE_BOOLEAN, 4296s # 1, 4296s # G_TYPE_DBUS_METHOD_INVOCATION); 4296s # 4296s # /** 4296s # * ComAcmeCoyote::handle-sleep: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: A #GDBusMethodInvocation. 4296s # * 4296s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 4296s # * 4296s # * 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. 4296s # * 4296s # * 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. 4296s # */ 4296s # g_signal_new ("handle-sleep", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 4296s # g_signal_accumulator_true_handled, 4296s # NULL, 4296s # com_acme_coyote_method_marshal_sleep, 4296s # G_TYPE_BOOLEAN, 4296s # 1, 4296s # G_TYPE_DBUS_METHOD_INVOCATION); 4296s # 4296s # /** 4296s # * ComAcmeCoyote::handle-attack: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: A #GDBusMethodInvocation. 4296s # * 4296s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 4296s # * 4296s # * 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. 4296s # * 4296s # * 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. 4296s # */ 4296s # g_signal_new ("handle-attack", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 4296s # g_signal_accumulator_true_handled, 4296s # NULL, 4296s # com_acme_coyote_method_marshal_attack, 4296s # G_TYPE_BOOLEAN, 4296s # 1, 4296s # G_TYPE_DBUS_METHOD_INVOCATION); 4296s # 4296s # /* GObject signals for received D-Bus signals: */ 4296s # /** 4296s # * ComAcmeCoyote::surprised: 4296s # * @object: A #ComAcmeCoyote. 4296s # * 4296s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 4296s # * 4296s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 4296s # */ 4296s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 4296s # g_signal_new ("surprised", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 4296s # NULL, 4296s # NULL, 4296s # com_acme_coyote_signal_marshal_surprised, 4296s # G_TYPE_NONE, 4296s # 0); 4296s # 4296s # /* GObject properties for D-Bus properties: */ 4296s # /** 4296s # * ComAcmeCoyote:mood: 4296s # * 4296s # * Represents the D-Bus property "Mood". 4296s # * 4296s # * 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. 4296s # */ 4296s # g_object_interface_install_property (iface, 4296s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_get_mood: (skip) 4296s # * @object: A #ComAcmeCoyote. 4296s # * 4296s # * Gets the value of the "Mood" D-Bus property. 4296s # * 4296s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 4296s # * 4296s # * 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. 4296s # * 4296s # * 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. 4296s # */ 4296s # const gchar * 4296s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 4296s # { 4296s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 4296s # 4296s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_dup_mood: (skip) 4296s # * @object: A #ComAcmeCoyote. 4296s # * 4296s # * Gets a copy of the "Mood" D-Bus property. 4296s # * 4296s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 4296s # * 4296s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 4296s # */ 4296s # gchar * 4296s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 4296s # { 4296s # gchar *value; 4296s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 4296s # return value; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_set_mood: (skip) 4296s # * @object: A #ComAcmeCoyote. 4296s # * @value: The value to set. 4296s # * 4296s # * Sets the "Mood" D-Bus property to @value. 4296s # * 4296s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 4296s # */ 4296s # void 4296s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 4296s # { 4296s # g_object_set (G_OBJECT (object), "mood", value, NULL); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_emit_surprised: 4296s # * @object: A #ComAcmeCoyote. 4296s # * 4296s # * Emits the "Surprised" D-Bus signal. 4296s # */ 4296s # void 4296s # com_acme_coyote_emit_surprised ( 4296s # ComAcmeCoyote *object) 4296s # { 4296s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_run: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously invokes the Run() D-Bus method on @proxy. 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 4296s # * 4296s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 4296s # */ 4296s # void 4296s # com_acme_coyote_call_run ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4296s # "Run", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # callback, 4296s # user_data); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_run_finish: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Finishes an operation started with com_acme_coyote_call_run(). 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_run_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_run_sync: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4296s # * 4296s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_run_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4296s # "Run", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_sleep: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 4296s # * 4296s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 4296s # */ 4296s # void 4296s # com_acme_coyote_call_sleep ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4296s # "Sleep", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # callback, 4296s # user_data); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_sleep_finish: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Finishes an operation started with com_acme_coyote_call_sleep(). 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_sleep_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_sleep_sync: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4296s # * 4296s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_sleep_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4296s # "Sleep", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_attack: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 4296s # * 4296s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 4296s # */ 4296s # void 4296s # com_acme_coyote_call_attack ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4296s # "Attack", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # callback, 4296s # user_data); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_attack_finish: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Finishes an operation started with com_acme_coyote_call_attack(). 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_attack_finish ( 4296s # ComAcmeCoyote *proxy, 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_call_attack_sync: 4296s # * @proxy: A #ComAcmeCoyoteProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4296s # * 4296s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # com_acme_coyote_call_attack_sync ( 4296s # ComAcmeCoyote *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4296s # "Attack", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_complete_run: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4296s # * 4296s # * Helper function used in service implementations to finish handling invocations of the Run() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4296s # * 4296s # * This method will free @invocation, you cannot use it afterwards. 4296s # */ 4296s # void 4296s # com_acme_coyote_complete_run ( 4296s # ComAcmeCoyote *object G_GNUC_UNUSED, 4296s # GDBusMethodInvocation *invocation) 4296s # { 4296s # g_dbus_method_invocation_return_value (invocation, 4296s # g_variant_new ("()")); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_complete_sleep: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4296s # * 4296s # * Helper function used in service implementations to finish handling invocations of the Sleep() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4296s # * 4296s # * This method will free @invocation, you cannot use it afterwards. 4296s # */ 4296s # void 4296s # com_acme_coyote_complete_sleep ( 4296s # ComAcmeCoyote *object G_GNUC_UNUSED, 4296s # GDBusMethodInvocation *invocation) 4296s # { 4296s # g_dbus_method_invocation_return_value (invocation, 4296s # g_variant_new ("()")); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_complete_attack: 4296s # * @object: A #ComAcmeCoyote. 4296s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4296s # * 4296s # * Helper function used in service implementations to finish handling invocations of the Attack() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4296s # * 4296s # * This method will free @invocation, you cannot use it afterwards. 4296s # */ 4296s # void 4296s # com_acme_coyote_complete_attack ( 4296s # ComAcmeCoyote *object G_GNUC_UNUSED, 4296s # GDBusMethodInvocation *invocation) 4296s # { 4296s # g_dbus_method_invocation_return_value (invocation, 4296s # g_variant_new ("()")); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * ComAcmeCoyoteProxy: 4296s # * 4296s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * ComAcmeCoyoteProxyClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #ComAcmeCoyoteProxy. 4296s # */ 4296s # 4296s # struct _ComAcmeCoyoteProxyPrivate 4296s # { 4296s # GData *qdata; 4296s # }; 4296s # 4296s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 4296s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 4296s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 4296s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # com_acme_coyote_proxy_finalize (GObject *object) 4296s # { 4296s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 4296s # g_datalist_clear (&proxy->priv->qdata); 4296s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_get_property (GObject *object, 4296s # guint prop_id, 4296s # GValue *value, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *variant; 4296s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4296s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 4296s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 4296s # if (info->use_gvariant) 4296s # { 4296s # g_value_set_variant (value, variant); 4296s # } 4296s # else 4296s # { 4296s # if (variant != NULL) 4296s # g_dbus_gvariant_to_gvalue (variant, value); 4296s # } 4296s # if (variant != NULL) 4296s # g_variant_unref (variant); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 4296s # GAsyncResult *res, 4296s # gpointer user_data) 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info = user_data; 4296s # GError *error; 4296s # GVariant *_ret; 4296s # error = NULL; 4296s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 4296s # if (!_ret) 4296s # { 4296s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 4296s # info->parent_struct.name, 4296s # error->message, g_quark_to_string (error->domain), error->code); 4296s # g_error_free (error); 4296s # } 4296s # else 4296s # { 4296s # g_variant_unref (_ret); 4296s # } 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_set_property (GObject *object, 4296s # guint prop_id, 4296s # const GValue *value, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *variant; 4296s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4296s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 4296s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 4296s # g_dbus_proxy_call (G_DBUS_PROXY (object), 4296s # "org.freedesktop.DBus.Properties.Set", 4296s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 4296s # g_variant_unref (variant); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 4296s # const gchar *sender_name G_GNUC_UNUSED, 4296s # const gchar *signal_name, 4296s # GVariant *parameters) 4296s # { 4296s # _ExtendedGDBusSignalInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # gsize n; 4296s # guint signal_id; 4296s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 4296s # if (info == NULL) 4296s # return; 4296s # num_params = g_variant_n_children (parameters); 4296s # paramv = g_new0 (GValue, num_params + 1); 4296s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 4296s # g_value_set_object (¶mv[0], proxy); 4296s # g_variant_iter_init (&iter, parameters); 4296s # n = 1; 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 4296s # g_signal_emitv (paramv, signal_id, 0, NULL); 4296s # for (n = 0; n < num_params + 1; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 4296s # GVariant *changed_properties, 4296s # const gchar *const *invalidated_properties) 4296s # { 4296s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 4296s # guint n; 4296s # const gchar *key; 4296s # GVariantIter *iter; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # g_variant_get (changed_properties, "a{sv}", &iter); 4296s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 4296s # g_datalist_remove_data (&proxy->priv->qdata, key); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # g_variant_iter_free (iter); 4296s # for (n = 0; invalidated_properties[n] != NULL; n++) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 4296s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # } 4296s # 4296s # static const gchar * 4296s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 4296s # { 4296s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 4296s # GVariant *variant; 4296s # const gchar *value = NULL; 4296s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 4296s # if (variant != NULL) 4296s # { 4296s # value = g_variant_get_string (variant, NULL); 4296s # g_variant_unref (variant); 4296s # } 4296s # return value; 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 4296s # #else 4296s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 4296s # #endif 4296s # 4296s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusProxyClass *proxy_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 4296s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 4296s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 4296s # 4296s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4296s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 4296s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 4296s # 4296s # com_acme_coyote_override_properties (gobject_class, 1); 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 4296s # { 4296s # iface->get_mood = com_acme_coyote_proxy_get_mood; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 4296s # * 4296s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # com_acme_coyote_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with com_acme_coyote_proxy_new(). 4296s # * 4296s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # ComAcmeCoyote * 4296s # com_acme_coyote_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return COM_ACME_COYOTE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new_sync: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # ComAcmeCoyote * 4296s # com_acme_coyote_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return COM_ACME_COYOTE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new_for_bus: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 4296s # * 4296s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # com_acme_coyote_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new_for_bus_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 4296s # * 4296s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # ComAcmeCoyote * 4296s # com_acme_coyote_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return COM_ACME_COYOTE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_proxy_new_for_bus_sync: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # ComAcmeCoyote * 4296s # com_acme_coyote_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return COM_ACME_COYOTE (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * ComAcmeCoyoteSkeleton: 4296s # * 4296s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * ComAcmeCoyoteSkeletonClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #ComAcmeCoyoteSkeleton. 4296s # */ 4296s # 4296s # struct _ComAcmeCoyoteSkeletonPrivate 4296s # { 4296s # GValue *properties; 4296s # GList *changed_properties; 4296s # GSource *changed_properties_idle_source; 4296s # GMainContext *context; 4296s # GMutex lock; 4296s # }; 4296s # 4296s # static void 4296s # _com_acme_coyote_skeleton_handle_method_call ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name, 4296s # const gchar *method_name, 4296s # GVariant *parameters, 4296s # GDBusMethodInvocation *invocation, 4296s # gpointer user_data) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 4296s # _ExtendedGDBusMethodInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # guint num_extra; 4296s # gsize n; 4296s # guint signal_id; 4296s # GValue return_value = G_VALUE_INIT; 4296s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4296s # g_assert (info != NULL); 4296s # num_params = g_variant_n_children (parameters); 4296s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4296s # n = 0; 4296s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 4296s # g_value_set_object (¶mv[n++], skeleton); 4296s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4296s # g_value_set_object (¶mv[n++], invocation); 4296s # if (info->pass_fdlist) 4296s # { 4296s # #ifdef G_OS_UNIX 4296s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4296s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4296s # #else 4296s # g_assert_not_reached (); 4296s # #endif 4296s # } 4296s # g_variant_iter_init (&iter, parameters); 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 4296s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4296s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4296s # if (!g_value_get_boolean (&return_value)) 4296s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4296s # g_value_unset (&return_value); 4296s # for (n = 0; n < num_params + num_extra; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static GVariant * 4296s # _com_acme_coyote_skeleton_handle_get_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *ret; 4296s # ret = NULL; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # g_value_init (&value, pspec->value_type); 4296s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4296s # g_value_unset (&value); 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _com_acme_coyote_skeleton_handle_set_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GVariant *variant, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # gboolean ret; 4296s # ret = FALSE; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # if (info->use_gvariant) 4296s # g_value_set_variant (&value, variant); 4296s # else 4296s # g_dbus_gvariant_to_gvalue (variant, &value); 4296s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # g_value_unset (&value); 4296s # ret = TRUE; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 4296s # { 4296s # _com_acme_coyote_skeleton_handle_method_call, 4296s # _com_acme_coyote_skeleton_handle_get_property, 4296s # _com_acme_coyote_skeleton_handle_set_property, 4296s # {NULL} 4296s # }; 4296s # 4296s # static GDBusInterfaceInfo * 4296s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return com_acme_coyote_interface_info (); 4296s # } 4296s # 4296s # static GDBusInterfaceVTable * 4296s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 4296s # } 4296s # 4296s # static GVariant * 4296s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 4296s # 4296s # GVariantBuilder builder; 4296s # guint n; 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4296s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #else 4296s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #endif 4296s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 4296s # goto out; 4296s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 4296s # { 4296s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 4296s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4296s # { 4296s # GVariant *value; 4296s # 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); 4296s # if (value != NULL) 4296s # { 4296s # g_variant_take_ref (value); 4296s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4296s # g_variant_unref (value); 4296s # } 4296s # } 4296s # } 4296s # out: 4296s # return g_variant_builder_end (&builder); 4296s # } 4296s # 4296s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 4296s # gboolean emit_changed = FALSE; 4296s # 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # if (skeleton->priv->changed_properties_idle_source != NULL) 4296s # { 4296s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4296s # skeleton->priv->changed_properties_idle_source = NULL; 4296s # emit_changed = TRUE; 4296s # } 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # 4296s # if (emit_changed) 4296s # _com_acme_coyote_emit_changed (skeleton); 4296s # } 4296s # 4296s # static void 4296s # _com_acme_coyote_on_signal_surprised ( 4296s # ComAcmeCoyote *object) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # 4296s # GList *connections, *l; 4296s # GVariant *signal_variant; 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 4296s # for (l = connections; l != NULL; l = l->next) 4296s # { 4296s # GDBusConnection *connection = l->data; 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 4296s # signal_variant, NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # 4296s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 4296s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # com_acme_coyote_skeleton_finalize (GObject *object) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # guint n; 4296s # for (n = 0; n < 1; n++) 4296s # g_value_unset (&skeleton->priv->properties[n]); 4296s # g_free (skeleton->priv->properties); 4296s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4296s # if (skeleton->priv->changed_properties_idle_source != NULL) 4296s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4296s # g_main_context_unref (skeleton->priv->context); 4296s # g_mutex_clear (&skeleton->priv->lock); 4296s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_get_property (GObject *object, 4296s # guint prop_id, 4296s # GValue *value, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # } 4296s # 4296s # static gboolean 4296s # _com_acme_coyote_emit_changed (gpointer user_data) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 4296s # GList *l; 4296s # GVariantBuilder builder; 4296s # GVariantBuilder invalidated_builder; 4296s # guint num_changes; 4296s # 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4296s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 4296s # #else 4296s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 4296s # #endif 4296s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 4296s # { 4296s # ChangedProperty *cp = l->data; 4296s # GVariant *variant; 4296s # const GValue *cur_value; 4296s # 4296s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 4296s # if (!_g_value_equal (cur_value, &cp->orig_value)) 4296s # { 4296s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 4296s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 4296s # g_variant_unref (variant); 4296s # num_changes++; 4296s # } 4296s # } 4296s # if (num_changes > 0) 4296s # { 4296s # GList *connections, *ll; 4296s # GVariant *signal_variant; 4296s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 4296s # &builder, &invalidated_builder)); 4296s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 4296s # for (ll = connections; ll != NULL; ll = ll->next) 4296s # { 4296s # GDBusConnection *connection = ll->data; 4296s # 4296s # g_dbus_connection_emit_signal (connection, 4296s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 4296s # "org.freedesktop.DBus.Properties", 4296s # "PropertiesChanged", 4296s # signal_variant, 4296s # NULL); 4296s # } 4296s # g_variant_unref (signal_variant); 4296s # g_list_free_full (connections, g_object_unref); 4296s # } 4296s # else 4296s # { 4296s # g_variant_builder_clear (&builder); 4296s # g_variant_builder_clear (&invalidated_builder); 4296s # } 4296s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4296s # skeleton->priv->changed_properties = NULL; 4296s # skeleton->priv->changed_properties_idle_source = NULL; 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # return FALSE; 4296s # } 4296s # 4296s # static void 4296s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 4296s # { 4296s # ChangedProperty *cp; 4296s # GList *l; 4296s # cp = NULL; 4296s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 4296s # { 4296s # ChangedProperty *i_cp = l->data; 4296s # if (i_cp->info == info) 4296s # { 4296s # cp = i_cp; 4296s # break; 4296s # } 4296s # } 4296s # if (cp == NULL) 4296s # { 4296s # cp = g_new0 (ChangedProperty, 1); 4296s # cp->prop_id = prop_id; 4296s # cp->info = info; 4296s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 4296s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 4296s # g_value_copy (orig_value, &cp->orig_value); 4296s # } 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_notify (GObject *object, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # if (skeleton->priv->changed_properties != NULL && 4296s # skeleton->priv->changed_properties_idle_source == NULL) 4296s # { 4296s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 4296s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 4296s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 4296s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 4296s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 4296s # g_source_unref (skeleton->priv->changed_properties_idle_source); 4296s # } 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_set_property (GObject *object, 4296s # guint prop_id, 4296s # const GValue *value, 4296s # GParamSpec *pspec) 4296s # { 4296s # const _ExtendedGDBusPropertyInfo *info; 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # g_assert (prop_id != 0 && prop_id - 1 < 1); 4296s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # g_object_freeze_notify (object); 4296s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 4296s # { 4296s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 4296s # info->emits_changed_signal) 4296s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 4296s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 4296s # g_object_notify_by_pspec (object, pspec); 4296s # } 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # g_object_thaw_notify (object); 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 4296s # #else 4296s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 4296s # #endif 4296s # 4296s # g_mutex_init (&skeleton->priv->lock); 4296s # skeleton->priv->context = g_main_context_ref_thread_default (); 4296s # skeleton->priv->properties = g_new0 (GValue, 1); 4296s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 4296s # } 4296s # 4296s # static const gchar * 4296s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 4296s # { 4296s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 4296s # const gchar *value; 4296s # g_mutex_lock (&skeleton->priv->lock); 4296s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 4296s # g_mutex_unlock (&skeleton->priv->lock); 4296s # return value; 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusInterfaceSkeletonClass *skeleton_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 4296s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 4296s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 4296s # gobject_class->notify = com_acme_coyote_skeleton_notify; 4296s # 4296s # 4296s # com_acme_coyote_override_properties (gobject_class, 1); 4296s # 4296s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4296s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 4296s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 4296s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 4296s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 4296s # { 4296s # iface->surprised = _com_acme_coyote_on_signal_surprised; 4296s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 4296s # } 4296s # 4296s # /** 4296s # * com_acme_coyote_skeleton_new: 4296s # * 4296s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 4296s # * 4296s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 4296s # */ 4296s # ComAcmeCoyote * 4296s # com_acme_coyote_skeleton_new (void) 4296s # { 4296s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ 4296s # * Code for interface org.project.Bar.Frobnicator 4296s # * ------------------------------------------------------------------------ 4296s # */ 4296s # 4296s # /** 4296s # * SECTION:OrgProjectBarFrobnicator 4296s # * @title: OrgProjectBarFrobnicator 4296s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 4296s # * 4296s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 4296s # */ 4296s # 4296s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 4296s # 4296s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "RandomMethod", 4296s # NULL, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "handle-random-method", 4296s # FALSE 4296s # }; 4296s # 4296s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 4296s # { 4296s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 4296s # NULL 4296s # }; 4296s # 4296s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 4296s # { 4296s # { 4296s # -1, 4296s # (gchar *) "org.project.Bar.Frobnicator", 4296s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 4296s # NULL, 4296s # NULL, 4296s # NULL 4296s # }, 4296s # "org-project-bar-frobnicator", 4296s # }; 4296s # 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_interface_info: 4296s # * 4296s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 4296s # * 4296s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 4296s # */ 4296s # GDBusInterfaceInfo * 4296s # org_project_bar_frobnicator_interface_info (void) 4296s # { 4296s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_override_properties: 4296s # * @klass: The class structure for a #GObject derived class. 4296s # * @property_id_begin: The property id to assign to the first overridden property. 4296s # * 4296s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 4296s # * The properties are overridden in the order they are defined. 4296s # * 4296s # * Returns: The last property id. 4296s # */ 4296s # guint 4296s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 4296s # { 4296s # return property_id_begin - 1; 4296s # } 4296s # 4296s # 4296s # inline static void 4296s # org_project_bar_frobnicator_method_marshal_random_method ( 4296s # GClosure *closure, 4296s # GValue *return_value, 4296s # unsigned int n_param_values, 4296s # const GValue *param_values, 4296s # void *invocation_hint, 4296s # void *marshal_data) 4296s # { 4296s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 4296s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 4296s # } 4296s # 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicator: 4296s # * 4296s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicatorIface: 4296s # * @parent_iface: The parent interface. 4296s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 4296s # * 4296s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 4296s # */ 4296s # 4296s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 4296s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 4296s # { 4296s # /* GObject signals for incoming D-Bus method calls: */ 4296s # /** 4296s # * OrgProjectBarFrobnicator::handle-random-method: 4296s # * @object: A #OrgProjectBarFrobnicator. 4296s # * @invocation: A #GDBusMethodInvocation. 4296s # * 4296s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 4296s # * 4296s # * 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. 4296s # * 4296s # * 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. 4296s # */ 4296s # g_signal_new ("handle-random-method", 4296s # G_TYPE_FROM_INTERFACE (iface), 4296s # G_SIGNAL_RUN_LAST, 4296s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 4296s # g_signal_accumulator_true_handled, 4296s # NULL, 4296s # org_project_bar_frobnicator_method_marshal_random_method, 4296s # G_TYPE_BOOLEAN, 4296s # 1, 4296s # G_TYPE_DBUS_METHOD_INVOCATION); 4296s # 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_call_random_method: 4296s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 4296s # */ 4296s # void 4296s # org_project_bar_frobnicator_call_random_method ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 4296s # "RandomMethod", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # callback, 4296s # user_data); 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_call_random_method_finish: 4296s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # org_project_bar_frobnicator_call_random_method_finish ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_call_random_method_sync: 4296s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL. 4296s # * 4296s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 4296s # * 4296s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 4296s # */ 4296s # gboolean 4296s # org_project_bar_frobnicator_call_random_method_sync ( 4296s # OrgProjectBarFrobnicator *proxy, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GVariant *_ret; 4296s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 4296s # "RandomMethod", 4296s # g_variant_new ("()"), 4296s # G_DBUS_CALL_FLAGS_NONE, 4296s # -1, 4296s # cancellable, 4296s # error); 4296s # if (_ret == NULL) 4296s # goto _out; 4296s # g_variant_get (_ret, 4296s # "()"); 4296s # g_variant_unref (_ret); 4296s # _out: 4296s # return _ret != NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_complete_random_method: 4296s # * @object: A #OrgProjectBarFrobnicator. 4296s # * @invocation: (transfer full): A #GDBusMethodInvocation. 4296s # * 4296s # * Helper function used in service implementations to finish handling invocations of the RandomMethod() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 4296s # * 4296s # * This method will free @invocation, you cannot use it afterwards. 4296s # */ 4296s # void 4296s # org_project_bar_frobnicator_complete_random_method ( 4296s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 4296s # GDBusMethodInvocation *invocation) 4296s # { 4296s # g_dbus_method_invocation_return_value (invocation, 4296s # g_variant_new ("()")); 4296s # } 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicatorProxy: 4296s # * 4296s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicatorProxyClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectBarFrobnicatorProxy. 4296s # */ 4296s # 4296s # struct _OrgProjectBarFrobnicatorProxyPrivate 4296s # { 4296s # GData *qdata; 4296s # }; 4296s # 4296s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 4296s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 4296s # { 4296s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 4296s # g_datalist_clear (&proxy->priv->qdata); 4296s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 4296s # guint prop_id G_GNUC_UNUSED, 4296s # const GValue *value G_GNUC_UNUSED, 4296s # GParamSpec *pspec G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 4296s # const gchar *sender_name G_GNUC_UNUSED, 4296s # const gchar *signal_name, 4296s # GVariant *parameters) 4296s # { 4296s # _ExtendedGDBusSignalInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # gsize n; 4296s # guint signal_id; 4296s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 4296s # if (info == NULL) 4296s # return; 4296s # num_params = g_variant_n_children (parameters); 4296s # paramv = g_new0 (GValue, num_params + 1); 4296s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 4296s # g_value_set_object (¶mv[0], proxy); 4296s # g_variant_iter_init (&iter, parameters); 4296s # n = 1; 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 4296s # g_signal_emitv (paramv, signal_id, 0, NULL); 4296s # for (n = 0; n < num_params + 1; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 4296s # GVariant *changed_properties, 4296s # const gchar *const *invalidated_properties) 4296s # { 4296s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 4296s # guint n; 4296s # const gchar *key; 4296s # GVariantIter *iter; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # g_variant_get (changed_properties, "a{sv}", &iter); 4296s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 4296s # g_datalist_remove_data (&proxy->priv->qdata, key); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # g_variant_iter_free (iter); 4296s # for (n = 0; invalidated_properties[n] != NULL; n++) 4296s # { 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 4296s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 4296s # if (info != NULL) 4296s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 4296s # } 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 4296s # #else 4296s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 4296s # #endif 4296s # 4296s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusProxyClass *proxy_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 4296s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 4296s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 4296s # 4296s # proxy_class = G_DBUS_PROXY_CLASS (klass); 4296s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 4296s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_bar_frobnicator_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectBarFrobnicator * 4296s # org_project_bar_frobnicator_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new_sync: 4296s # * @connection: A #GDBusConnection. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectBarFrobnicator * 4296s # org_project_bar_frobnicator_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new_for_bus: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 4296s # * @user_data: User data to pass to @callback. 4296s # * 4296s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 4296s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 4296s # * 4296s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 4296s # */ 4296s # void 4296s # org_project_bar_frobnicator_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data) 4296s # { 4296s # 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); 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 4296s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectBarFrobnicator * 4296s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error) 4296s # { 4296s # GObject *ret; 4296s # GObject *source_object; 4296s # source_object = g_async_result_get_source_object (res); 4296s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 4296s # g_object_unref (source_object); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 4296s # * @bus_type: A #GBusType. 4296s # * @flags: Flags from the #GDBusProxyFlags enumeration. 4296s # * @name: A bus name (well-known or unique). 4296s # * @object_path: An object path. 4296s # * @cancellable: (nullable): A #GCancellable or %NULL. 4296s # * @error: Return location for error or %NULL 4296s # * 4296s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 4296s # * 4296s # * The calling thread is blocked until a reply is received. 4296s # * 4296s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 4296s # */ 4296s # OrgProjectBarFrobnicator * 4296s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error) 4296s # { 4296s # GInitable *ret; 4296s # 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); 4296s # if (ret != NULL) 4296s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 4296s # else 4296s # return NULL; 4296s # } 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicatorSkeleton: 4296s # * 4296s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 4296s # */ 4296s # 4296s # /** 4296s # * OrgProjectBarFrobnicatorSkeletonClass: 4296s # * @parent_class: The parent class. 4296s # * 4296s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 4296s # */ 4296s # 4296s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 4296s # { 4296s # GValue *properties; 4296s # GList *changed_properties; 4296s # GSource *changed_properties_idle_source; 4296s # GMainContext *context; 4296s # GMutex lock; 4296s # }; 4296s # 4296s # static void 4296s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name, 4296s # const gchar *method_name, 4296s # GVariant *parameters, 4296s # GDBusMethodInvocation *invocation, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 4296s # _ExtendedGDBusMethodInfo *info; 4296s # GVariantIter iter; 4296s # GVariant *child; 4296s # GValue *paramv; 4296s # gsize num_params; 4296s # guint num_extra; 4296s # gsize n; 4296s # guint signal_id; 4296s # GValue return_value = G_VALUE_INIT; 4296s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 4296s # g_assert (info != NULL); 4296s # num_params = g_variant_n_children (parameters); 4296s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 4296s # n = 0; 4296s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 4296s # g_value_set_object (¶mv[n++], skeleton); 4296s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 4296s # g_value_set_object (¶mv[n++], invocation); 4296s # if (info->pass_fdlist) 4296s # { 4296s # #ifdef G_OS_UNIX 4296s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 4296s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 4296s # #else 4296s # g_assert_not_reached (); 4296s # #endif 4296s # } 4296s # g_variant_iter_init (&iter, parameters); 4296s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 4296s # { 4296s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 4296s # if (arg_info->use_gvariant) 4296s # { 4296s # g_value_init (¶mv[n], G_TYPE_VARIANT); 4296s # g_value_set_variant (¶mv[n], child); 4296s # n++; 4296s # } 4296s # else 4296s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 4296s # g_variant_unref (child); 4296s # } 4296s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 4296s # g_value_init (&return_value, G_TYPE_BOOLEAN); 4296s # g_signal_emitv (paramv, signal_id, 0, &return_value); 4296s # if (!g_value_get_boolean (&return_value)) 4296s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 4296s # g_value_unset (&return_value); 4296s # for (n = 0; n < num_params + num_extra; n++) 4296s # g_value_unset (¶mv[n]); 4296s # g_free (paramv); 4296s # } 4296s # 4296s # static GVariant * 4296s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # GVariant *ret; 4296s # ret = NULL; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # g_value_init (&value, pspec->value_type); 4296s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 4296s # g_value_unset (&value); 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static gboolean 4296s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 4296s # GDBusConnection *connection G_GNUC_UNUSED, 4296s # const gchar *sender G_GNUC_UNUSED, 4296s # const gchar *object_path G_GNUC_UNUSED, 4296s # const gchar *interface_name G_GNUC_UNUSED, 4296s # const gchar *property_name, 4296s # GVariant *variant, 4296s # GError **error, 4296s # gpointer user_data) 4296s # { 4296s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 4296s # GValue value = G_VALUE_INIT; 4296s # GParamSpec *pspec; 4296s # _ExtendedGDBusPropertyInfo *info; 4296s # gboolean ret; 4296s # ret = FALSE; 4296s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 4296s # g_assert (info != NULL); 4296s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 4296s # if (pspec == NULL) 4296s # { 4296s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 4296s # } 4296s # else 4296s # { 4296s # if (info->use_gvariant) 4296s # g_value_set_variant (&value, variant); 4296s # else 4296s # g_dbus_gvariant_to_gvalue (variant, &value); 4296s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 4296s # g_value_unset (&value); 4296s # ret = TRUE; 4296s # } 4296s # return ret; 4296s # } 4296s # 4296s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 4296s # { 4296s # _org_project_bar_frobnicator_skeleton_handle_method_call, 4296s # _org_project_bar_frobnicator_skeleton_handle_get_property, 4296s # _org_project_bar_frobnicator_skeleton_handle_set_property, 4296s # {NULL} 4296s # }; 4296s # 4296s # static GDBusInterfaceInfo * 4296s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return org_project_bar_frobnicator_interface_info (); 4296s # } 4296s # 4296s # static GDBusInterfaceVTable * 4296s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 4296s # { 4296s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 4296s # } 4296s # 4296s # static GVariant * 4296s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 4296s # { 4296s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 4296s # 4296s # GVariantBuilder builder; 4296s # guint n; 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 4296s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #else 4296s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 4296s # #endif 4296s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 4296s # goto out; 4296s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 4296s # { 4296s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 4296s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 4296s # { 4296s # GVariant *value; 4296s # 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); 4296s # if (value != NULL) 4296s # { 4296s # g_variant_take_ref (value); 4296s # g_variant_builder_add (&builder, "{sv}", info->name, value); 4296s # g_variant_unref (value); 4296s # } 4296s # } 4296s # } 4296s # out: 4296s # return g_variant_builder_end (&builder); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 4296s # 4296s # #else 4296s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 4296s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 4296s # 4296s # #endif 4296s # static void 4296s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 4296s # { 4296s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 4296s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 4296s # if (skeleton->priv->changed_properties_idle_source != NULL) 4296s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 4296s # g_main_context_unref (skeleton->priv->context); 4296s # g_mutex_clear (&skeleton->priv->lock); 4296s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 4296s # { 4296s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 4296s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 4296s # #else 4296s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 4296s # #endif 4296s # 4296s # g_mutex_init (&skeleton->priv->lock); 4296s # skeleton->priv->context = g_main_context_ref_thread_default (); 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 4296s # { 4296s # GObjectClass *gobject_class; 4296s # GDBusInterfaceSkeletonClass *skeleton_class; 4296s # 4296s # gobject_class = G_OBJECT_CLASS (klass); 4296s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 4296s # 4296s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 4296s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 4296s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 4296s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 4296s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 4296s # 4296s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 4296s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 4296s # #endif 4296s # } 4296s # 4296s # static void 4296s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 4296s # { 4296s # } 4296s # 4296s # /** 4296s # * org_project_bar_frobnicator_skeleton_new: 4296s # * 4296s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 4296s # * 4296s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 4296s # */ 4296s # OrgProjectBarFrobnicator * 4296s # org_project_bar_frobnicator_skeleton_new (void) 4296s # { 4296s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 4296s # } 4296s # Error: 4296s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 4296s # gdbus-codegen: /usr/bin/gdbus-codegen 4296s # tmpdir: /tmp/tmpdhq8ksud 4296s # /tmp/tmpdhq8ksud/tmp5b1t92vw.xml: 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdhq8ksud/tmp5b1t92vw.xml', '--output', '-', '--header'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifndef __STDOUT__ 4296s # #define __STDOUT__ 4296s # 4296s # #include 4296s # 4296s # G_BEGIN_DECLS 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # /* Declarations for FDPassing */ 4296s # 4296s # #define TYPE_FDPASSING (fdpassing_get_type ()) 4296s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 4296s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 4296s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 4296s # 4296s # struct _FDPassing; 4296s # typedef struct _FDPassing FDPassing; 4296s # typedef struct _FDPassingIface FDPassingIface; 4296s # 4296s # struct _FDPassingIface 4296s # { 4296s # GTypeInterface parent_iface; 4296s # 4296s # gboolean (*handle_hello_fd) ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GUnixFDList *fd_list, 4296s # const gchar *arg_greeting); 4296s # 4296s # gboolean (*handle_no_annotation) ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GVariant *arg_greeting, 4296s # const gchar *arg_greeting_locale); 4296s # 4296s # gboolean (*handle_no_annotation_nested) ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GVariant *arg_files); 4296s # 4296s # }; 4296s # 4296s # GType fdpassing_get_type (void) G_GNUC_CONST; 4296s # 4296s # GDBusInterfaceInfo *fdpassing_interface_info (void); 4296s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 4296s # 4296s # 4296s # /* D-Bus method call completion functions: */ 4296s # void fdpassing_complete_hello_fd ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GUnixFDList *fd_list, 4296s # const gchar *response); 4296s # 4296s # void fdpassing_complete_no_annotation ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GVariant *response, 4296s # const gchar *response_locale); 4296s # 4296s # void fdpassing_complete_no_annotation_nested ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # 4296s # 4296s # /* D-Bus method calls: */ 4296s # void fdpassing_call_hello_fd ( 4296s # FDPassing *proxy, 4296s # const gchar *arg_greeting, 4296s # GUnixFDList *fd_list, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean fdpassing_call_hello_fd_finish ( 4296s # FDPassing *proxy, 4296s # gchar **out_response, 4296s # GUnixFDList **out_fd_list, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean fdpassing_call_hello_fd_sync ( 4296s # FDPassing *proxy, 4296s # const gchar *arg_greeting, 4296s # GUnixFDList *fd_list, 4296s # gchar **out_response, 4296s # GUnixFDList **out_fd_list, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void fdpassing_call_no_annotation ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_greeting, 4296s # const gchar *arg_greeting_locale, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean fdpassing_call_no_annotation_finish ( 4296s # FDPassing *proxy, 4296s # GVariant **out_response, 4296s # gchar **out_response_locale, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean fdpassing_call_no_annotation_sync ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_greeting, 4296s # const gchar *arg_greeting_locale, 4296s # GVariant **out_response, 4296s # gchar **out_response_locale, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void fdpassing_call_no_annotation_nested ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_files, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean fdpassing_call_no_annotation_nested_finish ( 4296s # FDPassing *proxy, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean fdpassing_call_no_annotation_nested_sync ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_files, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 4296s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 4296s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 4296s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 4296s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 4296s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 4296s # 4296s # typedef struct _FDPassingProxy FDPassingProxy; 4296s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 4296s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 4296s # 4296s # struct _FDPassingProxy 4296s # { 4296s # /*< private >*/ 4296s # GDBusProxy parent_instance; 4296s # FDPassingProxyPrivate *priv; 4296s # }; 4296s # 4296s # struct _FDPassingProxyClass 4296s # { 4296s # GDBusProxyClass parent_class; 4296s # }; 4296s # 4296s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 4296s # #endif 4296s # 4296s # void fdpassing_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # FDPassing *fdpassing_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # FDPassing *fdpassing_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void fdpassing_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 4296s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 4296s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 4296s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 4296s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 4296s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 4296s # 4296s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 4296s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 4296s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 4296s # 4296s # struct _FDPassingSkeleton 4296s # { 4296s # /*< private >*/ 4296s # GDBusInterfaceSkeleton parent_instance; 4296s # FDPassingSkeletonPrivate *priv; 4296s # }; 4296s # 4296s # struct _FDPassingSkeletonClass 4296s # { 4296s # GDBusInterfaceSkeletonClass parent_class; 4296s # }; 4296s # 4296s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 4296s # #endif 4296s # 4296s # FDPassing *fdpassing_skeleton_new (void); 4296s # 4296s # 4296s # G_END_DECLS 4296s # 4296s # #endif /* __STDOUT__ */ 4296s # Error: 4296s # 4296s # /tmp/tmpdhq8ksud/tmp33htqqn3.xml: 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdhq8ksud/tmp33htqqn3.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifndef __STDOUT__ 4296s # #define __STDOUT__ 4296s # 4296s # #include 4296s # 4296s # G_BEGIN_DECLS 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # /* Declarations for FDPassing */ 4296s # 4296s # #define TYPE_FDPASSING (fdpassing_get_type ()) 4296s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 4296s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 4296s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 4296s # 4296s # struct _FDPassing; 4296s # typedef struct _FDPassing FDPassing; 4296s # typedef struct _FDPassingIface FDPassingIface; 4296s # 4296s # struct _FDPassingIface 4296s # { 4296s # GTypeInterface parent_iface; 4296s # 4296s # gboolean (*handle_hello_fd) ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GUnixFDList *fd_list, 4296s # const gchar *arg_greeting); 4296s # 4296s # gboolean (*handle_no_annotation) ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GVariant *arg_greeting, 4296s # const gchar *arg_greeting_locale); 4296s # 4296s # gboolean (*handle_no_annotation_nested) ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GVariant *arg_files); 4296s # 4296s # }; 4296s # 4296s # GType fdpassing_get_type (void) G_GNUC_CONST; 4296s # 4296s # GDBusInterfaceInfo *fdpassing_interface_info (void); 4296s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 4296s # 4296s # 4296s # /* D-Bus method call completion functions: */ 4296s # void fdpassing_complete_hello_fd ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GUnixFDList *fd_list, 4296s # const gchar *response); 4296s # 4296s # void fdpassing_complete_no_annotation ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GVariant *response, 4296s # const gchar *response_locale); 4296s # 4296s # void fdpassing_complete_no_annotation_nested ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation); 4296s # 4296s # 4296s # 4296s # /* D-Bus method calls: */ 4296s # void fdpassing_call_hello_fd ( 4296s # FDPassing *proxy, 4296s # const gchar *arg_greeting, 4296s # GUnixFDList *fd_list, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean fdpassing_call_hello_fd_finish ( 4296s # FDPassing *proxy, 4296s # gchar **out_response, 4296s # GUnixFDList **out_fd_list, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean fdpassing_call_hello_fd_sync ( 4296s # FDPassing *proxy, 4296s # const gchar *arg_greeting, 4296s # GUnixFDList *fd_list, 4296s # gchar **out_response, 4296s # GUnixFDList **out_fd_list, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void fdpassing_call_no_annotation ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_greeting, 4296s # const gchar *arg_greeting_locale, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean fdpassing_call_no_annotation_finish ( 4296s # FDPassing *proxy, 4296s # GVariant **out_response, 4296s # gchar **out_response_locale, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean fdpassing_call_no_annotation_sync ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_greeting, 4296s # const gchar *arg_greeting_locale, 4296s # GVariant **out_response, 4296s # gchar **out_response_locale, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void fdpassing_call_no_annotation_nested ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_files, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean fdpassing_call_no_annotation_nested_finish ( 4296s # FDPassing *proxy, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean fdpassing_call_no_annotation_nested_sync ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_files, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 4296s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 4296s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 4296s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 4296s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 4296s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 4296s # 4296s # typedef struct _FDPassingProxy FDPassingProxy; 4296s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 4296s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 4296s # 4296s # struct _FDPassingProxy 4296s # { 4296s # /*< private >*/ 4296s # GDBusProxy parent_instance; 4296s # FDPassingProxyPrivate *priv; 4296s # }; 4296s # 4296s # struct _FDPassingProxyClass 4296s # { 4296s # GDBusProxyClass parent_class; 4296s # }; 4296s # 4296s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 4296s # #endif 4296s # 4296s # void fdpassing_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # FDPassing *fdpassing_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # FDPassing *fdpassing_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void fdpassing_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 4296s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 4296s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 4296s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 4296s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 4296s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 4296s # 4296s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 4296s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 4296s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 4296s # 4296s # struct _FDPassingSkeleton 4296s # { 4296s # /*< private >*/ 4296s # GDBusInterfaceSkeleton parent_instance; 4296s # FDPassingSkeletonPrivate *priv; 4296s # }; 4296s # 4296s # struct _FDPassingSkeletonClass 4296s # { 4296s # GDBusInterfaceSkeletonClass parent_class; 4296s # }; 4296s # 4296s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 4296s # #endif 4296s # 4296s # FDPassing *fdpassing_skeleton_new (void); 4296s # 4296s # 4296s # G_END_DECLS 4296s # 4296s # #endif /* __STDOUT__ */ 4296s # Error: 4296s # 4296s # /tmp/tmpdhq8ksud/tmpqafnakmr.xml: 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # 4296s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpdhq8ksud/tmpqafnakmr.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 4296s # Return code: 0 4296s # Output: 4296s # /* 4296s # * This file is generated by gdbus-codegen, do not modify it. 4296s # * 4296s # * The license of this code is the same as for the D-Bus interface description 4296s # * it was derived from. Note that it links to GLib, so must comply with the 4296s # * LGPL linking clauses. 4296s # */ 4296s # 4296s # #ifndef __STDOUT__ 4296s # #define __STDOUT__ 4296s # 4296s # #include 4296s # 4296s # G_BEGIN_DECLS 4296s # 4296s # 4296s # /* ------------------------------------------------------------------------ */ 4296s # /* Declarations for FDPassing */ 4296s # 4296s # #define TYPE_FDPASSING (fdpassing_get_type ()) 4296s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 4296s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 4296s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 4296s # 4296s # struct _FDPassing; 4296s # typedef struct _FDPassing FDPassing; 4296s # typedef struct _FDPassingIface FDPassingIface; 4296s # 4296s # struct _FDPassingIface 4296s # { 4296s # GTypeInterface parent_iface; 4296s # 4296s # gboolean (*handle_hello_fd) ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GUnixFDList *fd_list, 4296s # const gchar *arg_greeting); 4296s # 4296s # gboolean (*handle_no_annotation) ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GUnixFDList *fd_list, 4296s # GVariant *arg_greeting, 4296s # const gchar *arg_greeting_locale); 4296s # 4296s # gboolean (*handle_no_annotation_nested) ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GUnixFDList *fd_list, 4296s # GVariant *arg_files); 4296s # 4296s # }; 4296s # 4296s # GType fdpassing_get_type (void) G_GNUC_CONST; 4296s # 4296s # GDBusInterfaceInfo *fdpassing_interface_info (void); 4296s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 4296s # 4296s # 4296s # /* D-Bus method call completion functions: */ 4296s # void fdpassing_complete_hello_fd ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GUnixFDList *fd_list, 4296s # const gchar *response); 4296s # 4296s # void fdpassing_complete_no_annotation ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GUnixFDList *fd_list, 4296s # GVariant *response, 4296s # const gchar *response_locale); 4296s # 4296s # void fdpassing_complete_no_annotation_nested ( 4296s # FDPassing *object, 4296s # GDBusMethodInvocation *invocation, 4296s # GUnixFDList *fd_list); 4296s # 4296s # 4296s # 4296s # /* D-Bus method calls: */ 4296s # void fdpassing_call_hello_fd ( 4296s # FDPassing *proxy, 4296s # const gchar *arg_greeting, 4296s # GDBusCallFlags call_flags, 4296s # gint timeout_msec, 4296s # GUnixFDList *fd_list, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean fdpassing_call_hello_fd_finish ( 4296s # FDPassing *proxy, 4296s # gchar **out_response, 4296s # GUnixFDList **out_fd_list, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean fdpassing_call_hello_fd_sync ( 4296s # FDPassing *proxy, 4296s # const gchar *arg_greeting, 4296s # GDBusCallFlags call_flags, 4296s # gint timeout_msec, 4296s # GUnixFDList *fd_list, 4296s # gchar **out_response, 4296s # GUnixFDList **out_fd_list, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void fdpassing_call_no_annotation ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_greeting, 4296s # const gchar *arg_greeting_locale, 4296s # GDBusCallFlags call_flags, 4296s # gint timeout_msec, 4296s # GUnixFDList *fd_list, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean fdpassing_call_no_annotation_finish ( 4296s # FDPassing *proxy, 4296s # GVariant **out_response, 4296s # gchar **out_response_locale, 4296s # GUnixFDList **out_fd_list, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean fdpassing_call_no_annotation_sync ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_greeting, 4296s # const gchar *arg_greeting_locale, 4296s # GDBusCallFlags call_flags, 4296s # gint timeout_msec, 4296s # GUnixFDList *fd_list, 4296s # GVariant **out_response, 4296s # gchar **out_response_locale, 4296s # GUnixFDList **out_fd_list, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void fdpassing_call_no_annotation_nested ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_files, 4296s # GDBusCallFlags call_flags, 4296s # gint timeout_msec, 4296s # GUnixFDList *fd_list, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # 4296s # gboolean fdpassing_call_no_annotation_nested_finish ( 4296s # FDPassing *proxy, 4296s # GUnixFDList **out_fd_list, 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # 4296s # gboolean fdpassing_call_no_annotation_nested_sync ( 4296s # FDPassing *proxy, 4296s # GVariant *arg_files, 4296s # GDBusCallFlags call_flags, 4296s # gint timeout_msec, 4296s # GUnixFDList *fd_list, 4296s # GUnixFDList **out_fd_list, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 4296s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 4296s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 4296s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 4296s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 4296s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 4296s # 4296s # typedef struct _FDPassingProxy FDPassingProxy; 4296s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 4296s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 4296s # 4296s # struct _FDPassingProxy 4296s # { 4296s # /*< private >*/ 4296s # GDBusProxy parent_instance; 4296s # FDPassingProxyPrivate *priv; 4296s # }; 4296s # 4296s # struct _FDPassingProxyClass 4296s # { 4296s # GDBusProxyClass parent_class; 4296s # }; 4296s # 4296s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 4296s # #endif 4296s # 4296s # void fdpassing_proxy_new ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # FDPassing *fdpassing_proxy_new_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # FDPassing *fdpassing_proxy_new_sync ( 4296s # GDBusConnection *connection, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # void fdpassing_proxy_new_for_bus ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GAsyncReadyCallback callback, 4296s # gpointer user_data); 4296s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 4296s # GAsyncResult *res, 4296s # GError **error); 4296s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 4296s # GBusType bus_type, 4296s # GDBusProxyFlags flags, 4296s # const gchar *name, 4296s # const gchar *object_path, 4296s # GCancellable *cancellable, 4296s # GError **error); 4296s # 4296s # 4296s # /* ---- */ 4296s # 4296s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 4296s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 4296s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 4296s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 4296s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 4296s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 4296s # 4296s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 4296s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 4296s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 4296s # 4296s # struct _FDPassingSkeleton 4296s # { 4296s # /*< private >*/ 4296s # GDBusInterfaceSkeleton parent_instance; 4296s # FDPassingSkeletonPrivate *priv; 4296s # }; 4296s # 4296s # struct _FDPassingSkeletonClass 4296s # { 4296s # GDBusInterfaceSkeletonClass parent_class; 4296s # }; 4296s # 4296s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 4296s # 4296s # #if GLIB_CHECK_VERSION(2, 44, 0) 4296s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 4296s # #endif 4296s # 4296s # FDPassing *fdpassing_skeleton_new (void); 4296s # 4296s # 4296s # G_END_DECLS 4296s # 4296s # #endif /* __STDOUT__ */ 4296s # Error: 4296s 1..39 4296s TAP version 14 4296s # random seed: R02Sd7654124fdc727298f3e4b9fcbd1e068 4296s 1..28 4296s # Start of base64 tests 4296s ok 1 /base64/encode 4296s ok 2 /base64/decode 4296s ok 3 /base64/decode-inplace 4296s ok 4 /base64/encode-decode 4296s # Start of full tests 4296s ok 5 /base64/full/1 4296s ok 6 /base64/full/2 4296s ok 7 /base64/full/3 4296s ok 8 /base64/full/4 4296s # End of full tests 4296s # Start of encode tests 4296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 4296s ok 9 /base64/encode/empty 4296s # Start of incremental tests 4296s # Start of small-block tests 4296s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 4296s ok 10 /base64/encode/incremental/small-block/1 4296s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 4296s ok 11 /base64/encode/incremental/small-block/2 4296s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 4296s ok 12 /base64/encode/incremental/small-block/3 4296s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 4296s ok 13 /base64/encode/incremental/small-block/4 4296s # End of small-block tests 4296s # End of incremental tests 4296s # End of encode tests 4296s # Start of incremental tests 4296s # Start of nobreak tests 4296s ok 14 /base64/incremental/nobreak/1 4296s ok 15 /base64/incremental/nobreak/2 4296s ok 16 /base64/incremental/nobreak/3 4296s ok 17 /base64/incremental/nobreak/4-a 4296s ok 18 /base64/incremental/nobreak/4-b 4296s ok 19 /base64/incremental/nobreak/4-c 4296s # End of nobreak tests 4296s # Start of break tests 4296s ok 20 /base64/incremental/break/1 4296s ok 21 /base64/incremental/break/2 4296s ok 22 /base64/incremental/break/3 4296s # End of break tests 4296s # Start of smallblock tests 4296s ok 23 /base64/incremental/smallblock/1 4296s ok 24 /base64/incremental/smallblock/2 4296s ok 25 /base64/incremental/smallblock/3 4296s ok 26 /base64/incremental/smallblock/4 4296s # End of smallblock tests 4296s # End of incremental tests 4296s # Start of decode tests 4296s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 4296s ok 27 /base64/decode/empty 4296s # End of decode tests 4296s # Start of encode-decode tests 4296s # Vector 0: 4296s # Vector 1: f 4296s # Vector 2: fo 4296s # Vector 3: foo 4296s # Vector 4: foob 4296s # Vector 5: fooba 4296s # Vector 6: foobar 4296s ok 28 /base64/encode-decode/rfc4648 4296s # End of encode-decode tests 4296s # End of base64 tests 4296s TAP version 14 4296s # random seed: R02S74b355db81ce17a7b44e98ab8a1faa2a 4296s 1..5 4296s # Start of async-splice tests 4296s ok 1 /async-splice/copy-chunks 4296s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4296s ok 2 /async-splice/copy-chunks-threaded-input 4296s ok 3 /async-splice/copy-chunks-threaded-output 4296s ok 4 /async-splice/copy-chunks-threaded 4296s ok 5 /async-splice/cancelled 4296s # End of async-splice tests 4296s TAP version 14 4296s # random seed: R02S428f56f474581a373ac569235be6a3fa 4296s 1..2 4296s # Start of GObject tests 4296s ok 1 /GObject/threaded-dynamic-ref-unref-init 4296s ok 2 /GObject/dynamic-interface-properties 4296s # End of GObject tests 4296s TAP version 14 4296s # random seed: R02S6b57a3184e4863bf3cad714e562d91ef 4296s 1..1 4296s # Start of gobject tests 4296s # Start of refcount tests 4296s # init 0xabae90f9cd80 4296s # 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # . 4296s # dispose 0xabae90f9cd80! 4296s # 4296s ok 1 /gobject/refcount/object-advanced 4296s # slow test /gobject/refcount/object-advanced executed in 6.67 secs 4296s # End of refcount tests 4296s # End of gobject tests 4296s TAP version 14 4296s # random seed: R02Sac6294bdc02187fe0863d316f4c626cf 4296s 1..42 4296s # Start of tls-interaction tests 4296s # Start of ask-password tests 4296s # Start of invoke-with-loop tests 4296s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 4296s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 4296s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 4296s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 4296s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 4296s # End of invoke-with-loop tests 4296s # Start of invoke-without-loop tests 4296s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 4296s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 4296s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 4296s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 4296s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 4296s # End of invoke-without-loop tests 4296s # Start of invoke-in-loop tests 4296s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 4296s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 4296s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 4296s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 4296s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 4296s # End of invoke-in-loop tests 4296s # Start of sync tests 4296s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 4296s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 4296s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 4296s # End of sync tests 4296s # Start of async tests 4296s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 4296s ok 20 /tls-interaction/ask-password/async/async-implementation-success 4296s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 4296s # End of async tests 4296s # End of ask-password tests 4296s # Start of request-certificate tests 4296s # Start of invoke-with-loop tests 4296s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 4296s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 4296s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 4296s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 4296s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 4296s # End of invoke-with-loop tests 4296s # Start of invoke-without-loop tests 4296s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 4296s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 4296s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 4296s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 4296s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 4296s # End of invoke-without-loop tests 4296s # Start of invoke-in-loop tests 4296s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 4296s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 4296s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 4296s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 4296s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 4296s # End of invoke-in-loop tests 4296s # Start of sync tests 4296s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 4296s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 4296s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 4296s # End of sync tests 4296s # Start of async tests 4296s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 4296s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 4296s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 4296s # End of async tests 4296s # End of request-certificate tests 4296s # End of tls-interaction tests 4296s TAP version 14 4296s # random seed: R02Sbb4cf7442d81ca28c50ec8d311352ed9 4296s 1..1 4296s # Start of gobject tests 4296s # Start of refcount tests 4296s # init 0xb367c653d4b0 4296s # 4296s # init 0xb367c6535580 4296s # 4298s # dispose 0xb367c653d4b0! 4298s # 4298s # dispose 0xb367c6535580! 4298s # 4298s ok 1 /gobject/refcount/signals 4298s # slow test /gobject/refcount/signals executed in 5.00 secs 4298s # End of refcount tests 4298s # End of gobject tests 4298s ok - glib/signals-refcount2.test 4298s # Running test: glib/signals.test 4298s TAP version 14 4298s # random seed: R02Sf83d0e69080e978c007348887d7c99fd 4298s 1..31 4298s # Start of gobject tests 4298s # Start of signals tests 4298s ok 1 /gobject/signals/all-types 4298s ok 2 /gobject/signals/variant 4298s ok 3 /gobject/signals/destroy-target-object 4298s ok 4 /gobject/signals/generic-marshaller-1 4298s ok 5 /gobject/signals/generic-marshaller-2 4298s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 4298s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 4298s ok 8 /gobject/signals/generic-marshaller-int-return 4298s ok 9 /gobject/signals/generic-marshaller-uint-return 4298s ok 10 /gobject/signals/generic-marshaller-interface-return 4298s ok 11 /gobject/signals/custom-marshaller 4298s ok 12 /gobject/signals/connect 4298s ok 13 /gobject/signals/emission-hook 4298s ok 14 /gobject/signals/emitv 4298s ok 15 /gobject/signals/accumulator 4298s # Signal: accumulator-class-first 4298s # Signal: accumulator-class-last 4298s # Signal: accumulator-class-cleanup 4298s # Signal: accumulator-class-first-last 4298s # Signal: accumulator-class-first-last-cleanup 4298s # Signal: accumulator-class-last-cleanup 4298s ok 16 /gobject/signals/accumulator-class 4298s ok 17 /gobject/signals/introspection 4298s ok 18 /gobject/signals/block-handler 4298s ok 19 /gobject/signals/stop-emission 4298s ok 20 /gobject/signals/invocation-hint 4298s ok 21 /gobject/signals/test-disconnection-wrong-object 4298s ok 22 /gobject/signals/clear-signal-handler 4298s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 4298s ok 23 /gobject/signals/lookup 4298s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 4298s ok 24 /gobject/signals/parse-name 4298s ok 25 /gobject/signals/is-valid-name 4298s ok 26 /gobject/signals/weak-ref-disconnect 4298s # Start of lookup tests 4298s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 4298s ok 27 /gobject/signals/lookup/invalid 4298s # End of lookup tests 4298s # Start of parse-name tests 4298s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 4298s # Parser input: 4298s # Parser input: 7zip 4298s # Parser input: invalid:signal 4298s # Parser input: simple-detailed:: 4298s # Parser input: simple-detailed: 4298s # Parser input: : 4298s # Parser input: :: 4298s # Parser input: :valid-detail 4298s # Parser input: ::valid-detail 4298s ok 28 /gobject/signals/parse-name/invalid 4298s # End of parse-name tests 4298s # Start of invalid-name tests 4298s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 4298s ok 29 /gobject/signals/invalid-name/colon 4298s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 4298s ok 30 /gobject/signals/invalid-name/first-char 4298s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 4298s ok 31 /gobject/signals/invalid-name/empty 4298s # End of invalid-name tests 4298s # End of signals tests 4298s # End of gobject tests 4298s ok - glib/signals.test 4298s # Running test: glib/gdbus-connection-flush.test 4298s ok - glib/gdbus-connection-flush.test 4298s # Running test: glib/onceinit.test 4298s TAP version 14 4298s # random seed: R02Sa0f9872371d36597cdfe86a43191e474 4298s 1..2 4298s # Start of gdbus tests 4298s # Start of connection tests 4298s # Start of flush tests 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/busy/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/busy/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/busy/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/busy/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/busy/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/busy/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/busy/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/busy/.dirs/runtime 4298s ok 1 /gdbus/connection/flush/busy 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/idle/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/idle/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/idle/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/idle/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/idle/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/idle/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/idle/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_QRXAK3/gdbus/connection/flush/idle/.dirs/runtime 4298s ok 2 /gdbus/connection/flush/idle 4298s # End of flush tests 4298s # End of connection tests 4298s # End of gdbus tests 4298s TAP version 14 4298s # random seed: R02S29d10cb8d13df9de23d86ee35b552f71 4298s 1..1 4298s # Start of thread tests 4298s ok 1 /thread/onceinit 4298s # End of thread tests 4298s ok - glib/onceinit.test 4298s # Running test: glib/gdbus-server-auth.test 4298s TAP version 14 4298s # random seed: R02Sd8db96af49c005374277a0d66427bf4e 4298s 1..9 4298s # Start of gdbus tests 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/.dirs/runtime 4298s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-3Y69J3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 4298s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-3Y69J3/dbus-W1T4NQoH 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39872 4298s ok 1 /gdbus/server-auth 4298s # Start of server-auth tests 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/abstract/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/abstract/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/abstract/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/abstract/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/abstract/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/abstract/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/abstract/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/abstract/.dirs/runtime 4298s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-81FDK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 4298s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-81FDK3/dbus-OQ6gddni 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39872 4298s ok 2 /gdbus/server-auth/abstract 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/tcp/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/tcp/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/tcp/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/tcp/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/tcp/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/tcp/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/tcp/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/tcp/.dirs/runtime 4298s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 4298s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/.dirs/runtime 4298s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-U1VDK3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 4298s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-U1VDK3/dbus-GVmmU2SO 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39872 4298s ok 4 /gdbus/server-auth/anonymous 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/.dirs/runtime 4298s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-NYNEK3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 4298s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-NYNEK3/dbus-9DtKuTJh 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39872 4298s ok 5 /gdbus/server-auth/external 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/.dirs/runtime 4298s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-O5EEK3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 4298s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 4298s # Start of anonymous tests 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/tcp/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/tcp/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/tcp/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/tcp/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/tcp/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 4298s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 4298s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 4298s # End of anonymous tests 4298s # Start of external tests 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/require-same-user/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/require-same-user/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/require-same-user/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/require-same-user/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/require-same-user/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/external/require-same-user/.dirs/runtime 4298s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-3FEEK3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 4298s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_8Q69J3/gdbus-server-auth-3FEEK3/dbus-cbyAoL0l 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39872 4298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4298s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4298s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39872,uid=1000,gid=1000 4298s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39872 4298s ok 8 /gdbus/server-auth/external/require-same-user 4298s # End of external tests 4298s # Start of sha1 tests 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/tcp/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/tcp/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/tcp/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/tcp/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/tcp/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_8Q69J3/gdbus/server-auth/sha1/tcp/.dirs/runtime 4298s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 4298s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 4298s # End of sha1 tests 4298s # End of server-auth tests 4298s # End of gdbus tests 4298s TAP version 14 4298s # random seed: R02S40a6a8dec2be6c1f58ad849b1bf7825e 4298s 1..1 4298s # Start of portal-support tests 4298s # Start of flatpak tests 4298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/home 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/cache 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/system-config2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/config 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/system-data2 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/data 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/state 4298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/runtime 4298s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_1EXBK3/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 4298s ok - glib/gdbus-server-auth.test 4298s # Running test: glib/portal-support-flatpak-gsettings-only.test 4298s ok 1 /portal-support/flatpak/gsettings 4298s # End of flatpak tests 4298s # End of portal-support tests 4298s ok - glib/portal-support-flatpak-gsettings-only.test 4298s # Running test: glib/bytes.test 4298s ok - glib/bytes.test 4298s # Running test: glib/accumulator.test 4298s TAP version 14 4298s # random seed: R02Se9f9b18d22350febd61179c13135ded7 4298s 1..21 4298s # Start of bytes tests 4298s ok 1 /bytes/new 4298s ok 2 /bytes/new-take 4298s ok 3 /bytes/new-static 4298s ok 4 /bytes/new-with-free-func 4298s ok 5 /bytes/new-from-bytes 4298s ok 6 /bytes/new-from-bytes-slice 4298s ok 7 /bytes/new-from-bytes-shared-ref 4298s ok 8 /bytes/hash 4298s ok 9 /bytes/equal 4298s ok 10 /bytes/compare 4298s ok 11 /bytes/null 4298s ok 12 /bytes/get-region 4298s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 4298s ok 13 /bytes/unref-null 4298s # Start of to-data tests 4298s ok 14 /bytes/to-data/transferred 4298s ok 15 /bytes/to-data/two-refs 4298s ok 16 /bytes/to-data/non-malloc 4298s ok 17 /bytes/to-data/different-free-func 4298s # End of to-data tests 4298s # Start of to-array tests 4298s ok 18 /bytes/to-array/transferred 4298s ok 19 /bytes/to-array/two-refs 4298s ok 20 /bytes/to-array/non-malloc 4298s # Start of transferred tests 4298s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 4298s ok 21 /bytes/to-array/transferred/oversize 4298s # End of transferred tests 4298s # End of to-array tests 4298s # End of bytes tests 4298s TAP version 14 4298s # random seed: R02See8f4d261bf315397e139c6a23f1b88a 4298s 1..1 4298s # Start of gobject tests 4298s ok 1 /gobject/accumulator 4298s # End of gobject tests 4298s TAP version 14 4298s # random seed: R02S8bc1a61f619a0fb1cbf90c616feba8e9 4298s 1..1 4298s # Start of assert tests 4298s ok - glib/accumulator.test 4298s # Running test: glib/testing.test 4298s ok 1 /assert/finalize_object 4298s # Start of finalize_object tests 4298s # Start of subprocess tests 4298s # End of subprocess tests 4298s # End of finalize_object tests 4298s # End of assert tests 4298s ok - glib/testing.test 4298s # Running test: glib/slice.test 4298s TAP version 14 4298s # random seed: R02S16c84a50d557f12fd8d7dc704efd2980 4298s 1..3 4298s # Start of slice tests 4298s ok 1 /slice/copy 4298s ok 2 /slice/chain 4298s ok 3 /slice/allocate 4298s # End of slice tests 4299s TAP version 14 4299s # random seed: R02Sd4723f65a9681ac4aaf1ceb0abeb6fde 4299s 1..41 4299s # Start of utils tests 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/language-names/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/language-names/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/language-names/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/language-names/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/language-names/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/language-names/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/language-names/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/language-names/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/language-names/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/language-names/.dirs/runtime 4299s ok 1 /utils/language-names 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/locale-variants/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/locale-variants/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/locale-variants/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/locale-variants/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/locale-variants/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/locale-variants/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/locale-variants/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/locale-variants/.dirs/runtime 4299s # Testing locale ‘en’ 4299s # Testing locale ‘sr@latin’ 4299s # Testing locale ‘fr_BE’ 4299s # Testing locale ‘sr_SR@latin’ 4299s # Testing locale ‘sr_SR@latin.UTF-8’ 4299s # Testing locale ‘sr@latin_invalid’ 4299s # Testing locale ‘sr.UTF-8@latin’ 4299s # Testing locale ‘sr.UTF-8_latin’ 4299s # Testing locale ‘sr.UTF-8@latin_invalid’ 4299s ok 2 /utils/locale-variants 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/version/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/version/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/version/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/version/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/version/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/version/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/version/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/version/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/version/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/version/.dirs/runtime 4299s ok 3 /utils/version 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/appname/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/appname/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/appname/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/appname/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/appname/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/appname/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/appname/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/appname/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/appname/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/appname/.dirs/runtime 4299s ok 4 /utils/appname 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/prgname-thread-safety/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/prgname-thread-safety/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/prgname-thread-safety/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/prgname-thread-safety/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/prgname-thread-safety/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/prgname-thread-safety/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/prgname-thread-safety/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/prgname-thread-safety/.dirs/runtime 4299s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 4299s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 4299s ok 5 /utils/prgname-thread-safety 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/tmpdir/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/tmpdir/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/tmpdir/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/tmpdir/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/tmpdir/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/tmpdir/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/tmpdir/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/tmpdir/.dirs/runtime 4299s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 4299s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 4299s Unable to clean up temporary directory /tmp/test_utils_6YT8J3/utils/tmpdir: No such file or directory 4299s ok 6 /utils/tmpdir 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/basic_bits/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/basic_bits/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/basic_bits/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/basic_bits/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/basic_bits/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/basic_bits/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/basic_bits/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/basic_bits/.dirs/runtime 4299s ok - glib/slice.test 4299s # Running test: glib/utils.test 4299s ok 7 /utils/basic_bits 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/bits/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/bits/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/bits/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/bits/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/bits/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/bits/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/bits/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/bits/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/bits/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/bits/.dirs/runtime 4299s ok 8 /utils/bits 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/swap/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/swap/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/swap/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/swap/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/swap/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/swap/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/swap/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/swap/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/swap/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/swap/.dirs/runtime 4299s ok 9 /utils/swap 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/find-program/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/find-program/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/find-program/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/find-program/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/find-program/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/find-program/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/find-program/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/find-program/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/find-program/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/find-program/.dirs/runtime 4299s ok 10 /utils/find-program 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/find-program-for-path/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/find-program-for-path/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/find-program-for-path/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/find-program-for-path/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/find-program-for-path/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/find-program-for-path/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/find-program-for-path/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/find-program-for-path/.dirs/runtime 4299s ok 11 /utils/find-program-for-path 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/debug/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/debug/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/debug/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/debug/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/debug/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/debug/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/debug/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/debug/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/debug/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/debug/.dirs/runtime 4299s Unable to clean up temporary directory /tmp/test_utils_6YT8J3/utils/debug: No such file or directory 4299s ok 12 /utils/debug 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/codeset/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/codeset/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/codeset/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/codeset/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/codeset/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/codeset/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/codeset/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/codeset/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/codeset/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/codeset/.dirs/runtime 4299s ok 13 /utils/codeset 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/codeset2/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/codeset2/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/codeset2/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/codeset2/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/codeset2/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/codeset2/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/codeset2/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/codeset2/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/codeset2/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/codeset2/.dirs/runtime 4299s Unable to clean up temporary directory /tmp/test_utils_6YT8J3/utils/codeset2: No such file or directory 4299s ok 14 /utils/codeset2 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/console-charset/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/console-charset/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/console-charset/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/console-charset/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/console-charset/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/console-charset/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/console-charset/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/console-charset/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/console-charset/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/console-charset/.dirs/runtime 4299s ok 15 /utils/console-charset 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/gettext/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/gettext/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/gettext/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/gettext/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/gettext/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/gettext/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/gettext/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/gettext/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/gettext/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/gettext/.dirs/runtime 4299s ok 16 /utils/gettext 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/username/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/username/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/username/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/username/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/username/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/username/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/username/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/username/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/username/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/username/.dirs/runtime 4299s ok 17 /utils/username 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/realname/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/realname/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/realname/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/realname/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/realname/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/realname/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/realname/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/realname/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/realname/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/realname/.dirs/runtime 4299s ok 18 /utils/realname 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/hostname/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/hostname/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/hostname/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/hostname/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/hostname/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/hostname/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/hostname/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/hostname/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/hostname/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/hostname/.dirs/runtime 4299s ok 19 /utils/hostname 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/os-info/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/os-info/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/os-info/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/os-info/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/os-info/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/os-info/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/os-info/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/os-info/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/os-info/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/os-info/.dirs/runtime 4299s # NAME: Ubuntu 4299s ok 20 /utils/os-info 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/clear-pointer/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/clear-pointer/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/clear-pointer/.dirs/runtime 4299s ok 21 /utils/clear-pointer 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer-cast/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer-cast/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/clear-pointer-cast/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer-cast/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/clear-pointer-cast/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer-cast/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer-cast/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/clear-pointer-cast/.dirs/runtime 4299s ok 22 /utils/clear-pointer-cast 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/take-pointer/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/take-pointer/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/take-pointer/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/take-pointer/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/take-pointer/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/take-pointer/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/take-pointer/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/take-pointer/.dirs/runtime 4299s ok 23 /utils/take-pointer 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/clear-source/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/clear-source/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/clear-source/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/clear-source/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/clear-source/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/clear-source/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/clear-source/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/clear-source/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/clear-source/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/clear-source/.dirs/runtime 4299s ok 24 /utils/clear-source 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/misc-mem/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/misc-mem/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/misc-mem/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/misc-mem/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/misc-mem/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/misc-mem/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/misc-mem/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/misc-mem/.dirs/runtime 4299s ok 25 /utils/misc-mem 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/aligned-mem/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/aligned-mem/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/aligned-mem/.dirs/runtime 4299s # /utils/aligned-mem summary: Aligned memory allocator 4299s # Alignment must not be zero 4299s # Alignment must be a power of two 4299s # Alignment must be a multiple of sizeof(void*) 4299s ok 26 /utils/aligned-mem 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/free-sized/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/free-sized/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/free-sized/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/free-sized/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/free-sized/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/free-sized/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/free-sized/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/free-sized/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/free-sized/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/free-sized/.dirs/runtime 4299s # /utils/free-sized summary: Check that g_free_sized() works 4299s ok 27 /utils/free-sized 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/nullify/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/nullify/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/nullify/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/nullify/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/nullify/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/nullify/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/nullify/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/nullify/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/nullify/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/nullify/.dirs/runtime 4299s ok 28 /utils/nullify 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/atexit/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/atexit/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/atexit/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/atexit/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/atexit/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/atexit/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/atexit/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/atexit/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/atexit/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/atexit/.dirs/runtime 4299s Unable to clean up temporary directory /tmp/test_utils_6YT8J3/utils/atexit: No such file or directory 4299s ok 29 /utils/atexit 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/check-setuid/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/check-setuid/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/check-setuid/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/check-setuid/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/check-setuid/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/check-setuid/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/check-setuid/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/check-setuid/.dirs/runtime 4299s ok 30 /utils/check-setuid 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/int-limits/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/int-limits/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/int-limits/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/int-limits/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/int-limits/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/int-limits/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/int-limits/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/int-limits/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/int-limits/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/int-limits/.dirs/runtime 4299s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 4299s ok 31 /utils/int-limits 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/clear-list/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/clear-list/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/clear-list/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/clear-list/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/clear-list/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/clear-list/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/clear-list/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/clear-list/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/clear-list/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/clear-list/.dirs/runtime 4299s ok 32 /utils/clear-list 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/clear-slist/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/clear-slist/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/clear-slist/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/clear-slist/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/clear-slist/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/clear-slist/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/clear-slist/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/clear-slist/.dirs/runtime 4299s ok 33 /utils/clear-slist 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/steal-handle-id/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/steal-handle-id/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/steal-handle-id/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/steal-handle-id/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/steal-handle-id/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/steal-handle-id/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/steal-handle-id/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/steal-handle-id/.dirs/runtime 4299s ok 34 /utils/steal-handle-id 4299s # Start of user-special-dirs tests 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/desktop/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/desktop/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/user-special-dirs/desktop/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/desktop/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/user-special-dirs/desktop/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/desktop/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/desktop/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/user-special-dirs/desktop/.dirs/runtime 4299s ok 35 /utils/user-special-dirs/desktop 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked/.dirs/runtime 4299s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 4299s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 4299s Unable to clean up temporary directory /tmp/test_utils_6YT8J3/utils/user-special-dirs/load-unlocked: No such file or directory 4299s ok 36 /utils/user-special-dirs/load-unlocked 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks/.dirs/runtime 4299s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 4299s ok - glib/utils.test 4299s Unable to clean up temporary directory /tmp/test_utils_6YT8J3/utils/user-special-dirs/reload-leaks: No such file or directory 4299s ok 37 /utils/user-special-dirs/reload-leaks 4299s # End of user-special-dirs tests 4299s # Start of clear-pointer tests 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer/side-effects/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer/side-effects/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/clear-pointer/side-effects/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer/side-effects/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/clear-pointer/side-effects/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer/side-effects/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/clear-pointer/side-effects/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/clear-pointer/side-effects/.dirs/runtime 4299s ok 38 /utils/clear-pointer/side-effects 4299s # End of clear-pointer tests 4299s # Start of aligned-mem tests 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/alignment/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/alignment/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/aligned-mem/alignment/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/alignment/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/aligned-mem/alignment/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/alignment/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/alignment/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/aligned-mem/alignment/.dirs/runtime 4299s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 4299s ok 39 /utils/aligned-mem/alignment 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/zeroed/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/zeroed/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/aligned-mem/zeroed/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/zeroed/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/aligned-mem/zeroed/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/zeroed/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/zeroed/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/aligned-mem/zeroed/.dirs/runtime 4299s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 4299s ok 40 /utils/aligned-mem/zeroed 4299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/free-sized/.dirs/home 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/free-sized/.dirs/cache 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_6YT8J3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils_6YT8J3/utils/aligned-mem/free-sized/.dirs/system-config2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/free-sized/.dirs/config 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_6YT8J3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils_6YT8J3/utils/aligned-mem/free-sized/.dirs/system-data2 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/free-sized/.dirs/data 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_6YT8J3/utils/aligned-mem/free-sized/.dirs/state 4299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_6YT8J3/utils/aligned-mem/free-sized/.dirs/runtime 4299s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 4299s ok 41 /utils/aligned-mem/free-sized 4299s # Start of subprocess tests 4299s # End of subprocess tests 4299s # End of aligned-mem tests 4299s # End of utils tests 4299s # Running test: glib/ifaceproperties.test 4299s ok - glib/ifaceproperties.test 4299s TAP version 14 4299s # random seed: R02S6b5d9e54aef24bdf8d16938cb30fe986 4299s 1..7 4299s # Start of interface tests 4299s # Start of properties tests 4299s ok 1 /interface/properties/set 4299s ok 2 /interface/properties/notify 4299s ok 3 /interface/properties/find-overridden 4299s ok 4 /interface/properties/list-overridden 4299s ok 5 /interface/properties/find-interface 4299s ok 6 /interface/properties/list-interface 4299s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 4299s ok 7 /interface/properties/not-overridden 4299s # End of properties tests 4299s # End of interface tests 4299s # Running test: glib/thread.test 4299s TAP version 14 4299s # random seed: R02S063c64a7fd8a0526f0dc9595067abf15 4299s 1..7 4299s # Start of thread tests 4299s ok 1 /thread/thread1 4299s ok 2 /thread/thread2 4299s ok 3 /thread/thread3 4299s ok 4 /thread/thread4 4299s ok 5 /thread/thread5 4299s ok 6 /thread/thread6 4299s ok 7 /thread/thread7 4299s # End of thread tests 4299s TAP version 14 4299s # random seed: R02Scfc521edfe0f397ce03a6168769f2136 4299s 1..8 4299s # Start of rcbox tests 4299s ok 1 /rcbox/new 4299s # global_point = 0xab3db88df720 4299s ok 2 /rcbox/release-full 4299s # global_point_a = 0xab3db88df720 4299s # global_point_b = 0xab3db88df7f0 4299s ok 3 /rcbox/dup 4299s ok 4 /rcbox/alignment 4299s # End of rcbox tests 4299s # Start of atomic-rcbox tests 4299s ok 5 /atomic-rcbox/new 4299s # global_point = 0xab3db88df7f0 4299s ok 6 /atomic-rcbox/release-full 4299s # global_point_a = 0xab3db88df7f0 4299s # global_point_b = 0xab3db88df720 4299s ok 7 /atomic-rcbox/dup 4299s ok 8 /atomic-rcbox/alignment 4299s # End of atomic-rcbox tests 4299s ok - glib/thread.test 4299s # Running test: glib/rcbox.test 4299s ok - glib/rcbox.test 4299s # Running test: glib/types.test 4299s TAP version 14 4299s # random seed: R02Sa23858e754d75d7fc2e955f08f3b5c21 4299s 1..1 4299s # Start of types tests 4299s ok 1 /types/basic_types 4299s # End of types tests 4299s ok - glib/types.test 4299s # Running test: glib/atomic-c-11.test 4299s TAP version 14 4299s # random seed: R02S85d10cfbc41fdf30a5cd354580a30769 4299s 1..2 4299s # Start of atomic tests 4299s ok 1 /atomic/types 4299s ok - glib/atomic-c-11.test 4299s ok 2 /atomic/threaded 4299s # End of atomic tests 4299s # Running test: glib/signals-refcount1.test 4299s TAP version 14 4299s # random seed: R02Sc747e0c494ece19879e34330386e7747 4299s 1..1 4299s # Start of gobject tests 4299s # Start of refcount tests 4299s # init 0xaf96f1d134b0 4299s # 4299s # init 0xaf96f1d0b580 4299s # 4299s # Executing: glib/signals-refcount1.test 4304s ok - glib/signals-refcount1.test 4304s # dispose 0xaf96f1d134b0! 4304s # 4304s # dispose 0xaf96f1d0b580! 4304s # 4304s ok 1 /gobject/refcount/signals 4304s # slow test /gobject/refcount/signals executed in 5.00 secs 4304s # End of refcount tests 4304s # End of gobject tests 4304s # Running test: glib/cmph-bdz.test 4304s TAP version 14 4304s # random seed: R02S072d52aa8fb0cdb882487a92b6a10c96 4304s 1..2 4304s # Start of cmph-bdz tests 4304s ok - glib/cmph-bdz.test 4304s ok 1 /cmph-bdz/search 4304s ok 2 /cmph-bdz/search-packed 4304s # End of cmph-bdz tests 4304s # Running test: glib/overflow.test 4304s TAP version 14 4304s # random seed: R02Sc09c15916d3dec00648cd772e7403d55 4304s 1..6 4304s # Start of glib tests 4304s # Start of checked-math tests 4304s ok 1 /glib/checked-math/guint-add 4304s ok 2 /glib/checked-math/guint-mul 4304s ok 3 /glib/checked-math/guint64-add 4304s ok - glib/overflow.test 4304s # Running test: glib/properties-refcount4.test 4304s ok - glib/properties-refcount4.test 4304s # Running test: glib/signal-handler.test 4304s ok 4 /glib/checked-math/guint64-mul 4304s ok 5 /glib/checked-math/gsize-add 4304s ok 6 /glib/checked-math/gsize-mul 4304s # End of checked-math tests 4304s # End of glib tests 4304s TAP version 14 4304s # random seed: R02S210f812cc32b6fb9ac143e07336b95b2 4304s 1..1 4304s # Start of gobject tests 4304s # Start of refcount tests 4304s ok 1 /gobject/refcount/properties-4 4304s # End of refcount tests 4304s # End of gobject tests 4304s ok - glib/signal-handler.test 4304s # Running test: glib/strvbuilder.test 4304s TAP version 14 4304s # random seed: R02S1c5f588f2996e9431ebff5ba5439e1b6 4304s 1..7 4304s # Start of signal tests 4304s # Start of handler tests 4304s # min perf: connected 1 handlers in 0.000 seconds 4304s ok 1 /signal/handler/connect-many 4304s # min perf: disconnected 1 handlers in 0.000 seconds 4304s ok 2 /signal/handler/disconnect-many-ordered 4304s # min perf: disconnected 1 handlers in 0.000 seconds 4304s ok 3 /signal/handler/disconnect-many-inverse 4304s # min perf: disconnected 1 handlers in 0.000 seconds 4304s ok 4 /signal/handler/disconnect-many-random 4304s # min perf: disconnected 1 handlers in 0.000 seconds 4304s ok 5 /signal/handler/disconnect-2-signals 4304s # min perf: disconnected 1 handlers in 0.000 seconds 4304s ok 6 /signal/handler/disconnect-2-objects 4304s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 4304s ok 7 /signal/handler/block-many 4304s # End of handler tests 4304s # End of signal tests 4304s TAP version 14 4304s ok - glib/strvbuilder.test 4304s # Running test: glib/signals-refcount4.test 4304s # random seed: R02Sc05344262f665d6788c6a81c698fc173 4304s 1..7 4304s # Start of strvbuilder tests 4304s ok 1 /strvbuilder/empty 4304s ok 2 /strvbuilder/add 4304s ok 3 /strvbuilder/addv 4304s ok 4 /strvbuilder/add_many 4304s ok 5 /strvbuilder/take 4304s ok 6 /strvbuilder/ref 4304s ok 7 /strvbuilder/unref_to_strv 4304s # End of strvbuilder tests 4304s TAP version 14 4304s # random seed: R02S35e4fc2dfeae4e4be6503084e4467330 4304s 1..1 4304s # Start of gobject tests 4304s # Start of refcount tests 4304s # init 0xb4d0de3344b0 4304s # 4304s # init 0xb4d0de32c580 4304s # 4304s # Executing: glib/signals-refcount4.test 4309s ok - glib/signals-refcount4.test 4309s # Running test: glib/string.test 4309s # dispose 0xb4d0de3344b0! 4309s # 4309s # dispose 0xb4d0de32c580! 4309s # 4309s ok 1 /gobject/refcount/signals 4309s # slow test /gobject/refcount/signals executed in 5.00 secs 4309s # End of refcount tests 4309s # End of gobject tests 4309s TAP version 14 4309s # random seed: R02S4433a201c7b5654de0275b4e22004fe6 4309s 1..25 4309s # Start of string tests 4309s ok 1 /string/chunks 4309s ok 2 /string/chunk-insert 4309s ok 3 /string/new 4309s ok 4 /string/printf 4309s ok 5 /string/assign 4309s ok 6 /string/append-c 4309s ok 7 /string/append 4309s ok 8 /string/append-vprintf 4309s ok 9 /string/prepend-c 4309s ok 10 /string/prepend 4309s ok 11 /string/insert 4309s ok 12 /string/insert-unichar 4309s ok 13 /string/equal 4309s ok 14 /string/truncate 4309s ok 15 /string/overwrite 4309s ok 16 /string/nul-handling 4309s ok 17 /string/up-down 4309s ok 18 /string/set-size 4309s ok 19 /string/to-bytes 4309s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 4309s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 4309s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 4309s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 4309s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 4309s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 4309s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 4309s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 4309s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 4309s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 4309s # 5: Replacing "o" with "" (limit 0) in "food for foals" 4309s # -> 4 replacements, "fd fr fals" 4309s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 4309s # -> 3 replacements, "aaaaaaaaa" 4309s # 7: Replacing "a" with "" (limit 0) in "aaa" 4309s # -> 3 replacements, "" 4309s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 4309s # -> 1 replacements, "bba" 4309s # 9: Replacing "" with "bar" (limit 0) in "foo" 4309s # -> 4 replacements, "barfbarobarobar" 4309s # 10: Replacing "" with "bar" (limit 1) in "foo" 4309s # -> 1 replacements, "barfoo" 4309s # 11: Replacing "" with "bar" (limit 2) in "foo" 4309s # -> 2 replacements, "barfbaroo" 4309s # 12: Replacing "" with "bar" (limit 3) in "foo" 4309s # -> 3 replacements, "barfbarobaro" 4309s # 13: Replacing "" with "bar" (limit 4) in "foo" 4309s # -> 4 replacements, "barfbarobarobar" 4309s # 14: Replacing "" with "bar" (limit 5) in "foo" 4309s # -> 4 replacements, "barfbarobarobar" 4309s # 15: Replacing "" with "x" (limit 0) in "" 4309s # -> 1 replacements, "x" 4309s # 16: Replacing "" with "" (limit 0) in "" 4309s # -> 1 replacements, "" 4309s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 4309s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 4309s ok 20 /string/replace 4309s ok 21 /string/steal 4309s ok 22 /string/new-take 4309s ok 23 /string/copy 4309s ok 24 /string/sized-new 4309s # Start of new-take tests 4309s ok 25 /string/new-take/null 4309s # End of new-take tests 4309s ok - glib/string.test 4309s # Running test: glib/cxx-98.test 4309s ok - glib/cxx-98.test 4309s # Running test: glib/gio-tool.py.test 4309s # End of string tests 4309s TAP version 14 4309s # random seed: R02S36e6bbfba27833ba0fa87977e0bf6b0c 4309s 1..2 4309s # Start of gtask tests 4309s # 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. 4309s ok 1 /gtask/name 4309s # Start of name tests 4309s # 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. 4309s ok 2 /gtask/name/macro-wrapper 4309s # End of name tests 4309s # End of gtask tests 4309s TAP version 13 4309s ok 1 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_folder 4309s # gio: /usr/bin/gio 4309s # tmpdir: /tmp/tmp7_hdk9v8 4309s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmp7_hdk9v8/folder/desktop.entry'] 4309s # Working Directory: /tmp/tmp7_hdk9v8/folder 4309s # Return code: 0 4309s # Output: 4309s # /tmp/tmp7_hdk9v8/folder/desktop.entry 4309s # Error: 4309s ok 2 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_parent 4309s # gio: /usr/bin/gio 4309s # tmpdir: /tmp/tmpq5lkfzoi 4309s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpq5lkfzoi/folder/desktop.entry'] 4309s # Working Directory: /tmp/tmpq5lkfzoi 4309s # Return code: 0 4309s # Output: 4309s # /tmp/tmpq5lkfzoi/folder/desktop.entry 4309s # Error: 4309s ok 3 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_sibling 4309s # gio: /usr/bin/gio 4309s # tmpdir: /tmp/tmptarvpbrs 4309s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmptarvpbrs/folder/desktop.entry'] 4309s # Working Directory: /tmp/tmptarvpbrs/sibling 4309s # Return code: 0 4309s # Output: 4309s # /tmp/tmptarvpbrs/folder/desktop.entry 4309s # Error: 4309s ok 4 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_folder 4309s # gio: /usr/bin/gio 4309s # tmpdir: /tmp/tmpmbz92t3m 4309s # Running: ['/usr/bin/gio', 'launch', 'desktop.entry'] 4309s # Working Directory: /tmp/tmpmbz92t3m/folder 4309s # Return code: 0 4309s # Output: 4309s # /tmp/tmpmbz92t3m/folder/desktop.entry 4309s # Error: 4309s ok 5 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_parent 4309s # gio: /usr/bin/gio 4309s # tmpdir: /tmp/tmpowof1zb4 4309s # Running: ['/usr/bin/gio', 'launch', 'folder/desktop.entry'] 4309s # Working Directory: /tmp/tmpowof1zb4 4309s # Return code: 0 4309s # Output: 4309s # /tmp/tmpowof1zb4/folder/desktop.entry 4309s # Error: 4309s ok 6 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_sibling 4309s # gio: /usr/bin/gio 4309s # tmpdir: /tmp/tmpk24fxe5r 4309s # Running: ['/usr/bin/gio', 'launch', '../folder/desktop.entry'] 4309s # Working Directory: /tmp/tmpk24fxe5r/sibling 4309s # Return code: 0 4309s # Output: 4309s # /tmp/tmpk24fxe5r/folder/desktop.entry 4309s # Error: 4309s ok 7 __main__.TestGioTool.test_help 4309s # gio: /usr/bin/gio 4309s # tmpdir: /tmp/tmpifxpdrx2 4309s # Running: ['/usr/bin/gio', '--help'] 4309s # Return code: 0 4309s # Output: 4309s # Usage: 4309s # gio COMMAND [ARGS…] 4309s # 4309s # Commands: 4309s # help Print help 4309s # version Print version 4309s # cat Concatenate files to standard output 4309s # copy Copy one or more files 4309s # info Show information about locations 4309s # launch Launch an application from a desktop file 4309s # list List the contents of locations 4309s # mime Get or set the handler for a mimetype 4309s # mkdir Create directories 4309s # monitor Monitor files and directories for changes 4309s # mount Mount or unmount the locations 4309s # move Move one or more files 4309s # open Open files with the default application 4309s # rename Rename a file 4309s # remove Delete one or more files 4309s # save Read from standard input and save 4309s # set Set a file attribute 4309s # trash Move files or directories to the trash 4309s # tree Lists the contents of locations in a tree 4309s # 4309s # Use “gio help COMMAND” to get detailed help. 4309s # Error: 4309s # 4309s # Running: ['/usr/bin/gio', 'help'] 4309s # Return code: 0 4309s # Output: 4309s # Usage: 4309s # gio COMMAND [ARGS…] 4309s # 4309s # Commands: 4309s # help Print help 4309s # version Print version 4309s # cat Concatenate files to standard output 4309s # copy Copy one or more files 4309s # info Show information about locations 4309s # launch Launch an application from a desktop file 4309s # list List the contents of locations 4309s # mime Get or set the handler for a mimetype 4309s # mkdir Create directories 4309s # monitor Monitor files and directories for changes 4309s # mount Mount or unmount the locations 4309s # move Move one or more files 4309s # open Open files with the default application 4309s # rename Rename a file 4309s # remove Delete one or more files 4309s # save Read from standard input and save 4309s # set Set a file attribute 4309s # trash Move files or directories to the trash 4309s # tree Lists the contents of locations in a tree 4309s # 4309s # Use “gio help COMMAND” to get detailed help. 4309s # Error: 4309s ok 8 __main__.TestGioTool.test_info_non_default_attributes 4309s # gio: /usr/bin/gio 4309s # tmpdir: /tmp/tmp8ncpbgu7 4309s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmp8ncpbgu7/tmp3sxa_24x'] 4309s # Return code: 0 4309s # Output: 4309s # uri: file:///tmp/tmp8ncpbgu7/tmp3sxa_24x 4309s # local path: /tmp/tmp8ncpbgu7/tmp3sxa_24x 4309s # unix mount: /dev/vda1 / ext4 rw,relatime,discard,errors=remount-ro,commit=30 4309s # attributes: 4309s # standard::content-type: application/x-zerosize 4309s # Error: 4309s ok 9 __main__.TestGioTool.test_no_args 4309s # gio: /usr/bin/gio 4309s # tmpdir: /tmp/tmp3g9ijimw 4309s # Running: ['/usr/bin/gio'] 4309s # Return code: 1 4309s # Output: 4309s # 4309s # Error: 4309s # Usage: 4309s # gio COMMAND [ARGS…] 4309s # 4309s # Commands: 4309s # help Print help 4309s # version Print version 4309s # cat Concatenate files to standard output 4309s # copy Copy one or more files 4309s # info Show information about locations 4309s # launch Launch an application from a desktop file 4309s # list List the contents of locations 4309s # mime Get or set the handler for a mimetype 4309s # mkdir Create directories 4309s # monitor Monitor files and directories for changes 4309s # mount Mount or unmount the locations 4309s # move Move one or more files 4309s # open Open files with the default application 4309s # rename Rename a file 4309s # remove Delete one or more files 4309s # save Read from standard input and save 4309s # set Set a file attribute 4309s # trash Move files or directories to the trash 4309s # tree Lists the contents of locations in a tree 4309s # 4309s # Use “gio help COMMAND” to get detailed help. 4309s 1..9 4309s ok - glib/gio-tool.py.test 4309s # Running test: glib/utils-c-17.test 4309s TAP version 14 4309s # random seed: R02See135adf170d2b1c909ddf567e257f8a 4309s 1..41 4309s # Start of utils tests 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/language-names/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/language-names/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/language-names/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/language-names/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/language-names/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/language-names/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/language-names/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/language-names/.dirs/runtime 4309s ok 1 /utils/language-names 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/locale-variants/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/locale-variants/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/locale-variants/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/locale-variants/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/locale-variants/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/locale-variants/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/locale-variants/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/locale-variants/.dirs/runtime 4309s # Testing locale ‘en’ 4309s # Testing locale ‘sr@latin’ 4309s # Testing locale ‘fr_BE’ 4309s # Testing locale ‘sr_SR@latin’ 4309s # Testing locale ‘sr_SR@latin.UTF-8’ 4309s # Testing locale ‘sr@latin_invalid’ 4309s # Testing locale ‘sr.UTF-8@latin’ 4309s # Testing locale ‘sr.UTF-8_latin’ 4309s # Testing locale ‘sr.UTF-8@latin_invalid’ 4309s ok 2 /utils/locale-variants 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/version/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/version/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/version/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/version/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/version/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/version/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/version/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/version/.dirs/runtime 4309s ok 3 /utils/version 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/appname/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/appname/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/appname/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/appname/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/appname/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/appname/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/appname/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/appname/.dirs/runtime 4309s ok 4 /utils/appname 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/prgname-thread-safety/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/prgname-thread-safety/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/prgname-thread-safety/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/prgname-thread-safety/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/prgname-thread-safety/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/prgname-thread-safety/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/prgname-thread-safety/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/prgname-thread-safety/.dirs/runtime 4309s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 4309s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 4309s ok 5 /utils/prgname-thread-safety 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/tmpdir/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/tmpdir/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/tmpdir/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/tmpdir/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/tmpdir/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/tmpdir/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/tmpdir/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/tmpdir/.dirs/runtime 4309s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 4309s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 4309s Unable to clean up temporary directory /tmp/test_utils-c-17_ESVEK3/utils/tmpdir: No such file or directory 4309s ok 6 /utils/tmpdir 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/basic_bits/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/basic_bits/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/basic_bits/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/basic_bits/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/basic_bits/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/basic_bits/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/basic_bits/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/basic_bits/.dirs/runtime 4309s ok 7 /utils/basic_bits 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/bits/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/bits/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/bits/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/bits/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/bits/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/bits/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/bits/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/bits/.dirs/runtime 4309s ok 8 /utils/bits 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/swap/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/swap/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/swap/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/swap/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/swap/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/swap/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/swap/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/swap/.dirs/runtime 4309s ok 9 /utils/swap 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/find-program/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/find-program/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/find-program/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/find-program/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/find-program/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/find-program/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/find-program/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/find-program/.dirs/runtime 4309s ok 10 /utils/find-program 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/find-program-for-path/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/find-program-for-path/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/find-program-for-path/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/find-program-for-path/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/find-program-for-path/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/find-program-for-path/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/find-program-for-path/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/find-program-for-path/.dirs/runtime 4309s ok 11 /utils/find-program-for-path 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/debug/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/debug/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/debug/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/debug/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/debug/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/debug/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/debug/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/debug/.dirs/runtime 4309s Unable to clean up temporary directory /tmp/test_utils-c-17_ESVEK3/utils/debug: No such file or directory 4309s ok 12 /utils/debug 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/codeset/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/codeset/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/codeset/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/codeset/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/codeset/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/codeset/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/codeset/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/codeset/.dirs/runtime 4309s ok 13 /utils/codeset 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/codeset2/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/codeset2/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/codeset2/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/codeset2/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/codeset2/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/codeset2/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/codeset2/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/codeset2/.dirs/runtime 4309s Unable to clean up temporary directory /tmp/test_utils-c-17_ESVEK3/utils/codeset2: No such file or directory 4309s ok 14 /utils/codeset2 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/console-charset/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/console-charset/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/console-charset/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/console-charset/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/console-charset/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/console-charset/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/console-charset/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/console-charset/.dirs/runtime 4309s ok 15 /utils/console-charset 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/gettext/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/gettext/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/gettext/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/gettext/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/gettext/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/gettext/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/gettext/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/gettext/.dirs/runtime 4309s ok 16 /utils/gettext 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/username/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/username/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/username/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/username/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/username/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/username/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/username/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/username/.dirs/runtime 4309s ok 17 /utils/username 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/realname/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/realname/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/realname/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/realname/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/realname/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/realname/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/realname/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/realname/.dirs/runtime 4309s ok 18 /utils/realname 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/hostname/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/hostname/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/hostname/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/hostname/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/hostname/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/hostname/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/hostname/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/hostname/.dirs/runtime 4309s ok 19 /utils/hostname 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/os-info/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/os-info/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/os-info/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/os-info/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/os-info/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/os-info/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/os-info/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/os-info/.dirs/runtime 4309s # NAME: Ubuntu 4309s ok 20 /utils/os-info 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/.dirs/runtime 4309s ok 21 /utils/clear-pointer 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer-cast/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer-cast/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/clear-pointer-cast/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer-cast/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/clear-pointer-cast/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer-cast/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer-cast/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer-cast/.dirs/runtime 4309s ok 22 /utils/clear-pointer-cast 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/take-pointer/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/take-pointer/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/take-pointer/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/take-pointer/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/take-pointer/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/take-pointer/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/take-pointer/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/take-pointer/.dirs/runtime 4309s ok 23 /utils/take-pointer 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-source/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-source/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/clear-source/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-source/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/clear-source/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-source/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-source/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/clear-source/.dirs/runtime 4309s ok 24 /utils/clear-source 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/misc-mem/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/misc-mem/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/misc-mem/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/misc-mem/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/misc-mem/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/misc-mem/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/misc-mem/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/misc-mem/.dirs/runtime 4309s ok 25 /utils/misc-mem 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/.dirs/runtime 4309s # /utils/aligned-mem summary: Aligned memory allocator 4309s # Alignment must not be zero 4309s # Alignment must be a power of two 4309s # Alignment must be a multiple of sizeof(void*) 4309s ok 26 /utils/aligned-mem 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/free-sized/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/free-sized/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/free-sized/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/free-sized/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/free-sized/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/free-sized/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/free-sized/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/free-sized/.dirs/runtime 4309s # /utils/free-sized summary: Check that g_free_sized() works 4309s ok 27 /utils/free-sized 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/nullify/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/nullify/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/nullify/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/nullify/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/nullify/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/nullify/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/nullify/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/nullify/.dirs/runtime 4309s ok 28 /utils/nullify 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/atexit/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/atexit/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/atexit/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/atexit/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/atexit/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/atexit/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/atexit/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/atexit/.dirs/runtime 4309s Unable to clean up temporary directory /tmp/test_utils-c-17_ESVEK3/utils/atexit: No such file or directory 4309s ok 29 /utils/atexit 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/check-setuid/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/check-setuid/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/check-setuid/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/check-setuid/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/check-setuid/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/check-setuid/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/check-setuid/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/check-setuid/.dirs/runtime 4309s ok 30 /utils/check-setuid 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/int-limits/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/int-limits/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/int-limits/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/int-limits/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/int-limits/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/int-limits/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/int-limits/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/int-limits/.dirs/runtime 4309s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 4309s ok 31 /utils/int-limits 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-list/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-list/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/clear-list/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-list/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/clear-list/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-list/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-list/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/clear-list/.dirs/runtime 4309s ok 32 /utils/clear-list 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-slist/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-slist/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/clear-slist/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-slist/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/clear-slist/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-slist/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-slist/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/clear-slist/.dirs/runtime 4309s ok 33 /utils/clear-slist 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/steal-handle-id/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/steal-handle-id/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/steal-handle-id/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/steal-handle-id/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/steal-handle-id/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/steal-handle-id/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/steal-handle-id/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/steal-handle-id/.dirs/runtime 4309s ok 34 /utils/steal-handle-id 4309s # Start of user-special-dirs tests 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/desktop/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/desktop/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/desktop/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/desktop/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/desktop/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/desktop/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/desktop/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/desktop/.dirs/runtime 4309s ok 35 /utils/user-special-dirs/desktop 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 4309s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 4309s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 4309s Unable to clean up temporary directory /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/load-unlocked: No such file or directory 4309s ok 36 /utils/user-special-dirs/load-unlocked 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 4309s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 4309s Unable to clean up temporary directory /tmp/test_utils-c-17_ESVEK3/utils/user-special-dirs/reload-leaks: No such file or directory 4309s ok 37 /utils/user-special-dirs/reload-leaks 4309s # End of user-special-dirs tests 4309s # Start of clear-pointer tests 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/side-effects/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/side-effects/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/side-effects/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/side-effects/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/side-effects/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/side-effects/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/side-effects/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/clear-pointer/side-effects/.dirs/runtime 4309s ok 38 /utils/clear-pointer/side-effects 4309s # End of clear-pointer tests 4309s # Start of aligned-mem tests 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/alignment/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/alignment/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/alignment/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/alignment/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/alignment/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/alignment/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/alignment/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/alignment/.dirs/runtime 4309s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 4309s ok 39 /utils/aligned-mem/alignment 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/zeroed/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/zeroed/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/zeroed/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/zeroed/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/zeroed/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/zeroed/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/zeroed/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/zeroed/.dirs/runtime 4309s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 4309s ok 40 /utils/aligned-mem/zeroed 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/free-sized/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/free-sized/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/free-sized/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/free-sized/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/free-sized/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/free-sized/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/free-sized/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_ESVEK3/utils/aligned-mem/free-sized/.dirs/runtime 4309s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 4309s ok - glib/utils-c-17.test 4309s # Running test: glib/union-info.test 4309s ok 41 /utils/aligned-mem/free-sized 4309s # Start of subprocess tests 4309s # End of subprocess tests 4309s # End of aligned-mem tests 4309s # End of utils tests 4309s TAP version 14 4309s # random seed: R02Se0fb09f918152ab5ea11f3bf53b9282d 4309s 1..2 4309s # Start of union-info tests 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_3QQFK3/union-info/basic/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_3QQFK3/union-info/basic/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_3QQFK3/union-info/basic/.dirs/system-config1:/tmp/test_union-info_3QQFK3/union-info/basic/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_3QQFK3/union-info/basic/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_3QQFK3/union-info/basic/.dirs/system-data1:/tmp/test_union-info_3QQFK3/union-info/basic/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_3QQFK3/union-info/basic/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_3QQFK3/union-info/basic/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_3QQFK3/union-info/basic/.dirs/runtime 4309s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4309s # /union-info/basic summary: Test basic properties of GIUnionInfo 4309s ok 1 /union-info/basic 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_3QQFK3/union-info/methods/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_3QQFK3/union-info/methods/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_3QQFK3/union-info/methods/.dirs/system-config1:/tmp/test_union-info_3QQFK3/union-info/methods/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_3QQFK3/union-info/methods/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_3QQFK3/union-info/methods/.dirs/system-data1:/tmp/test_union-info_3QQFK3/union-info/methods/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_3QQFK3/union-info/methods/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_3QQFK3/union-info/methods/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_3QQFK3/union-info/methods/.dirs/runtime 4309s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 4309s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 4309s ok 2 /union-info/methods 4309s # End of union-info tests 4309s ok - glib/union-info.test 4309s # Running test: glib/tls-database.test 4309s TAP version 14 4309s # random seed: R02S65e7c7ba6cf07959cefc73d12529fa87 4309s 1..1 4309s # Start of tls-backend tests 4309s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 4309s ok 1 /tls-backend/set-default-database 4309s # End of tls-backend tests 4309s ok - glib/tls-database.test 4309s # Running test: glib/fdo-notification-backend.test 4309s TAP version 14 4309s # random seed: R02S67feca858ee4f2e0b2c9a4560aeddcc9 4309s 1..2 4309s # Start of fdo-notification-backend tests 4309s # Test constructing a GFdoNotificationBackend 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s ok 1 /fdo-notification-backend/construction 4309s # Start of dbus tests 4309s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4309s ok 2 /fdo-notification-backend/dbus/activate-action 4309s # End of dbus tests 4309s # End of fdo-notification-backend tests 4309s ok - glib/fdo-notification-backend.test 4309s # Running test: glib/dump.test 4309s TAP version 14 4309s # random seed: R02S709da8aca8b38210c5953db2a88d864f 4309s 1..4 4309s # Start of dump tests 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_GRAJK3/dump/empty-file/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_GRAJK3/dump/empty-file/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_GRAJK3/dump/empty-file/.dirs/system-config1:/tmp/test_dump_GRAJK3/dump/empty-file/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_GRAJK3/dump/empty-file/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_GRAJK3/dump/empty-file/.dirs/system-data1:/tmp/test_dump_GRAJK3/dump/empty-file/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_GRAJK3/dump/empty-file/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_GRAJK3/dump/empty-file/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_GRAJK3/dump/empty-file/.dirs/runtime 4309s ok 1 /dump/empty-file 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_GRAJK3/dump/missing-get-type/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_GRAJK3/dump/missing-get-type/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_GRAJK3/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_GRAJK3/dump/missing-get-type/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_GRAJK3/dump/missing-get-type/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_GRAJK3/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_GRAJK3/dump/missing-get-type/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_GRAJK3/dump/missing-get-type/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_GRAJK3/dump/missing-get-type/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_GRAJK3/dump/missing-get-type/.dirs/runtime 4309s Invalid GType function: 'does_not_exist_get_type' 4309s ok 2 /dump/missing-get-type 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_GRAJK3/dump/missing-quark/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_GRAJK3/dump/missing-quark/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_GRAJK3/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_GRAJK3/dump/missing-quark/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_GRAJK3/dump/missing-quark/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_GRAJK3/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_GRAJK3/dump/missing-quark/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_GRAJK3/dump/missing-quark/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_GRAJK3/dump/missing-quark/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_GRAJK3/dump/missing-quark/.dirs/runtime 4309s Invalid error quark function: 'does_not_exist_error' 4309s ok 3 /dump/missing-quark 4309s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_GRAJK3/dump/basic/.dirs/home 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_GRAJK3/dump/basic/.dirs/cache 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_GRAJK3/dump/basic/.dirs/system-config1:/tmp/test_dump_GRAJK3/dump/basic/.dirs/system-config2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_GRAJK3/dump/basic/.dirs/config 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_GRAJK3/dump/basic/.dirs/system-data1:/tmp/test_dump_GRAJK3/dump/basic/.dirs/system-data2 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_GRAJK3/dump/basic/.dirs/data 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_GRAJK3/dump/basic/.dirs/state 4309s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_GRAJK3/dump/basic/.dirs/runtime 4309s ok 4 /dump/basic 4309s # End of dump tests 4309s ok - glib/dump.test 4309s # SUMMARY: total=332; passed=331; skipped=1; failed=0; user=170.9s; system=75.2s; maxrss=147260 4309s autopkgtest [01:07:56]: test installed-tests: -----------------------] 4310s autopkgtest [01:07:57]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 4310s installed-tests PASS 4311s autopkgtest [01:07:58]: test closure-refcount: preparing testbed 4311s Reading package lists... 4311s Building dependency tree... 4311s Reading state information... 4311s Solving dependencies... 4312s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4325s autopkgtest [01:08:12]: test closure-refcount: [----------------------- 4328s Running test: glib/closure-refcount.test 4328s TAP version 14 4328s # random seed: R02S7be61a98971781a4f372f197216ee6d3 4328s 1..1 4328s # Start of closure tests 4328s ok 1 /closure/refcount # SKIP Known to be flaky on arm* (#880883, #917983) 4328s # End of closure tests 4328s PASS: glib/closure-refcount.test 4328s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=3304 4329s autopkgtest [01:08:16]: test closure-refcount: -----------------------] 4329s closure-refcount PASS 4329s autopkgtest [01:08:16]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 4329s autopkgtest [01:08:16]: test debugcontroller: preparing testbed 4330s Reading package lists... 4330s Building dependency tree... 4330s Reading state information... 4330s Solving dependencies... 4330s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4332s autopkgtest [01:08:19]: test debugcontroller: [----------------------- 4332s Running test: glib/debugcontroller.test 4332s TAP version 14 4332s # random seed: R02S0214478e1764e0f92fe8a851a12e0e2b 4332s 1..3 4332s # Start of debug-controller tests 4332s # Start of dbus tests 4332s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 4332s # GLib-GIO-DEBUG: Debug output enabled 4332s # GLib-GIO-DEBUG: Debug output disabled 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s ok 1 /debug-controller/dbus/basic 4332s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s ok 2 /debug-controller/dbus/duplicate 4332s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4332s # GLib-GIO-DEBUG: Debug output enabled 4332s # GLib-GIO-DEBUG: Debug output disabled 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4332s ok 3 /debug-controller/dbus/properties 4332s # End of dbus tests 4332s # End of debug-controller tests 4332s PASS: glib/debugcontroller.test 4332s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=6124 4333s autopkgtest [01:08:20]: test debugcontroller: -----------------------] 4333s debugcontroller PASS 4333s autopkgtest [01:08:20]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 4335s autopkgtest [01:08:22]: test gdbus-server-auth: preparing testbed 4335s Reading package lists... 4335s Building dependency tree... 4335s Reading state information... 4335s Solving dependencies... 4336s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4344s autopkgtest [01:08:31]: test gdbus-server-auth: [----------------------- 4345s Running test: glib/gdbus-server-auth.test 4345s TAP version 14 4345s # random seed: R02S06b8c95099e0b338fdbf6028c2b96847 4345s 1..9 4345s # Start of gdbus tests 4345s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/.dirs/home 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/.dirs/cache 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/.dirs/system-config2 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/.dirs/config 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/.dirs/system-data2 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/.dirs/data 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/.dirs/state 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/.dirs/runtime 4345s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-I626J3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 4345s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-I626J3/dbus-OD4xVfOR 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40620 4345s ok 1 /gdbus/server-auth 4345s # Start of server-auth tests 4345s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/abstract/.dirs/home 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/abstract/.dirs/cache 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/abstract/.dirs/system-config2 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/abstract/.dirs/config 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/abstract/.dirs/system-data2 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/abstract/.dirs/data 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/abstract/.dirs/state 4345s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/abstract/.dirs/runtime 4345s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-1HF7J3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 4345s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-1HF7J3/dbus-1RgLERyN 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40620 4345s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4345s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4345s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4345s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4345s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4345s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40620 4346s ok 2 /gdbus/server-auth/abstract 4346s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/tcp/.dirs/home 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/tcp/.dirs/cache 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/tcp/.dirs/system-config2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/tcp/.dirs/config 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/tcp/.dirs/system-data2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/tcp/.dirs/data 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/tcp/.dirs/state 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/tcp/.dirs/runtime 4346s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 4346s # Connectable address: tcp:host=127.0.0.1,port=35231 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 4346s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 4346s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 4346s ok 3 /gdbus/server-auth/tcp 4346s # slow test /gdbus/server-auth/tcp executed in 0.85 secs 4346s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/.dirs/home 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/.dirs/cache 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/.dirs/system-config2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/.dirs/config 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/.dirs/system-data2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/.dirs/data 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/.dirs/state 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/.dirs/runtime 4346s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-03O4J3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 4346s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-03O4J3/dbus-11VP90Gn 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40620 4346s ok 4 /gdbus/server-auth/anonymous 4346s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/.dirs/home 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/.dirs/cache 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/.dirs/system-config2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/.dirs/config 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/.dirs/system-data2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/.dirs/data 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/.dirs/state 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/.dirs/runtime 4346s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-70W7J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 4346s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-70W7J3/dbus-6bk4AwiL 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40620 4346s ok 5 /gdbus/server-auth/external 4346s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/.dirs/home 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/.dirs/cache 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/.dirs/system-config2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/.dirs/config 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/.dirs/system-data2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/.dirs/data 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/.dirs/state 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/.dirs/runtime 4346s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-21C8J3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 4346s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-21C8J3/dbus-M0EMDrMM 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40620 4346s ok 6 /gdbus/server-auth/sha1 4346s # Start of anonymous tests 4346s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/tcp/.dirs/home 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/tcp/.dirs/cache 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/tcp/.dirs/config 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/tcp/.dirs/data 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/tcp/.dirs/state 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 4346s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 4346s # Connectable address: tcp:host=127.0.0.1,port=42855 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 4346s ok 7 /gdbus/server-auth/anonymous/tcp 4346s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.84 secs 4346s # End of anonymous tests 4346s # Start of external tests 4346s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/require-same-user/.dirs/home 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/require-same-user/.dirs/cache 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/require-same-user/.dirs/config 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/require-same-user/.dirs/data 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/require-same-user/.dirs/state 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/external/require-same-user/.dirs/runtime 4346s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-27I5J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 4346s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_UO36J3/gdbus-server-auth-27I5J3/dbus-iJhD7mgH 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40620 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 4346s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40620,uid=1000,gid=1000 4346s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40620 4346s ok 8 /gdbus/server-auth/external/require-same-user 4346s # End of external tests 4346s # Start of sha1 tests 4346s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/tcp/.dirs/home 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/tcp/.dirs/cache 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/tcp/.dirs/config 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/tcp/.dirs/data 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/tcp/.dirs/state 4346s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_UO36J3/gdbus/server-auth/sha1/tcp/.dirs/runtime 4346s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 4346s # Connectable address: tcp:host=127.0.0.1,port=38139 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 4346s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4346s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4346s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4346s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4346s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 4347s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 4347s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 4347s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 4347s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 4347s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 4347s ok 9 /gdbus/server-auth/sha1/tcp 4347s # slow test /gdbus/server-auth/sha1/tcp executed in 0.85 secs 4347s # End of sha1 tests 4347s # End of server-auth tests 4347s # End of gdbus tests 4347s PASS: glib/gdbus-server-auth.test 4347s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=8112 4348s autopkgtest [01:08:35]: test gdbus-server-auth: -----------------------] 4348s autopkgtest [01:08:35]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 4348s gdbus-server-auth PASS 4348s autopkgtest [01:08:35]: test gdbus-threading: preparing testbed 4348s Reading package lists... 4349s Building dependency tree... 4349s Reading state information... 4349s Solving dependencies... 4349s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4353s autopkgtest [01:08:40]: test gdbus-threading: [----------------------- 4353s Running test: glib/gdbus-threading.test 4353s TAP version 14 4353s # random seed: R02S63fe6ae6706acc3b309de66d943b0676 4353s 1..3 4353s # Start of gdbus tests 4353s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_613IK3/gdbus/delivery-in-thread/.dirs/home 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/delivery-in-thread/.dirs/cache 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_613IK3/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_613IK3/gdbus/delivery-in-thread/.dirs/system-config2 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/delivery-in-thread/.dirs/config 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_613IK3/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_613IK3/gdbus/delivery-in-thread/.dirs/system-data2 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/delivery-in-thread/.dirs/data 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/delivery-in-thread/.dirs/state 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_613IK3/gdbus/delivery-in-thread/.dirs/runtime 4353s ok 1 /gdbus/delivery-in-thread 4353s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_613IK3/gdbus/method-calls-in-thread/.dirs/home 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/method-calls-in-thread/.dirs/cache 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_613IK3/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_613IK3/gdbus/method-calls-in-thread/.dirs/system-config2 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/method-calls-in-thread/.dirs/config 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_613IK3/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_613IK3/gdbus/method-calls-in-thread/.dirs/system-data2 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/method-calls-in-thread/.dirs/data 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/method-calls-in-thread/.dirs/state 4353s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_613IK3/gdbus/method-calls-in-thread/.dirs/runtime 4354s ok 2 /gdbus/method-calls-in-thread 4354s # slow test /gdbus/method-calls-in-thread executed in 0.83 secs 4354s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_613IK3/gdbus/threaded-singleton/.dirs/home 4354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/threaded-singleton/.dirs/cache 4354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_613IK3/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_613IK3/gdbus/threaded-singleton/.dirs/system-config2 4354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/threaded-singleton/.dirs/config 4354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_613IK3/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_613IK3/gdbus/threaded-singleton/.dirs/system-data2 4354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/threaded-singleton/.dirs/data 4354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_613IK3/gdbus/threaded-singleton/.dirs/state 4354s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_613IK3/gdbus/threaded-singleton/.dirs/runtime 4354s # GLib-GIO-DEBUG: refcount of 0xf8e5f4000e40 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 4354s # GLib-GIO-DEBUG: refcount of 0xf8e5f40052c0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 4354s # GLib-GIO-DEBUG: refcount of 0xf8e5f4005920 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 4354s # GLib-GIO-DEBUG: refcount of 0xf8e5f4005880 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 4354s # GLib-GIO-DEBUG: refcount of 0xf8e5f40047c0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 4354s # GLib-GIO-DEBUG: refcount of 0xf8e5f4005880 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 4355s # GLib-GIO-DEBUG: refcount of 0xf8e5f4004ca0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 4355s # GLib-GIO-DEBUG: refcount of 0xf8e5f4006660 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 4355s # GLib-GIO-DEBUG: refcount of 0xf8e5f4007960 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 4355s ok 3 /gdbus/threaded-singleton 4355s # slow test /gdbus/threaded-singleton executed in 1.22 secs 4355s # End of gdbus tests 4355s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4355s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4355s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4355s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4355s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4355s cleaning up pid 40807 4355s PASS: glib/gdbus-threading.test 4355s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.4s; system=0.2s; maxrss=6020 4355s autopkgtest [01:08:42]: test gdbus-threading: -----------------------] 4356s autopkgtest [01:08:43]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 4356s gdbus-threading PASS 4356s autopkgtest [01:08:43]: test gmenumodel: preparing testbed 4356s Reading package lists... 4357s Building dependency tree... 4357s Reading state information... 4357s Solving dependencies... 4357s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4358s autopkgtest [01:08:45]: test gmenumodel: [----------------------- 4358s Running test: glib/gmenumodel.test 4358s TAP version 14 4358s # random seed: R02S7e64f07a5b711a148aee92baddcc715d 4358s 1..15 4358s # Start of gmenu tests 4359s ok 1 /gmenu/equality 4359s # slow test /gmenu/equality executed in 0.55 secs 4360s ok 2 /gmenu/random 4360s # slow test /gmenu/random executed in 0.67 secs 4360s ok 3 /gmenu/attributes 4360s ok 4 /gmenu/links 4360s ok 5 /gmenu/mutable 4360s ok 6 /gmenu/convenience 4360s ok 7 /gmenu/menuitem 4360s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 4360s ok 8 /gmenu/input-validation 4360s # Start of dbus tests 4361s ok 9 /gmenu/dbus/roundtrip 4361s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 4361s ok 10 /gmenu/dbus/subscriptions 4362s ok 11 /gmenu/dbus/threaded 4362s # slow test /gmenu/dbus/threaded executed in 0.74 secs 4362s # Start of peer tests 4363s ok 12 /gmenu/dbus/peer/roundtrip 4363s # slow test /gmenu/dbus/peer/roundtrip executed in 1.02 secs 4363s ok 13 /gmenu/dbus/peer/subscriptions 4363s # End of peer tests 4363s # Start of export tests 4363s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 4363s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 4363s ok 14 /gmenu/dbus/export/error-handling 4363s # End of export tests 4363s # End of dbus tests 4363s # Start of attributes tests 4363s ok 15 /gmenu/attributes/iterate 4363s # End of attributes tests 4363s # End of gmenu tests 4363s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4363s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4363s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4363s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4363s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 4363s PASS: glib/gmenumodel.test 4363s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=2.5s; system=0.2s; maxrss=26320 4364s autopkgtest [01:08:51]: test gmenumodel: -----------------------] 4364s autopkgtest [01:08:51]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 4364s gmenumodel PASS 4365s autopkgtest [01:08:52]: test mainloop: preparing testbed 4365s Reading package lists... 4365s Building dependency tree... 4365s Reading state information... 4365s Solving dependencies... 4366s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4367s autopkgtest [01:08:54]: test mainloop: [----------------------- 4367s Running test: glib/mainloop.test 4367s TAP version 14 4367s # random seed: R02S82d16b1528b15d091603de395c991803 4367s 1..47 4367s # Start of maincontext tests 4367s ok 1 /maincontext/basic 4367s # Add same-priority sources: 18 4367s # Find each source: 4 4367s # Remove in random order: 38 4367s ok 2 /maincontext/nsources_same_priority 4367s # Add different-priority sources: 20 4367s # Find each source: 4 4367s # Remove in random order: 43 4367s ok 3 /maincontext/nsources_different_priority 4367s # Add sources from threads: 259 4367s # Remove sources from threads: 196 4367s ok 4 /maincontext/nsources_threadpool 4367s ok 5 /maincontext/source_finalization 4367s # /maincontext/idle-once summary: Test g_idle_add_once() works 4367s ok 6 /maincontext/idle-once 4367s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 4368s ok 7 /maincontext/timeout-once 4368s # /maincontext/context-ref-in-source-callbackfuncs-unref summary: Tests if calling GSource API in GSourceCallbackFuncs.unref does not deadlock attempting to retrieve the relevant GMainContext. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 4368s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 4368s # Start of source_finalization_from_source tests 4368s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4368s ok 9 /maincontext/source_finalization_from_source/0 4368s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4368s ok 10 /maincontext/source_finalization_from_source/1 4368s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4368s ok 11 /maincontext/source_finalization_from_source/2 4368s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4368s ok 12 /maincontext/source_finalization_from_source/3 4368s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4368s ok 13 /maincontext/source_finalization_from_source/4 4368s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4368s ok 14 /maincontext/source_finalization_from_source/5 4368s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4368s ok 15 /maincontext/source_finalization_from_source/6 4368s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4368s ok 16 /maincontext/source_finalization_from_source/7 4368s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4368s ok 17 /maincontext/source_finalization_from_source/8 4368s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 4368s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 4368s ok 18 /maincontext/source_finalization_from_source/9 4368s # End of source_finalization_from_source tests 4368s # Start of source_finalization_from_dispatch tests 4368s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 4368s ok 19 /maincontext/source_finalization_from_dispatch/0 4368s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 4368s ok 20 /maincontext/source_finalization_from_dispatch/1 4368s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 4368s ok 21 /maincontext/source_finalization_from_dispatch/2 4368s # End of source_finalization_from_dispatch tests 4368s # End of maincontext tests 4368s # Start of mainloop tests 4368s ok 22 /mainloop/basic 4368s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 4368s ok 24 /mainloop/priorities 4368s ok 25 /mainloop/invoke 4368s # slow test /mainloop/invoke executed in 0.50 secs 4369s ok 26 /mainloop/child_sources 4369s # slow test /mainloop/child_sources executed in 1.19 secs 4371s ok 27 /mainloop/recursive_child_sources 4371s # slow test /mainloop/recursive_child_sources executed in 2.18 secs 4371s ok 28 /mainloop/recursive_loop_child_sources 4371s ok 29 /mainloop/swapping_child_sources 4371s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 4371s ok 30 /mainloop/blocked_child_sources 4372s Executing: glib/mainloop.test 4372s ok 31 /mainloop/source_time 4372s # slow test /mainloop/source_time executed in 1.00 secs 4372s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 4372s ok 32 /mainloop/overflow 4373s ok 33 /mainloop/ready-time 4373s # slow test /mainloop/ready-time executed in 0.50 secs 4373s ok 34 /mainloop/wakeup 4373s ok 35 /mainloop/remove-invalid 4373s ok 36 /mainloop/unref-while-pending 4373s ok 37 /mainloop/unix-fd 4373s # slow test /mainloop/unix-fd executed in 0.55 secs 4373s ok 38 /mainloop/unix-fd-source 4373s ok 39 /mainloop/source-unix-fd-api 4374s ok 40 /mainloop/wait 4374s ok 41 /mainloop/unix-file-poll 4374s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 4374s ok 42 /mainloop/unix-fd-priority 4374s ok 43 /mainloop/nfds 4374s ok 44 /mainloop/steal-fd 4375s ok 45 /mainloop/simultaneous-source-context-destruction 4375s # slow test /mainloop/simultaneous-source-context-destruction executed in 1.29 secs 4375s # Start of ownerless-polling tests 4375s ok 46 /mainloop/ownerless-polling/attach-first 4375s ok 47 /mainloop/ownerless-polling/pop-first 4375s # End of ownerless-polling tests 4375s # End of mainloop tests 4375s PASS: glib/mainloop.test 4375s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.9s; system=2.8s; maxrss=16660 4375s autopkgtest [01:09:02]: test mainloop: -----------------------] 4376s mainloop PASS 4376s autopkgtest [01:09:03]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 4376s autopkgtest [01:09:03]: test memory-monitor-dbus: preparing testbed 4376s Reading package lists... 4377s Building dependency tree... 4377s Reading state information... 4377s Solving dependencies... 4377s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4378s autopkgtest [01:09:05]: test memory-monitor-dbus: [----------------------- 4378s Running test: glib/memory-monitor-dbus.test 4379s TAP version 13 4379s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 4379s # Received memory warning signal, level 0 4379s # Received memory warning signal, level 100 4379s # Received memory warning signal, level 255 4379s 1..1 4379s PASS: glib/memory-monitor-dbus.test 4379s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.0s; maxrss=30724 4379s autopkgtest [01:09:06]: test memory-monitor-dbus: -----------------------] 4379s autopkgtest [01:09:06]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 4379s memory-monitor-dbus PASS 4380s autopkgtest [01:09:07]: test socket: preparing testbed 4380s Reading package lists... 4380s Building dependency tree... 4380s Reading state information... 4380s Solving dependencies... 4381s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4382s autopkgtest [01:09:09]: test socket: [----------------------- 4382s Running test: glib/socket.test 4382s TAP version 14 4382s # random seed: R02S9de0c96af4e1613934db852e5adcaec6 4382s 1..30 4382s # Start of socket tests 4383s ok 1 /socket/ipv4_sync 4383s # slow test /socket/ipv4_sync executed in 1.00 secs 4384s ok 2 /socket/ipv4_async 4384s # slow test /socket/ipv4_async executed in 1.00 secs 4384s ok 3 /socket/ipv6_sync 4384s ok 4 /socket/ipv6_async 4384s ok 5 /socket/ipv6_v4mapped 4385s ok 6 /socket/close_graceful 4385s # slow test /socket/close_graceful executed in 1.00 secs 4385s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 4385s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 4385s ok 8 /socket/fd_reuse 4385s ok 9 /socket/address 4385s ok 10 /socket/unix-from-fd 4385s ok 11 /socket/unix-connection 4385s ok 12 /socket/unix-connection-ancillary-data 4385s ok 13 /socket/source-postmortem 4385s ok 14 /socket/read_write 4385s ok 15 /socket/read_writev 4385s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 4385s ok 16 /socket/receive_bytes 4385s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 4385s ok 17 /socket/receive_bytes_from 4385s # Start of ipv4_sync tests 4385s ok 18 /socket/ipv4_sync/datagram 4385s # Start of datagram tests 4386s ok 19 /socket/ipv4_sync/datagram/timeouts 4386s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 4386s # End of datagram tests 4386s # End of ipv4_sync tests 4386s # Start of ipv6_sync tests 4386s ok 20 /socket/ipv6_sync/datagram 4386s # Start of datagram tests 4387s ok 21 /socket/ipv6_sync/datagram/timeouts 4387s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 4387s # End of datagram tests 4387s # End of ipv6_sync tests 4387s # Start of reuse tests 4387s ok 22 /socket/reuse/tcp 4387s ok 23 /socket/reuse/udp 4387s # End of reuse tests 4387s # Start of get_available tests 4387s ok 24 /socket/get_available/datagram 4387s ok 25 /socket/get_available/stream 4387s # End of get_available tests 4387s # Start of credentials tests 4387s # Supported on this OS: GCredentials:linux-ucred:pid=0 4387s Executing: glib/socket.test 4387s ok 26 /socket/credentials/tcp_client 4387s # Supported on this OS: GCredentials:linux-ucred:pid=0 4387s ok 27 /socket/credentials/tcp_server 4387s # Supported on this OS: GCredentials:linux-ucred:pid=66615,uid=1000,gid=1000 4387s ok 28 /socket/credentials/unix_socketpair 4387s # End of credentials tests 4387s # Start of accept tests 4387s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 4387s ok 29 /socket/accept/cancelled 4387s # End of accept tests 4387s # Start of connect tests 4387s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 4387s ok 30 /socket/connect/cancelled 4387s # End of connect tests 4387s # End of socket tests 4387s PASS: glib/socket.test 4387s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5556 4387s autopkgtest [01:09:14]: test socket: -----------------------] 4388s socket PASS 4388s autopkgtest [01:09:15]: test socket: - - - - - - - - - - results - - - - - - - - - - 4388s autopkgtest [01:09:15]: test testfilemonitor: preparing testbed 4389s Reading package lists... 4389s Building dependency tree... 4389s Reading state information... 4389s Solving dependencies... 4389s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4390s autopkgtest [01:09:17]: test testfilemonitor: [----------------------- 4390s Running test: glib/testfilemonitor.test 4390s TAP version 14 4390s # random seed: R02S60a0b828ff18ec2b770c1e3f30302631 4390s 1..8 4390s # Start of monitor tests 4390s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 4390s # Using temporary directory: /tmp/gio-test-testfilemonitor_SSI4J3 4390s # Using GFileMonitor GInotifyFileMonitor 4392s ok 1 /monitor/atomic-replace 4392s # slow test /monitor/atomic-replace executed in 2.00 secs 4392s # Using temporary directory: /tmp/gio-test-testfilemonitor_LRY7J3 4392s # Using GFileMonitor GInotifyFileMonitor 4395s ok 2 /monitor/file-changes 4395s # slow test /monitor/file-changes executed in 2.50 secs 4395s # Using temporary directory: /tmp/gio-test-testfilemonitor_ATFFK3 4395s # Using GFileMonitor GInotifyFileMonitor 4396s Executing: glib/testfilemonitor.test 4398s ok 3 /monitor/dir-monitor 4398s # slow test /monitor/dir-monitor executed in 3.50 secs 4398s # Using temporary directory: /tmp/gio-test-testfilemonitor_1NS7J3 4398s # Using GFileMonitor GInotifyFileMonitor 4401s Executing: glib/testfilemonitor.test 4406s Executing: glib/testfilemonitor.test 4411s Executing: glib/testfilemonitor.test 4416s Executing: glib/testfilemonitor.test 4421s Executing: glib/testfilemonitor.test 4423s ok 4 /monitor/dir-not-existent 4423s # slow test /monitor/dir-not-existent executed in 25.02 secs 4423s # Using temporary directory: /tmp/gio-test-testfilemonitor_3IP8J3 4423s # Using GFileMonitor 0 GInotifyFileMonitor 4423s # Using GFileMonitor 1 GInotifyFileMonitor 4425s ok 5 /monitor/cross-dir-moves 4425s # slow test /monitor/cross-dir-moves executed in 2.00 secs 4425s # Using temporary directory: /tmp/gio-test-testfilemonitor_TCN8J3 4425s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn’t cause a deadlock. 4425s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 4425s ok 6 /monitor/finalize-in-callback 4425s # Using temporary directory: /tmp/gio-test-testfilemonitor_K7J8J3 4425s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 4425s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 4425s ok 7 /monitor/root 4425s # Start of file tests 4425s # Using temporary directory: /tmp/gio-test-testfilemonitor_RQJ8J3 4425s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 4425s # Running with hard link tests 4425s # Using GFileMonitor GInotifyFileMonitor 4426s Executing: glib/testfilemonitor.test 4429s # Event 0 at expected index 7 skipped because it is marked as optional 4429s # Event 2 at expected index 11 skipped because it is marked as optional 4429s ok 8 /monitor/file/hard-links 4429s # slow test /monitor/file/hard-links executed in 3.50 secs 4429s # End of file tests 4429s # End of monitor tests 4429s PASS: glib/testfilemonitor.test 4429s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=5704 4429s autopkgtest [01:09:56]: test testfilemonitor: -----------------------] 4430s autopkgtest [01:09:57]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 4430s testfilemonitor PASS 4431s autopkgtest [01:09:58]: test thread-pool-slow: preparing testbed 4431s Reading package lists... 4431s Building dependency tree... 4431s Reading state information... 4431s Solving dependencies... 4432s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4433s autopkgtest [01:10:00]: test thread-pool-slow: [----------------------- 4433s Running test: glib/thread-pool-slow.test 4433s TAP version 14 4433s # random seed: R02S5bb6e21fe69abc8b6d8f6a05d2cce9ff 4433s 1..7 4433s # Start of threadpool tests 4433s ok 1 /threadpool/functions 4433s ok 2 /threadpool/stop-unused 4433s # slow test /threadpool/stop-unused executed in 0.51 secs 4434s ok 3 /threadpool/pools 4434s # [unsorted] ===> pushed new thread with id:57, number of threads:1, unprocessed:1 4434s # [unsorted] ===> pushed new thread with id:21, number of threads:2, unprocessed:2 4434s # [unsorted] ===> pushed new thread with id:21, number of threads:3, unprocessed:3 4434s # [unsorted] ===> pushed new thread with id:17, number of threads:4, unprocessed:4 4434s # [unsorted] ===> pushed new thread with id:35, number of threads:5, unprocessed:5 4434s # [unsorted] ===> pushed new thread with id:78, number of threads:6, unprocessed:6 4434s # [unsorted] ===> pushed new thread with id:52, number of threads:7, unprocessed:7 4434s # [unsorted] ===> pushed new thread with id:77, number of threads:8, unprocessed:8 4434s # [unsorted] ===> pushed new thread with id:49, number of threads:9, unprocessed:9 4434s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:10 4434s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:11 4434s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:12 4434s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:13 4434s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:14 4434s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:15 4434s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:16 4434s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:17 4434s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:18 4434s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:19 4434s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:20 4434s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:21 4434s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:22 4434s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:23 4434s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:24 4434s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:25 4434s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:26 4434s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:27 4434s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:28 4434s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:29 4434s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:30 4434s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:31 4434s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:32 4434s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:33 4434s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:34 4434s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:35 4434s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:36 4434s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:37 4434s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:38 4434s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:39 4434s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:40 4434s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:41 4434s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:42 4434s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:43 4434s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:44 4434s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:45 4434s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:46 4434s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:47 4434s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:48 4434s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:49 4434s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:50 4434s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:51 4434s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:52 4434s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:53 4434s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:54 4434s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:55 4434s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:56 4434s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:57 4434s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:58 4434s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:59 4434s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:60 4434s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:61 4434s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:62 4434s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:63 4434s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:64 4434s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:65 4434s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:66 4434s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:67 4434s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:68 4434s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:69 4434s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:70 4434s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:71 4434s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:72 4434s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:73 4434s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:74 4434s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:75 4434s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:76 4434s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:77 4434s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:78 4434s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:79 4434s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:80 4434s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:81 4434s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:82 4434s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:83 4434s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:84 4434s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:85 4434s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:86 4434s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:87 4434s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:88 4434s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:89 4434s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:90 4434s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:91 4434s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:92 4434s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:93 4434s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:94 4434s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:95 4434s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:96 4434s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:97 4434s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:98 4434s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:99 4434s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:100 4434s ok 4 /threadpool/no-sort 4434s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:1 4434s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:2 4434s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:3 4434s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:4 4434s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:5 4434s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:6 4434s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:7 4434s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:8 4434s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:9 4434s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:10 4434s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:11 4434s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:12 4434s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:13 4434s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:14 4434s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:15 4434s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:16 4434s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:17 4434s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:18 4434s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:19 4434s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:20 4434s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:21 4434s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:22 4434s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:23 4434s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:24 4434s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:25 4434s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:26 4434s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:27 4434s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:28 4434s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:29 4434s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:30 4434s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:31 4434s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:32 4434s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:33 4434s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:34 4434s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:35 4434s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:36 4434s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:37 4434s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:38 4434s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:39 4434s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:40 4434s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:41 4434s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:42 4434s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:43 4434s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:44 4434s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:45 4434s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:46 4434s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:47 4434s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:48 4434s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:49 4434s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:50 4434s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:51 4434s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:52 4434s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:53 4434s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:54 4434s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:55 4434s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:56 4434s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:57 4434s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:58 4434s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:59 4434s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:60 4434s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:61 4434s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:62 4434s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:63 4434s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:64 4434s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:65 4434s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:66 4434s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:67 4434s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:68 4434s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:69 4434s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:70 4434s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:71 4434s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:72 4434s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:73 4434s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:74 4434s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:75 4434s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:76 4434s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:77 4434s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:78 4434s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:79 4434s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:80 4434s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:81 4434s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:82 4434s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:83 4434s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:84 4434s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:85 4434s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:86 4434s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:87 4434s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:88 4434s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:89 4434s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:90 4434s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:91 4434s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:92 4434s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:93 4434s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:94 4434s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:95 4434s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:96 4434s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:97 4434s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:98 4434s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:99 4434s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:100 4434s # Starting thread pool processing 4434s ok 5 /threadpool/sort 4434s ok 6 /threadpool/stop-unused-multiple 4434s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 4434s # Pool idle thread count: 0, unprocessed jobs: 40 4435s # Pool idle thread count: 0, unprocessed jobs: 0 4435s # Pool idle thread count: 0, unprocessed jobs: 0 4435s # Pool idle thread count: 10, unprocessed jobs: 0 4435s # Pool idle thread count: 10, unprocessed jobs: 0 4436s # Pool idle thread count: 10, unprocessed jobs: 0 4436s # Pool idle thread count: 10, unprocessed jobs: 0 4436s # Pool idle thread count: 10, unprocessed jobs: 0 4436s # Pool idle thread count: 10, unprocessed jobs: 0 4437s # Pool idle thread count: 10, unprocessed jobs: 0 4437s # Pool idle thread count: 10, unprocessed jobs: 0 4437s # Pool idle thread count: 10, unprocessed jobs: 0 4437s # Pool idle thread count: 10, unprocessed jobs: 0 4438s # Pool idle thread count: 10, unprocessed jobs: 0 4438s # Pool idle thread count: 10, unprocessed jobs: 0 4438s # Pool idle thread count: 10, unprocessed jobs: 0 4438s # Pool idle thread count: 10, unprocessed jobs: 0 4438s Executing: glib/thread-pool-slow.test 4439s # Pool idle thread count: 10, unprocessed jobs: 0 4439s # Pool idle thread count: 10, unprocessed jobs: 0 4439s # Pool idle thread count: 10, unprocessed jobs: 0 4439s # Pool idle thread count: 10, unprocessed jobs: 0 4440s # Pool idle thread count: 10, unprocessed jobs: 0 4440s # Pool idle thread count: 10, unprocessed jobs: 0 4440s # Pool idle thread count: 10, unprocessed jobs: 0 4440s # Pool idle thread count: 10, unprocessed jobs: 0 4441s # Pool idle thread count: 10, unprocessed jobs: 0 4441s # Pool idle thread count: 10, unprocessed jobs: 0 4441s # Pool idle thread count: 10, unprocessed jobs: 0 4441s # Pool idle thread count: 10, unprocessed jobs: 0 4442s # Pool idle thread count: 10, unprocessed jobs: 0 4442s # Pool idle thread count: 10, unprocessed jobs: 0 4442s # Pool idle thread count: 10, unprocessed jobs: 0 4442s # Pool idle thread count: 10, unprocessed jobs: 0 4443s # Pool idle thread count: 10, unprocessed jobs: 0 4443s # Pool idle thread count: 10, unprocessed jobs: 0 4443s # Pool idle thread count: 10, unprocessed jobs: 2 4443s # Pool idle thread count: 10, unprocessed jobs: 2 4443s # Pool idle thread count: 8, unprocessed jobs: 0 4443s # Pool idle thread count: 8, unprocessed jobs: 0 4443s Executing: glib/thread-pool-slow.test 4444s # Pool idle thread count: 10, unprocessed jobs: 0 4444s # Pool idle thread count: 10, unprocessed jobs: 0 4444s # Pool idle thread count: 10, unprocessed jobs: 0 4444s # Pool idle thread count: 10, unprocessed jobs: 0 4445s # Pool idle thread count: 10, unprocessed jobs: 0 4445s # Pool idle thread count: 10, unprocessed jobs: 0 4445s # Pool idle thread count: 2, unprocessed jobs: 0 4445s # Pool idle thread count: 2, unprocessed jobs: 0 4446s # Pool idle thread count: 2, unprocessed jobs: 0 4446s # Pool idle thread count: 2, unprocessed jobs: 0 4446s # Pool idle thread count: 2, unprocessed jobs: 0 4446s # Pool idle thread count: 2, unprocessed jobs: 0 4447s # Pool idle thread count: 2, unprocessed jobs: 0 4447s # Pool idle thread count: 2, unprocessed jobs: 0 4447s # Pool idle thread count: 2, unprocessed jobs: 0 4447s # Pool idle thread count: 2, unprocessed jobs: 0 4448s # Pool idle thread count: 2, unprocessed jobs: 0 4448s # Pool idle thread count: 2, unprocessed jobs: 0 4448s # Pool idle thread count: 2, unprocessed jobs: 0 4448s # Pool idle thread count: 2, unprocessed jobs: 0 4448s Executing: glib/thread-pool-slow.test 4449s # Pool idle thread count: 2, unprocessed jobs: 0 4449s # Pool idle thread count: 2, unprocessed jobs: 0 4449s # Pool idle thread count: 2, unprocessed jobs: 0 4449s # Pool idle thread count: 2, unprocessed jobs: 0 4450s # Pool idle thread count: 2, unprocessed jobs: 0 4450s # Pool idle thread count: 2, unprocessed jobs: 0 4450s # Pool idle thread count: 2, unprocessed jobs: 0 4450s # Pool idle thread count: 2, unprocessed jobs: 0 4451s # Pool idle thread count: 2, unprocessed jobs: 0 4451s # Pool idle thread count: 2, unprocessed jobs: 0 4451s # Pool idle thread count: 2, unprocessed jobs: 0 4451s # Pool idle thread count: 2, unprocessed jobs: 0 4452s # Pool idle thread count: 2, unprocessed jobs: 0 4452s # Pool idle thread count: 2, unprocessed jobs: 0 4452s # Pool idle thread count: 2, unprocessed jobs: 0 4452s # Pool idle thread count: 2, unprocessed jobs: 0 4453s # Pool idle thread count: 2, unprocessed jobs: 0 4453s # Pool idle thread count: 2, unprocessed jobs: 0 4453s # Pool idle thread count: 2, unprocessed jobs: 0 4453s # Pool idle thread count: 2, unprocessed jobs: 0 4453s Executing: glib/thread-pool-slow.test 4454s ok 7 /threadpool/idle-time 4454s # slow test /threadpool/idle-time executed in 19.52 secs 4454s # End of threadpool tests 4454s PASS: glib/thread-pool-slow.test 4454s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.0s; maxrss=3652 4454s autopkgtest [01:10:21]: test thread-pool-slow: -----------------------] 4455s autopkgtest [01:10:22]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 4455s thread-pool-slow PASS 4455s autopkgtest [01:10:22]: test threadtests: preparing testbed 4455s Reading package lists... 4455s Building dependency tree... 4455s Reading state information... 4455s Solving dependencies... 4456s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4457s autopkgtest [01:10:24]: test threadtests: [----------------------- 4457s Running test: glib/threadtests.test 4457s TAP version 14 4457s # random seed: R02Sba11d7b869d22e2c725c8ce2016bd75f 4457s 1..5 4457s # Start of GObject tests 4457s ok 1 /GObject/threaded-object-init 4458s ok 2 /GObject/threaded-weak-ref 4458s # slow test /GObject/threaded-weak-ref executed in 0.67 secs 4458s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 4458s # /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 4458s ok 3 /GObject/threaded-toggle-notify 4458s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 4458s # Start of threaded-weak-ref tests 4458s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 4458s # /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. 4458s ok 5 /GObject/threaded-weak-ref/on-finalization 4458s # End of threaded-weak-ref tests 4458s # End of GObject tests 4458s PASS: glib/threadtests.test 4458s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.4s; maxrss=3568 4458s autopkgtest [01:10:25]: test threadtests: -----------------------] 4459s autopkgtest [01:10:26]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 4459s threadtests PASS 4459s autopkgtest [01:10:26]: test timeout: preparing testbed 4459s Reading package lists... 4460s Building dependency tree... 4460s Reading state information... 4460s Solving dependencies... 4460s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4461s autopkgtest [01:10:28]: test timeout: [----------------------- 4461s Running test: glib/timeout.test 4461s TAP version 14 4461s # random seed: R02S5ff031bf492040efb41dfce44fc0b40e 4461s 1..5 4461s # Start of timeout tests 4461s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 4463s ok 1 /timeout/seconds 4463s # slow test /timeout/seconds executed in 2.10 secs 4465s ok 2 /timeout/seconds-once 4465s # slow test /timeout/seconds-once executed in 2.10 secs 4465s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 4466s Executing: glib/timeout.test 4467s ok 3 /timeout/weeks-overflow 4467s # slow test /timeout/weeks-overflow executed in 2.10 secs 4467s ok 4 /timeout/far-future-ready-time 4471s Executing: glib/timeout.test 4476s Executing: glib/timeout.test 4477s ok 5 /timeout/rounding 4477s # slow test /timeout/rounding executed in 9.89 secs 4477s # End of timeout tests 4477s PASS: glib/timeout.test 4477s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2876 4478s autopkgtest [01:10:45]: test timeout: -----------------------] 4478s autopkgtest [01:10:45]: test timeout: - - - - - - - - - - results - - - - - - - - - - 4478s timeout PASS 4478s autopkgtest [01:10:45]: test timer: preparing testbed 4479s Reading package lists... 4479s Building dependency tree... 4479s Reading state information... 4479s Solving dependencies... 4479s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4480s autopkgtest [01:10:47]: test timer: [----------------------- 4480s Running test: glib/timer.test 4480s TAP version 14 4480s # random seed: R02Sef86a8b672a8f9142320ba456a9203d8 4480s 1..10 4480s # Start of timer tests 4480s ok 1 /timer/basic 4480s ok 2 /timer/stop 4480s ok 3 /timer/continue 4480s ok 4 /timer/reset 4480s ok 5 /timer/is_active 4480s # End of timer tests 4480s # Start of timeval tests 4480s ok 6 /timeval/add 4480s ok 7 /timeval/from-iso8601 4480s ok 8 /timeval/to-iso8601 4480s # Start of to-iso8601 tests 4480s ok 9 /timeval/to-iso8601/overflow 4480s # End of to-iso8601 tests 4480s # End of timeval tests 4480s # Start of usleep tests 4480s ok 10 /usleep/with-zero-wait 4480s # End of usleep tests 4480s PASS: glib/timer.test 4480s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2884 4481s autopkgtest [01:10:48]: test timer: -----------------------] 4481s autopkgtest [01:10:48]: test timer: - - - - - - - - - - results - - - - - - - - - - 4481s timer PASS 4482s autopkgtest [01:10:49]: test 1065022-futureproofing: preparing testbed 4491s Creating nova instance adt-resolute-arm64-glib2.0-20260205-235607-juju-7f2275-prod-proposed-migration-environment-2-67c938fa-4be4-45cc-a7ca-dcdd5bed6699 from image adt/ubuntu-resolute-arm64-server-20260205.img (UUID 88169191-3954-4b52-b471-25031b32a3a0)... 4544s autopkgtest [01:11:51]: testbed dpkg architecture: arm64 4544s autopkgtest [01:11:51]: testbed apt version: 3.1.14 4544s autopkgtest [01:11:51]: @@@@@@@@@@@@@@@@@@@@ test bed setup 4545s autopkgtest [01:11:52]: testbed release detected to be: resolute 4545s autopkgtest [01:11:52]: updating testbed package index (apt update) 4546s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 4546s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 4546s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 4546s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 4546s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 4546s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 4546s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 4546s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 4546s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [269 kB] 4546s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [7344 B] 4546s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [52.9 kB] 4546s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [328 B] 4546s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [1462 kB] 4546s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [42.1 kB] 4546s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [23.6 kB] 4546s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [776 B] 4550s Fetched 3872 kB in 1s (4658 kB/s) 4551s Reading package lists... 4551s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 4551s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 4551s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 4551s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 4552s Reading package lists... 4552s Reading package lists... 4552s Building dependency tree... 4552s Reading state information... 4553s Calculating upgrade... 4553s The following packages will be upgraded: 4553s libdrm-amdgpu1 libdrm-common libdrm2 mawk python3.14-gdbm 4553s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4553s Need to get 237 kB of archives. 4553s After this operation, 0 B of additional disk space will be used. 4553s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 mawk arm64 1.3.4.20260129-1 [128 kB] 4553s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-common all 2.4.131-1 [9774 B] 4553s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm2 arm64 2.4.131-1 [42.6 kB] 4553s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 python3.14-gdbm arm64 3.14.3-1 [33.9 kB] 4553s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 libdrm-amdgpu1 arm64 2.4.131-1 [22.6 kB] 4553s dpkg-preconfigure: unable to re-open stdin: No such file or directory 4553s Fetched 237 kB in 0s (9443 kB/s) 4554s (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 ... 89360 files and directories currently installed.) 4554s Preparing to unpack .../mawk_1.3.4.20260129-1_arm64.deb ... 4554s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 4554s Preparing to unpack .../libdrm-common_2.4.131-1_all.deb ... 4554s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 4554s Preparing to unpack .../libdrm2_2.4.131-1_arm64.deb ... 4554s Unpacking libdrm2:arm64 (2.4.131-1) over (2.4.129-1) ... 4554s Preparing to unpack .../python3.14-gdbm_3.14.3-1_arm64.deb ... 4554s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 4554s Preparing to unpack .../libdrm-amdgpu1_2.4.131-1_arm64.deb ... 4554s Unpacking libdrm-amdgpu1:arm64 (2.4.131-1) over (2.4.129-1) ... 4554s Setting up python3.14-gdbm (3.14.3-1) ... 4554s Setting up mawk (1.3.4.20260129-1) ... 4554s Setting up libdrm-common (2.4.131-1) ... 4554s Setting up libdrm2:arm64 (2.4.131-1) ... 4554s Setting up libdrm-amdgpu1:arm64 (2.4.131-1) ... 4554s Processing triggers for man-db (2.13.1-1) ... 4555s Processing triggers for libc-bin (2.42-2ubuntu4) ... 4555s autopkgtest [01:12:02]: upgrading testbed (apt dist-upgrade and autopurge) 4555s Reading package lists... 4555s Building dependency tree... 4555s Reading state information... 4556s Calculating upgrade... 4556s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4556s Reading package lists... 4557s Building dependency tree... 4557s Reading state information... 4557s Solving dependencies... 4557s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4560s Reading package lists... 4560s Building dependency tree... 4560s Reading state information... 4560s Solving dependencies... 4561s The following NEW packages will be installed: 4561s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 4561s libdconf1 4561s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 4561s Need to get 140 kB of archives. 4561s After this operation, 703 kB of additional disk space will be used. 4561s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libdconf1 arm64 0.49.0-4 [40.9 kB] 4561s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 dconf-service arm64 0.49.0-4 [27.2 kB] 4561s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 dconf-gsettings-backend arm64 0.49.0-4 [22.0 kB] 4561s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 dpkg-repack all 1.54build1 [11.2 kB] 4561s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 gsettings-desktop-schemas all 50~alpha-1ubuntu1 [38.9 kB] 4561s Fetched 140 kB in 0s (5354 kB/s) 4561s Selecting previously unselected package libdconf1:arm64. 4561s (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 ... 89360 files and directories currently installed.) 4561s Preparing to unpack .../libdconf1_0.49.0-4_arm64.deb ... 4561s Unpacking libdconf1:arm64 (0.49.0-4) ... 4561s Selecting previously unselected package dconf-service. 4561s Preparing to unpack .../dconf-service_0.49.0-4_arm64.deb ... 4561s Unpacking dconf-service (0.49.0-4) ... 4561s Selecting previously unselected package dconf-gsettings-backend:arm64. 4561s Preparing to unpack .../dconf-gsettings-backend_0.49.0-4_arm64.deb ... 4561s Unpacking dconf-gsettings-backend:arm64 (0.49.0-4) ... 4561s Selecting previously unselected package dpkg-repack. 4561s Preparing to unpack .../dpkg-repack_1.54build1_all.deb ... 4561s Unpacking dpkg-repack (1.54build1) ... 4561s Selecting previously unselected package gsettings-desktop-schemas. 4561s Preparing to unpack .../gsettings-desktop-schemas_50~alpha-1ubuntu1_all.deb ... 4561s Unpacking gsettings-desktop-schemas (50~alpha-1ubuntu1) ... 4561s Setting up dpkg-repack (1.54build1) ... 4561s Setting up libdconf1:arm64 (0.49.0-4) ... 4561s Setting up dconf-service (0.49.0-4) ... 4561s Setting up dconf-gsettings-backend:arm64 (0.49.0-4) ... 4561s Setting up gsettings-desktop-schemas (50~alpha-1ubuntu1) ... 4561s Processing triggers for man-db (2.13.1-1) ... 4561s Processing triggers for libglib2.0-0t64:arm64 (2.86.3-4) ... 4561s Processing triggers for libc-bin (2.42-2ubuntu4) ... 4576s autopkgtest [01:12:23]: test 1065022-futureproofing: [----------------------- 4577s + export DEBIAN_FRONTEND=noninteractive 4577s + n=0 4577s + failed=0 4577s + binary_package=libglib2.0-0t64 4577s + future_binary_package=libglib2.0-0xyz 4577s + pwd 4577s + srcdir=/tmp/autopkgtest.GHBBXJ/build.jmV/src 4577s + mktemp -d 4577s + tmpdir=/tmp/tmp.K0Wgt53W1L 4577s + cd /tmp/tmp.K0Wgt53W1L 4577s + exec 4577s + [ -e /tmp/autopkgtest.GHBBXJ/build.jmV/src/debian/tests/manual/local-1065022.sources ] 4577s + dpkg-query -W dpkg-repack 4577s dpkg-repack 1.54build1 4577s + dpkg-query -s libglib2.0-0t64 4577s Package: libglib2.0-0t64 4577s Status: install ok installed 4577s Priority: important 4577s Section: libs 4577s Installed-Size: 4802 4577s Maintainer: Ubuntu Developers 4577s Architecture: arm64 4577s Multi-Arch: same 4577s Source: glib2.0 4577s Version: 2.86.3-4 4577s Replaces: libglib2.0-0 (<< 2.80.0-7~) 4577s Provides: libgio-2.0-0 (= 2.86.3-4), libglib-2.0-0 (= 2.86.3-4), libglib2.0-0 (= 2.86.3-4), libgmodule-2.0-0 (= 2.86.3-4), libgobject-2.0-0 (= 2.86.3-4), libgthread-2.0-0 (= 2.86.3-4) 4577s Depends: libatomic1 (>= 4.8), libc6 (>= 2.38), libffi8 (>= 3.4), libmount1 (>= 2.40~rc2), libpcre2-8-0 (>= 10.22), libselinux1 (>= 3.1~), zlib1g (>= 1:1.2.2) 4577s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 4577s Suggests: low-memory-monitor 4577s Breaks: gnome-shell (<< 44.9-2~), libglib2.0-0 (<< 2.80.0-7~) 4577s Description: GLib library of C routines 4577s GLib is a library containing many useful C routines for things such 4577s as trees, hashes, lists, and strings. It is a useful general-purpose 4577s C library used by projects such as GTK+, GIMP, and GNOME. 4577s . 4577s This package contains the shared libraries. 4577s Original-Maintainer: Debian GNOME Maintainers 4577s Homepage: https://gitlab.gnome.org/GNOME/glib 4577s + dpkg-query -W -f ${Version} libglib2.0-0t64 4577s + binary_version=2.86.3-4 4577s + dpkg-repack --generate libglib2.0-0t64 4577s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 4577s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.u7asgo for libglib2.0-0t64 4577s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.u7asgo ." 4577s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.u7asgo/DEBIAN/control 4577s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.u7asgo/DEBIAN/control 4577s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.u7asgo/DEBIAN/control 4577s + env binary_package=libglib2.0-0t64 binary_version=2.86.3-4 future_binary_package=libglib2.0-0xyz perl -p -i -e s/^Package:.*$/Package: $ENV{future_binary_package}/; -e s/^(Breaks:.*)$/$1, $ENV{binary_package}/; -e s/^(Provides:.*)$/$1, $ENV{binary_package} (= $ENV{binary_version})/; -e s/^(Replaces:.*)$/$1, $ENV{binary_package}/; dpkg-repack.libglib2.0-0t64.u7asgo/DEBIAN/control 4577s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.u7asgo libglib2.0-0xyz.deb 4577s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 4578s + dpkg-deb --info libglib2.0-0xyz.deb 4578s new Debian package, version 2.0. 4578s size 1584398 bytes: control archive=25779 bytes. 4578s 1218 bytes, 24 lines control 4578s 1152 bytes, 14 lines md5sums 4578s 1296 bytes, 44 lines * postinst #!/bin/sh 4578s 2578 bytes, 87 lines * postrm #!/bin/sh 4578s 2408 bytes, 53 lines * preinst #!/bin/sh 4578s 466 bytes, 10 lines shlibs 4578s 172677 bytes, 4529 lines symbols 4578s 172 bytes, 4 lines triggers 4578s Package: libglib2.0-0xyz 4578s Source: glib2.0 4578s Version: 2.86.3-4 4578s Architecture: arm64 4578s Maintainer: Ubuntu Developers 4578s Installed-Size: 4802 4578s Depends: libatomic1 (>= 4.8), libc6 (>= 2.38), libffi8 (>= 3.4), libmount1 (>= 2.40~rc2), libpcre2-8-0 (>= 10.22), libselinux1 (>= 3.1~), zlib1g (>= 1:1.2.2) 4578s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 4578s Suggests: low-memory-monitor 4578s Breaks: gnome-shell (<< 44.9-2~), libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 4578s Replaces: libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 4578s Provides: libgio-2.0-0 (= 2.86.3-4), libglib-2.0-0 (= 2.86.3-4), libglib2.0-0 (= 2.86.3-4), libgmodule-2.0-0 (= 2.86.3-4), libgobject-2.0-0 (= 2.86.3-4), libgthread-2.0-0 (= 2.86.3-4), libglib2.0-0t64 (= 2.86.3-4) 4578s Section: libs 4578s Priority: important 4578s Multi-Arch: same 4578s Homepage: https://gitlab.gnome.org/GNOME/glib 4578s Description: GLib library of C routines 4578s GLib is a library containing many useful C routines for things such 4578s as trees, hashes, lists, and strings. It is a useful general-purpose 4578s C library used by projects such as GTK+, GIMP, and GNOME. 4578s . 4578s This package contains the shared libraries. 4578s . 4578s (Repackaged on Fri, 06 Feb 2026 01:12:24 +0000 by dpkg-repack.) 4578s + dpkg-deb --contents libglib2.0-0xyz.deb 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/lib/ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/lib/aarch64-linux-gnu/ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/lib/aarch64-linux-gnu/gio/ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/lib/aarch64-linux-gnu/gio/modules/ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/lib/aarch64-linux-gnu/glib-2.0/ 4578s -rwxr-xr-x root/root 67832 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/glib-2.0/gio-launch-desktop 4578s -rwxr-xr-x root/root 67832 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/glib-2.0/gio-querymodules 4578s -rwxr-xr-x root/root 67872 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/glib-2.0/glib-compile-schemas 4578s -rw-r--r-- root/root 2100648 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/libgio-2.0.so.0.8600.3 4578s -rw-r--r-- root/root 1445536 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/libglib-2.0.so.0.8600.3 4578s -rw-r--r-- root/root 67720 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/libgmodule-2.0.so.0.8600.3 4578s -rw-r--r-- root/root 461096 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0.8600.3 4578s -rw-r--r-- root/root 67680 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/libgthread-2.0.so.0.8600.3 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/share/ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/share/doc/ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/share/doc/libglib2.0-0t64/ 4578s -rw-r--r-- root/root 258310 2025-12-08 15:46 ./usr/share/doc/libglib2.0-0t64/NEWS.gz 4578s -rw-r--r-- root/root 1703 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/README.Debian 4578s -rw-r--r-- root/root 3248 2025-12-08 15:46 ./usr/share/doc/libglib2.0-0t64/README.md 4578s -rw-r--r-- root/root 39086 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/changelog.Debian.gz 4578s -rw-r--r-- root/root 55103 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/copyright 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/share/glib-2.0/ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/share/glib-2.0/schemas/ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/share/lintian/ 4578s drwxr-xr-x root/root 0 2026-02-06 01:12 ./usr/share/lintian/overrides/ 4578s -rw-r--r-- root/root 520 2026-01-01 12:59 ./usr/share/lintian/overrides/libglib2.0-0t64 4578s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/libgio-2.0.so.0 -> libgio-2.0.so.0.8600.3 4578s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/libglib-2.0.so.0 -> libglib-2.0.so.0.8600.3 4578s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.8600.3 4578s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0 -> libgobject-2.0.so.0.8600.3 4578s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/aarch64-linux-gnu/libgthread-2.0.so.0 -> libgthread-2.0.so.0.8600.3 4578s + apt-get -y install ./libglib2.0-0xyz.deb dconf-gsettings-backend gsettings-desktop-schemas 4579s Reading package lists... 4579s Building dependency tree... 4579s Reading state information... 4579s dconf-gsettings-backend is already the newest version (0.49.0-4). 4579s gsettings-desktop-schemas is already the newest version (50~alpha-1ubuntu1). 4579s Solving dependencies... 4579s The following additional packages will be installed: 4579s xdg-user-dirs 4579s Suggested packages: 4579s low-memory-monitor 4579s The following packages will be REMOVED: 4579s libglib2.0-0t64 4579s The following NEW packages will be installed: 4579s libglib2.0-0xyz xdg-user-dirs 4579s 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. 4579s Need to get 19.2 kB/1604 kB of archives. 4579s After this operation, 213 kB of additional disk space will be used. 4579s Get:1 /tmp/tmp.K0Wgt53W1L/libglib2.0-0xyz.deb libglib2.0-0xyz arm64 2.86.3-4 [1584 kB] 4579s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 xdg-user-dirs arm64 0.19-1 [19.2 kB] 4580s Fetched 19.2 kB in 0s (180 kB/s) 4580s dpkg: libglib2.0-0t64:arm64: dependency problems, but removing anyway as you requested: 4580s udisks2 depends on libglib2.0-0t64 (>= 2.80.0). 4580s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0). 4580s python3-gi depends on libglib2.0-0t64 (>= 2.86.0-7~). 4580s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0). 4580s netplan.io depends on libglib2.0-0t64 (>= 2.70.0). 4580s netplan-generator depends on libglib2.0-0t64 (>= 2.16.0). 4580s libxmlb2:arm64 depends on libglib2.0-0t64 (>= 2.54.0). 4580s libvolume-key1:arm64 depends on libglib2.0-0t64 (>= 2.18.0). 4580s libudisks2-0:arm64 depends on libglib2.0-0t64 (>= 2.83.0). 4580s libqrtr-glib0:arm64 depends on libglib2.0-0t64 (>= 2.56). 4580s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0). 4580s libqmi-glib5:arm64 depends on libglib2.0-0t64 (>= 2.54.0). 4580s libpolkit-gobject-1-0:arm64 depends on libglib2.0-0t64 (>= 2.38.0). 4580s libpolkit-agent-1-0:arm64 depends on libglib2.0-0t64 (>= 2.38.0). 4580s libnetplan1:arm64 depends on libglib2.0-0t64 (>= 2.76.0). 4580s libmm-glib0:arm64 depends on libglib2.0-0t64 (>= 2.62.0). 4580s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56). 4580s libmbim-glib4:arm64 depends on libglib2.0-0t64 (>= 2.56). 4580s libjson-glib-1.0-0:arm64 depends on libglib2.0-0t64 (>= 2.80.0). 4580s libjcat1:arm64 depends on libglib2.0-0t64 (>= 2.80.0). 4580s libgudev-1.0-0:arm64 depends on libglib2.0-0t64 (>= 2.80.0). 4580s libgirepository-2.0-0:arm64 depends on libglib2.0-0t64 (= 2.86.3-4). 4580s libfwupd3:arm64 depends on libglib2.0-0t64 (>= 2.80.0). 4580s libdconf1:arm64 depends on libglib2.0-0t64 (>= 2.80.0). 4580s libblockdev3:arm64 depends on libglib2.0-0t64 (>= 2.42.2). 4580s libblockdev-utils3:arm64 depends on libglib2.0-0t64 (>= 2.76.0). 4580s libblockdev-swap3:arm64 depends on libglib2.0-0t64 (>= 2.42.2). 4580s libblockdev-smart3:arm64 depends on libglib2.0-0t64 (>= 2.42.2). 4580s libblockdev-part3:arm64 depends on libglib2.0-0t64 (>= 2.42.2). 4580s libblockdev-nvme3:arm64 depends on libglib2.0-0t64 (>= 2.42.2). 4580s libblockdev-mdraid3:arm64 depends on libglib2.0-0t64 (>= 2.42.2). 4580s libblockdev-loop3:arm64 depends on libglib2.0-0t64 (>= 2.42.2). 4580s libblockdev-fs3:arm64 depends on libglib2.0-0t64 (>= 2.42.2). 4580s libblockdev-crypto3:arm64 depends on libglib2.0-0t64 (>= 2.42.2). 4580s gir1.2-glib-2.0:arm64 depends on libglib2.0-0t64 (= 2.86.3-4). 4580s fwupd depends on libglib2.0-0t64 (>= 2.83.0). 4580s dconf-service depends on libglib2.0-0t64 (>= 2.83.0). 4580s dconf-gsettings-backend:arm64 depends on libglib2.0-0t64 (>= 2.80.0). 4580s bolt depends on libglib2.0-0t64 (>= 2.80.0). 4580s 4580s (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 ... 89427 files and directories currently installed.) 4580s Removing libglib2.0-0t64:arm64 (2.86.3-4) ... 4580s Selecting previously unselected package libglib2.0-0xyz:arm64. 4580s (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 ... 89408 files and directories currently installed.) 4580s Preparing to unpack .../libglib2.0-0xyz.deb ... 4580s Unpacking libglib2.0-0xyz:arm64 (2.86.3-4) ... 4580s Selecting previously unselected package xdg-user-dirs. 4580s Preparing to unpack .../xdg-user-dirs_0.19-1_arm64.deb ... 4580s Unpacking xdg-user-dirs (0.19-1) ... 4580s Setting up xdg-user-dirs (0.19-1) ... 4581s Created symlink '/etc/systemd/user/graphical-session-pre.target.wants/xdg-user-dirs.service' → '/usr/lib/systemd/user/xdg-user-dirs.service'. 4581s Setting up libglib2.0-0xyz:arm64 (2.86.3-4) ... 4581s Processing triggers for libc-bin (2.42-2ubuntu4) ... 4581s Processing triggers for man-db (2.13.1-1) ... 4581s ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4581s ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 4581s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4581s + n=1 4581s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4581s + echo ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4581s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 4581s + n=2 4581s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 4581s + echo ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 4581s ok 3 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4581s ok 4 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4581s ok 5 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4581s ok 6 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4581s + assert test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4581s + n=3 4581s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4581s + echo ok 3 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4581s + assert test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4581s + n=4 4581s + test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4581s + echo ok 4 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4581s + assert test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4581s + n=5 4581s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4581s + echo ok 5 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4581s + assert test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4581s + n=6 4581s + test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4581s + echo ok 6 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4581s + apt-get -y purge libglib2.0-0t64 4581s Reading package lists... 4582s Building dependency tree... 4582s Reading state information... 4582s Solving dependencies... 4582s The following packages will be REMOVED: 4582s libglib2.0-0t64* 4582s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 4582s After this operation, 0 B of additional disk space will be used. 4582s (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 ... 89442 files and directories currently installed.) 4582s Purging configuration files for libglib2.0-0t64:arm64 (2.86.3-4) ... 4583s ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4583s ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 4583s ok 9 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4583s ok 10 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4583s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4583s + n=7 4583s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4583s + echo ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4583s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 4583s + n=8 4583s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 4583s + echo ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 4583s + assert test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4583s + n=9 4583s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4583s + echo ok 9 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4583s + assert test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4583s + n=10 4583s + test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4583s + echo ok 10 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4583s + assert test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4583s + n=11 4583s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4583s + echo ok 11 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4583s + assert test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4583s + n=12 4583s + test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4583s + echo ok 12 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4583s + apt-get -y purge libglib2.0-0xyz 4583s ok 11 - test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4583s ok 12 - test -s /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4583s Reading package lists... 4583s Building dependency tree... 4583s Reading state information... 4583s Solving dependencies... 4583s The following additional packages will be installed: 4583s libglib2.0-0t64 4583s Suggested packages: 4583s low-memory-monitor 4584s The following packages will be REMOVED: 4584s libglib2.0-0xyz* 4584s The following NEW packages will be installed: 4584s libglib2.0-0t64 4584s 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 4584s Need to get 1584 kB of archives. 4584s After this operation, 0 B of additional disk space will be used. 4584s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 libglib2.0-0t64 arm64 2.86.3-4 [1584 kB] 4584s Fetched 1584 kB in 0s (14.7 MB/s) 4584s dpkg: libglib2.0-0xyz:arm64: dependency problems, but removing anyway as you requested: 4584s udisks2 depends on libglib2.0-0t64 (>= 2.80.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s python3-gi depends on libglib2.0-0t64 (>= 2.86.0-7~); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s netplan.io depends on libglib2.0-0t64 (>= 2.70.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s netplan-generator depends on libglib2.0-0t64 (>= 2.16.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libxmlb2:arm64 depends on libglib2.0-0t64 (>= 2.54.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libvolume-key1:arm64 depends on libglib2.0-0t64 (>= 2.18.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libudisks2-0:arm64 depends on libglib2.0-0t64 (>= 2.83.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libqrtr-glib0:arm64 depends on libglib2.0-0t64 (>= 2.56); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libqmi-glib5:arm64 depends on libglib2.0-0t64 (>= 2.54.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libpolkit-gobject-1-0:arm64 depends on libglib2.0-0t64 (>= 2.38.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libpolkit-agent-1-0:arm64 depends on libglib2.0-0t64 (>= 2.38.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libnetplan1:arm64 depends on libglib2.0-0t64 (>= 2.76.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libmm-glib0:arm64 depends on libglib2.0-0t64 (>= 2.62.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libmbim-glib4:arm64 depends on libglib2.0-0t64 (>= 2.56); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libjson-glib-1.0-0:arm64 depends on libglib2.0-0t64 (>= 2.80.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libjcat1:arm64 depends on libglib2.0-0t64 (>= 2.80.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libgudev-1.0-0:arm64 depends on libglib2.0-0t64 (>= 2.80.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libgirepository-2.0-0:arm64 depends on libglib2.0-0t64 (= 2.86.3-4); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libfwupd3:arm64 depends on libglib2.0-0t64 (>= 2.80.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libdconf1:arm64 depends on libglib2.0-0t64 (>= 2.80.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libblockdev3:arm64 depends on libglib2.0-0t64 (>= 2.42.2); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libblockdev-utils3:arm64 depends on libglib2.0-0t64 (>= 2.76.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libblockdev-swap3:arm64 depends on libglib2.0-0t64 (>= 2.42.2); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libblockdev-smart3:arm64 depends on libglib2.0-0t64 (>= 2.42.2); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libblockdev-part3:arm64 depends on libglib2.0-0t64 (>= 2.42.2); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libblockdev-nvme3:arm64 depends on libglib2.0-0t64 (>= 2.42.2); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libblockdev-mdraid3:arm64 depends on libglib2.0-0t64 (>= 2.42.2); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libblockdev-loop3:arm64 depends on libglib2.0-0t64 (>= 2.42.2); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libblockdev-fs3:arm64 depends on libglib2.0-0t64 (>= 2.42.2); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s libblockdev-crypto3:arm64 depends on libglib2.0-0t64 (>= 2.42.2); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s gir1.2-glib-2.0:arm64 depends on libglib2.0-0t64 (= 2.86.3-4); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s fwupd depends on libglib2.0-0t64 (>= 2.83.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s dconf-service depends on libglib2.0-0t64 (>= 2.83.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s dconf-gsettings-backend:arm64 depends on libglib2.0-0t64 (>= 2.80.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s bolt depends on libglib2.0-0t64 (>= 2.80.0); however: 4584s Package libglib2.0-0t64 is not installed. 4584s Package libglib2.0-0xyz:arm64 which provides libglib2.0-0t64 is to be removed. 4584s 4584s (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 ... 89442 files and directories currently installed.) 4584s Removing libglib2.0-0xyz:arm64 (2.86.3-4) ... 4584s Selecting previously unselected package libglib2.0-0t64:arm64. 4584s (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 ... 89423 files and directories currently installed.) 4584s Preparing to unpack .../libglib2.0-0t64_2.86.3-4_arm64.deb ... 4584s Unpacking libglib2.0-0t64:arm64 (2.86.3-4) ... 4584s Setting up libglib2.0-0t64:arm64 (2.86.3-4) ... 4584s Processing triggers for libc-bin (2.42-2ubuntu4) ... 4585s (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 ... 89442 files and directories currently installed.) 4585s Purging configuration files for libglib2.0-0xyz:arm64 (2.86.3-4) ... 4585s not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4585s not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 4585s not ok 15 - should not have succeeded: test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4585s not ok 16 - should not have succeeded: test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4585s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4585s + n=13 4585s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4585s + echo not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 4585s + failed=1 4585s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 4585s + n=14 4585s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 4585s + echo not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 4585s + failed=1 4585s + assert_not test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4585s + n=15 4585s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4585s + echo not ok 15 - should not have succeeded: test -e /usr/lib/aarch64-linux-gnu/gio/modules/libdconfsettings.so 4585s + failed=1 4585s + assert_not test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4585s + n=16 4585s + test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4585s + echo not ok 16 - should not have succeeded: test -e /usr/lib/aarch64-linux-gnu/gio/modules/giomodule.cache 4585s + failed=1 4585s + echo 1..16 4585s + exit 1 4585s 1..16 4585s autopkgtest [01:12:32]: test 1065022-futureproofing: -----------------------] 4585s autopkgtest [01:12:32]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 4585s 1065022-futureproofing FLAKY non-zero exit status 1 4586s autopkgtest [01:12:33]: @@@@@@@@@@@@@@@@@@@@ summary 4586s build PASS (superficial) 4586s build-static PASS (superficial) 4586s girepository-tools PASS (superficial) 4586s libgio-2.0-dev-bin PASS (superficial) 4586s libglib2.0-dev PASS (superficial) 4586s installed-tests PASS 4586s closure-refcount PASS 4586s debugcontroller PASS 4586s gdbus-server-auth PASS 4586s gdbus-threading PASS 4586s gmenumodel PASS 4586s mainloop PASS 4586s memory-monitor-dbus PASS 4586s socket PASS 4586s testfilemonitor PASS 4586s thread-pool-slow PASS 4586s threadtests PASS 4586s timeout PASS 4586s timer PASS 4586s 1065022-futureproofing FLAKY non-zero exit status 1